Skip to content

Instantly share code, notes, and snippets.

View scull7's full-sized avatar

Nathan Sculli scull7

View GitHub Profile
-module(one_fifteen).
-export([xor1/2,xor2/2,xor3/2,maxThree/3,howManyEqual/3]).
-export([all/0,xor2_true_false/1]).
xor1(X,Y) ->
X =/= Y.
xor2(X,Y) ->
not (X and Y).
@scull7
scull7 / node-mcrypt.test.coffee
Last active December 25, 2015 03:39
Attempt at using node-mcrypt for PHP compatible encryption
# npm install mcrypt async
# run me with: coffee node-mcrypt.test.coffee
mcrypt = require 'mcrypt'
exec = require('child_process').exec
async = require 'async'
assert = require 'assert'
crypto = require 'crypto'
key ='Honey Badger don\'t care'