This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[app:main] | |
use = call:server:paster_main | |
[server:main] | |
use = egg:gunicorn#main | |
host = 0.0.0.0 | |
port = 8000 | |
workers = 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[app:main] | |
use = call:server:paster_main | |
[server:main] | |
use = egg:gunicorn#main | |
host = 0.0.0.0 | |
port = 8000 | |
workers = 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from __future__ import print_function | |
import httplib | |
import urllib | |
import hashlib | |
import urlparse | |
import hmac | |
from datetime import datetime | |
from dateutil import tz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
BOOL shouldKeepRunning = YES; | |
int main(int argc, char *argv[]) { | |
@autoreleasepool { | |
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"http://www.example.com/"]]; | |
NSURLSession *session = [NSURLSession sharedSession]; | |
NSURLSessionDataTask* task = [session dataTaskWithRequest:request completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r ffe33f1f1f17 src/cmd/gc/esc.c | |
--- a/src/cmd/gc/esc.c Tue Nov 25 15:41:33 2014 +1100 | |
+++ b/src/cmd/gc/esc.c Sun Nov 30 15:58:50 2014 +0900 | |
@@ -756,6 +756,12 @@ | |
escassign(e, &e->theSink, dst->right); | |
dst = &e->theSink; | |
break; | |
+ case OINDEXINTER: | |
+ // lose track of key and value | |
+ esc(e, dst->left, dst); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from struct import pack, unpack | |
from socket import AF_UNIX, IPPROTO_TCP, SOCK_STREAM, socket | |
from base64 import b64encode | |
SSH_AGENT_FAILURE = 5 | |
SSH_AGENT_SUCCESS = 6 | |
SSH2_AGENTC_REQUEST_IDENTITIES = 11 | |
SSH2_AGENTC_SIGN_REQUEST = 13 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.List; | |
import java.util.LinkedList; | |
import java.util.concurrent.Callable; | |
import java.util.concurrent.FutureTask; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.io.BufferedReader; | |
import com.sun.jna.Library; | |
import com.sun.jna.Native; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
encoded_chars = [ | |
'^\100', '^\101', '^\102', '^\103', '^\104', '^\105', '^\106', '^\107', | |
'^\110', '^\111', '^\112', '^\113', '^\114', '^\115', '^\116', '^\117', | |
'^\120', '^\121', '^\122', '^\123', '^\124', '^\125', '^\126', '^\127', | |
'^\130', '^\131', '^\132', '^\133', '^\134', '^\135', '^\136', '^\137', | |
'\040', '\041', '\042', '\043', '\044', '\045', '\046', '\047', | |
'\050', '\051', '\052', '\053', '\054', '\055', '\056', '\057', | |
'\060', '\061', '\062', '\063', '\064', '\065', '\066', '\067', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "os" | |
type RefcountedFile proxy[*os.File] struct { | |
f *os.File | |
refcount int | |
} | |
func (f *RefcountedFile) __deref() *os.File { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r 5bf1a8b3aeea src/cmd/gc/lex.c | |
--- a/src/cmd/gc/lex.c Thu May 29 13:47:31 2014 -0400 | |
+++ b/src/cmd/gc/lex.c Tue Jun 03 12:11:38 2014 +0900 | |
@@ -1309,7 +1313,7 @@ | |
ungetc(c); | |
rune = getr(); | |
// 0xb7 · is used for internal names | |
- if(!isalpharune(rune) && !isdigitrune(rune) && (importpkg == nil || rune != 0xb7)) | |
+ if(!isalpharune(rune) && !isdigitrune(rune) && !isothersymrune(rune) && (importpkg == nil || rune != 0xb7)) | |
yyerror("invalid identifier character U+%04x", rune); |