This file contains hidden or 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
#!/bin/bash | |
function flask-boilerplate-tmux | |
{ | |
# https://github.com/swaroopch/flask-boilerplate | |
BASE="$HOME/code/flask-boilerplate" | |
cd $BASE | |
tmux start-server | |
tmux new-session -d -s flaskboilerplate -n model |
This file contains hidden or 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 is my proto library but without changing Object.prototype | |
// Then only sub-objects of Class have the special properties. | |
var Class = module.exports = Object.create(Object.prototype, { | |
// Implements a forEach much like the one for Array.prototype.forEach, but for | |
// any object. | |
forEach: {value: function forEach(callback, thisObject) { | |
var keys = Object.keys(this); | |
var length = keys.length; | |
for (var i = 0; i < length; i++) { | |
var key = keys[i]; |
NewerOlder