Skip to content

Instantly share code, notes, and snippets.

👷

Jonathan Dumaine JonDum

👷
Block or report user

Report or block JonDum

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@JonDum
JonDum / DatabaseHelper.js
Created Sep 16, 2011
Simple helper & Express/Connect session_store implementation for Mongolian.
View DatabaseHelper.js
var Mongolian = require("mongolian");
bson = require('mongodb').BSONPure;
/**
* DatabaseHelper defines database collections and handles connect to the database.
*
* Usage:
@JonDum
JonDum / Point-concise.js
Created Sep 17, 2011
Suggestion for how JS class syntax should be
View Point-concise.js
class Point {
public x, y;
Point(x, y)
{
this.x = x;
this.y = y;
}
@JonDum
JonDum / dd-afk.ahk
Created Nov 11, 2011
Dungeon Defenders AFK script
View dd-afk.ahk
;
; Usage: Save to a .ahk file
;
; Control+Shift+G to activate hitting G once a second
; Control+Alt+G to deactivate
; Control+C to close the script completely
;
active=0
@JonDum
JonDum / function-alloc-bench.js
Created Nov 27, 2012
Anonymous function allocation benchmark
View function-alloc-bench.js
//usage
// node test.js --nouse-idle-notification -test1
// node test.js --nouse-idle-notification -test2
// then compare memory usage
var a = [];
function Test1()
{
@JonDum
JonDum / layout.styl
Created Feb 10, 2015
Stylus Flexbox layout helper
View layout.styl
/*
This helper function simplifies some of the flexbox
terminology. There are some layouts too advanced for this,
but in the majority of times this saves a lot of typing.
It's written with left, center, right always referring to
the horizontal axis, and top, middle, bottom always referring
to the vertical axis. 'reverse' is not supported because it
would make the helper way too complicated and hurt your brain.
View zencash_secure_node.sh
#!/usr/bin/env bash
# IMPORTANT: Run this script from /home/<USER>/ directory: bash -c "$(curl SCRIPT_URL)"
# (optional): Preparing the environment if you want to install zen from source:
# Once you get the VM up and running you need to login with your root account and run below commands.
# apt-get update && apt-get upgrade -y
# apt-get install -y build-essential pkg-config libc6-dev m4 g++-multilib autoconf libtool ncurses-dev unzip git python zlib1g-dev wget bsdmainutils automake libgtk2.0-dev && apt-get autoremove -y
View zencash_secure_node.sh
#!/usr/bin/env bash
# IMPORTANT: Run this script from /home/<USER>/ directory: bash -c "$(curl SCRIPT_URL)"
# (optional): Preparing the environment if you want to install zen from source:
# Once you get the VM up and running you need to login with your root account and run below commands.
# apt-get update && apt-get upgrade -y
# apt-get install -y build-essential pkg-config libc6-dev m4 g++-multilib autoconf libtool ncurses-dev unzip git python zlib1g-dev wget bsdmainutils automake libgtk2.0-dev && apt-get autoremove -y
You can’t perform that action at this time.