I forked this to remember it easier
Having trouble installing the latest stable version of tmux?
Save yourself some time and run this little fellow!
- gcc
var | |
html, printRecord, entry, n; | |
// records is an array of objects with parent_id, name and id attributes | |
// [ {parent_id: ..., id: ..., name: ...}, ...] | |
html = ''; | |
printRecord = function(parent_id){ | |
html +='<ul>'; | |
// from this | |
app.get('/', function(req, res){ | |
for(var i = 0; i<100000; i++) { | |
console.log(i); // your code here | |
} | |
res.send(true); |
myObject = { ... } | |
this.injectString = JSON.stringify( myObject ).replace(/\\/g, '\\\\').replace(/"/g, '\\\"') |
I forked this to remember it easier
Having trouble installing the latest stable version of tmux?
Save yourself some time and run this little fellow!
class ResortableInstance | |
sort: (e) -> | |
@$('.controller-icons .glyphicon').addClass 'disabled' | |
isUp = $(e.currentTarget).hasClass('glyphicon-arrow-up') | |
isDown = $(e.currentTarget).hasClass('glyphicon-arrow-down') | |
return unless isUp or isDown | |
$li = $(e.currentTarget).parents('.list-group-item:first') |
diagnoser = null | |
$ => | |
(diagnoser = new Diagnoser).renderTo $(".diagnoser")[0] | |
console.log "DIAG", diagnoser | |
class ReactClass | |
value: 'asdf123' | |
birth: (Class) => |
Canvas = require('canvas') | |
_ = require('underscore') | |
Canvas.Context2d::fillTextCircle = (text, x, y, radius, letterSpacing, angle, reverse, letterSpacingFlat, maxAngle) -> | |
if _.isObject text | |
{ | |
text | |
x | |
y |
This script is made for tamper monkey. it creates an additional button next to create that pops up a window with 3 select boxes.
Currently it is set up so my trainer can pick this week|next week
, day of week
, 4:45pm|4:30pm
. The main reason for this is because entering 4:45pm takes too many clicks.
include
https://www.google.com/calendar/render*
for the page" Plugin manager.. auto download if not already ( re launch vim a few times ) | |
if empty(glob('~/.vim/autoload/plug.vim')) | |
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs | |
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC | |
endif | |
" Plugin manager.. auto download if not already ( re launch vim a few times ) | |
call plug#begin('~/.vim/plugged') | |
Plug 'michaeljsmith/vim-indent-object' |
_moveTo = CanvasRenderingContext2D::moveTo | |
_lineTo = CanvasRenderingContext2D::lineTo | |
_save = CanvasRenderingContext2D::save | |
_restore = CanvasRenderingContext2D::restore | |
keys = ['_lineDash', '_lineDashSegment', '_lineDashTime', '_lineDashActive', '_lineDashLast'] | |
CanvasRenderingContext2D::save = -> | |
@['_saved' + k] = @[k] for k in keys |