Skip to content

Instantly share code, notes, and snippets.

View tuoxie007's full-sized avatar

Jason Hsu tuoxie007

View GitHub Profile
@tuoxie007
tuoxie007 / _INSTRUCTIONS.md
Last active February 22, 2017 08:21 — forked from jiaaro/_INSTRUCTIONS.md
Using Swift libraries in Python

Using Swift libraries in Python

So... this is obviously totally, 100%, like for. real. not. supported. by. Apple. …yet?

But still... I thought it was pretty badass. And, seeing how there's already a Swift buildpack for Heroku you could move some slow code into Swift can call it as a library function. But, you know, not in production or anything. That would be silly, right?

Now, having said that, the actual Python/Swift interop may have bugs. I'll leave that as an exercise to the reader.

How to get Python code calling Swift functions:

@tuoxie007
tuoxie007 / socks5.js
Created September 23, 2015 06:56 — forked from robertpitt/socks5.js
SOCKS5 Server as per rfc1928 (nodejs)
/**
* SOCKS5 Proxy as per RFC1928
* @see : http://www.ietf.org/rfc/rfc1928.txt
*/
/**
* Load Dependancies
*/
var net = require('net'),