Skip to content

Instantly share code, notes, and snippets.

View shunix's full-sized avatar
:electron:
Focusing

王锐 shunix

:electron:
Focusing
View GitHub Profile
// http://www.ietf.org/rfc/rfc1928.txt
// Tested with: curl http://www.google.se/ --socks5 1080 --proxy-user foo:bar
var States = {
CONNECTED:0,
VERIFYING:1,
READY:2,
PROXY: 3
};
@shunix
shunix / gist:6398514
Created August 31, 2013 14:17
ingress server json format
//
// API.m
// Ingress
//
// Created by Alex Studnicka on 10.01.13.
// Copyright (c) 2013 A&A Code. All rights reserved.
//
#import "API.h"
var url = require('url');
var http = require('http');
exports.index = function(req, res){
res.render('index', { title: 'Ingress Shanghai' });
};
exports.getAll = function(req, res){
var data = JSON.stringify({
"desiredNumItems": 1000,