This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//usage | |
// node test.js --nouse-idle-notification -test1 | |
// node test.js --nouse-idle-notification -test2 | |
// then compare memory usage | |
var a = []; | |
function Test1() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; | |
; 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Point { | |
public x, y; | |
Point(x, y) | |
{ | |
this.x = x; | |
this.y = y; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Mongolian = require("mongolian"); | |
bson = require('mongodb').BSONPure; | |
/** | |
* DatabaseHelper defines database collections and handles connect to the database. | |
* | |
* Usage: |