Skip to content

Instantly share code, notes, and snippets.

View bvallelunga's full-sized avatar
🎯
Big things have GitHub beginnings

Brian Vallelunga bvallelunga

🎯
Big things have GitHub beginnings
View GitHub Profile
@csanz
csanz / encrypt_decrypt.js
Created August 30, 2011 16:06
Simple String Encryption & Decryption with Node.js
function encrypt(text){
var cipher = crypto.createCipher('aes-256-cbc','d6F3Efeq')
var crypted = cipher.update(text,'utf8','hex')
crypted += cipher.final('hex');
return crypted;
}
function decrypt(text){
var decipher = crypto.createDecipher('aes-256-cbc','d6F3Efeq')
var dec = decipher.update(text,'hex','utf8')
@liaody
liaody / coffeescript_gotcha.md
Created January 12, 2012 01:56
Coffeescript gotchas when migrating from javascript

Here are some of the "gotchas" I've encountered when I converted all the javascript code into coffeescript. (BTW, this is gathered while coding for YourMechanic.com, a very cool mobile auto repair service.)

Disclaimer: Coffeescript is a great productivity booster for me personally. Even with all the things outlined below, it is still way better than javascript. None of these should discourage you from jumping into it right away.

Major gotchas

(Things that generate wrong code silently)

@skopp
skopp / index.coffee
Last active December 14, 2015 02:49 — forked from anonymous/index.coffee
KDapp Sample (Really!!) code gist
# WOW! This is inception!!!
{KDView} = KD.classes
{KDSplitView} = KD.classes
{KDInputView} = KD.classes
{KDModalView} = KD.classes
{KDButtonView} = KD.classes
{KDHeaderView} = KD.classes
{KDOnOffSwitch} = KD.classes
{KDListItemView} = KD.classes