Skip to content

Instantly share code, notes, and snippets.

View raadad's full-sized avatar

Raadad Elsleiman raadad

  • Sydney,Australia
View GitHub Profile
var MethodeBridge = function(){
var self = {}, app;
try {
app = external.EomQueryInterface('Methode.Application');
} catch(e) {
}
if (!app) return false;
package com.nik;
import org.eclipse.swt.*;
import org.eclipse.swt.events.KeyEvent;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.*;
@raadad
raadad / gist:6337173
Created August 26, 2013 00:29
Bad Number Implementation to handle extremely large numbers
BigNum = ->
@convert = (string) ->
em = []
temp = string.split("").reverse()
em[i] = Number(temp[i]) for i in [0..temp.length-1]
return em
@shiftUp = (op,index) ->
op[index] = 0 unless op[index]
op[index]++ if op[index] < 9
@raadad
raadad / gist:6176759
Created August 7, 2013 18:07
Currying Example
var dres = function(rescb,cb) {
return function(dberr,res){
var err = {};
if(dberr){console.log(dberr); err["DBC-ERR-00"] = "There was an issue commiting this"; rescb(err,null); return;}
cb(res);
};
};
this.getUserInfo = function(obj,cb) {
var err = {};
HTML reporting files will be stored in /var/folders/jg/w8vsg1hn4rb_bs1j_x5spnm80000gp/T/d-113519-9170-1xv98xy
Proxy server running on port 8080
http://brightsolar.com.au/
http://brightsolar.com.au/js/jquery.min.js
http://brightsolar.com.au/js/jquery.stickyscroll.js
http://brightsolar.com.au/css/normalize.css
http://brightsolar.com.au/css/fonts.css
http://brightsolar.com.au/css/skeleton.css
http://brightsolar.com.au/css/base.css
http://brightsolar.com.au/css/superfish.css
switch opcode & 0xF000
when 0x0000 then
switch opcode
when 0x00E0 then #CLS
when 0x00EE then #RET
when 0x1000 then #JP addr
pc = opcode & 0xFFF
switch opcode & 0xF000
when 0x0000 then
switch opcode
when 0x00E0 then #CLS
when 0x00EE then #RET
when 0x1000 then #JP addr
pc = opcode & 0xFFF
#!/bin/bash
while getopts :u: opt
do
# normally you'd process options and arguments here,
# but in this case just ignore them
done
shift $((OPTIND-1)) # throw out processed options and arguments
exec "$@"
import subprocess, sys
for i, arg in enumerate(sys.argv[1:]):
if arg[0] != '-':
subprocess.Popen(sys.argv[i:]).wait()