Skip to content

Instantly share code, notes, and snippets.

View iheanyi's full-sized avatar
🪐
Working on databases @planetscale

Iheanyi Ekechukwu iheanyi

🪐
Working on databases @planetscale
View GitHub Profile
@iheanyi
iheanyi / SOCKS proxy
Created March 19, 2020 21:33 — forked from cainejette/SOCKS proxy
SOCKS proxy
function FindProxyForURL(url, host) {
if (isInNet(dnsResolve(host), "10.0.0.0", "255.0.0.0"))
return "SOCKS 127.0.0.1:9998";
// Default to using no proxy.
return "DIRECT";
}
@iheanyi
iheanyi / SOCKS proxy
Created March 19, 2020 21:33 — forked from cainejette/SOCKS proxy
SOCKS proxy
function FindProxyForURL(url, host) {
if (isInNet(dnsResolve(host), "10.0.0.0", "255.0.0.0"))
return "SOCKS 127.0.0.1:9999";
// Default to using no proxy.
return "DIRECT";
}
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle',
actions:{
saveMessage(message) {
console.log("message", message);
}
}
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle',
actions: {
hello(firstArg, { target: { value } }) {
console.log(value);
console.log(arguments);
}
class RecipeCreator
attr_reader :recipe
def initialize(params)
@recipe = Recipe.new(params)
end
def save
saved = recipes.save
App.AccountEditRoute = Ember.Route.extend({
setupController: function(controller) {
controller.set('content', this.get('currentUser'));
}
});
@iheanyi
iheanyi / README.md
Last active August 29, 2015 14:10 — forked from dwtkns/README.md

Building on this - experimenting with fake 3d svg arcs using two nested orthographic projections and cardinal line interpolation.

buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.12.+'
}
}
apply plugin: 'android'
from geventwebsocket.handler import WebSocketHandler
from gevent.pywsgi import WSGIServer
from flask import Flask, request, render_template
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')