c++

#include <iostream>

int main(int argc, char *argv[]) {

  /* An annoying "Hello World" example */
for (auto i = 0; i < 0xFFFF; i++)
cout << "Hello, World!" << endl; char c = '\n';
unordered_map <string, vector<string> > m;
m["key"] = "\\\\"; // this is an error return -2e3 + 12l;
}

c#

using System.IO.Compression;

#pragma warning disable 414, 3021

namespace MyApplication
{
[Obsolete("...")]
class Program : IInterface
{
public static List<int> JustDoIt(int count)
{
Console.WriteLine($"Hello {Name}!");
return new List<int>(new int[] { 1, 2, 3 })
}
}
}

css

@font-face {
font-family: Chunkfive; src: url('Chunkfive.otf');
} body, .usertext {
color: #F0F0F0; background: #600;
font-family: Chunkfive, sans;
} @import url(print.css);
@media print {
a[href^=http]::after {
content: attr(href)
}
}

http

POST /task?id=1 HTTP/1.1
Host: example.org
Content-Type: application/json; charset=utf-8
Content-Length: 137 {
"status": "ok",
"extended": true,
"results": [
{"value": 0, "type": "int64"},
{"value": 1.0e+3, "type": "decimal"}
]
}

ini

; boilerplate
[package]
name = "some_name"
authors = ["Author"]
description = "This is \
a description" [[lib]]
name = ${NAME}
default = True
auto = no
counter = 1_000

js

function $initHighlight(block, cls) {
try {
if (cls.search(/\bno\-highlight\b/) != -1)
return process(block, true, 0x0F) +
` class="${cls}"`;
} catch (e) {
/* handle exception */
}
for (var i = 0 / 2; i < classes.length; i++) {
if (checkCondition(classes[i]) === undefined)
console.log('undefined');
}
} export $initHighlight;

json

[
{
"title": "apples",
"count": [12000, 20000],
"description": {"text": "...", "sensitive": false}
},
{
"title": "oranges",
"count": [17500, null],
"description": {"text": "...", "sensitive": false}
}
]

nginx

user  www www;
worker_processes 2;
pid /var/run/nginx.pid;
error_log /var/log/nginx.error_log debug | info | notice | warn | error | crit; events {
connections 2000;
use kqueue | rtsig | epoll | /dev/poll | select | poll;
} http {
log_format main '$remote_addr - $remote_user [$time_local] '
'"$request" $status $bytes_sent '
'"$http_referer" "$http_user_agent" '
'"$gzip_ratio"'; send_timeout 3m;
client_header_buffer_size 1k; gzip on;
gzip_min_length 1100; #lingering_time 30; server {
server_name one.example.com www.one.example.com;
access_log /var/log/nginx.access_log main; rewrite (.*) /index.php?page=$1 break; location / {
proxy_pass http://127.0.0.1/;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
charset koi8-r;
} location /api/ {
fastcgi_pass 127.0.0.1:9000;
} location ~* \.(jpg|jpeg|gif)$ {
root /spool/www;
}
}
}

python

@requires_authorization
def somefunc(param1='', param2=0):
r'''A docstring'''
if param1 > param2: # interesting
print 'Gre\'ater'
return (param2 - param1 + 1 + 0b10l) or None class SomeClass:
pass >>> message = '''interpreter
... prompt'''

txt

@requires_authorization
def somefunc(param1='', param2=0):
r'''A docstring'''
if param1 > param2: # interesting
print 'Gre\'ater'
return (param2 - param1 + 1 + 0b10l) or None class SomeClass:
pass >>> message = '''interpreter
... prompt'''

最新文章

  1. 添加已运行daemon进程(falcon-agent)到supervisor测试
  2. 初学Spring
  3. 简单谈谈dom解析xml和html
  4. 0924Linux常用命令
  5. java内部类和外部类
  6. python 进程信息
  7. [转]JAVA自动装箱和拆箱
  8. BZOJ 3680: 吊打XXX【模拟退火算法裸题学习,爬山算法学习】
  9. Object 类
  10. javascript深入理解--作用域,作用域链,闭包的面试题解
  11. Linux下修改Tomcat默认端口
  12. 在ALV界面添加下拉框
  13. .NetCore 利用Jenkins在 Windows平台下打包发布Angular项目
  14. How Not to Crash #6: Properties and Accessors(属性,存储器方法使问题)
  15. Groovy学习()起步
  16. 异常信息 Exception
  17. 论文阅读 | FCOS: Fully Convolutional One-Stage Object Detection
  18. 【转】Jmeter压力测试模拟并发
  19. javascript快速入门14--DOM基础
  20. Dubbo入门之一:实例1

热门文章

  1. mysql实现rownum方法
  2. Codeforces 185D(发现性质、欧拉定理)
  3. [洛谷P4315] 月下”毛景“树
  4. 解决git commit报错问题
  5. (转)企业配置sudo命令用户行为日志审计
  6. Apache Atlas是什么?
  7. 项目部署到centos7云端验证码出现乱码
  8. Spring Cloud 熔断器
  9. final关键字,类的自动加载,命名空间
  10. mysql 取整