Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
// To log individual attributes | |
myWidget.options.watch('displayHeight', function(id, oldval, newval) { | |
console.log('id = %s, oldval = %s, newval = %s', id, oldval, newval); | |
return newval; | |
}); | |
myWidget.options.watch('displayWidth', function(id, oldval, newval) { | |
console.log('id = %s, oldval = %s, newval = %s', id, oldval, newval); | |
return newval; | |
}); |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
// This actually works | |
$my_array = array( | |
'foo' => <<< FOO | |
It's time for | |
some foo, baby! | |
FOO | |
, | |
'bar' => <<< BAR | |
Now let's bar it up. | |
BAR |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
exec { 'Add nodesource sources': | |
command => 'curl -sL https://deb.nodesource.com/setup | sudo bash -', | |
creates => '/etc/apt/sources.list.d/nodesource.list', | |
path => ['/usr/bin', '/bin', '/usr/sbin']; | |
} | |
package { 'nodejs': | |
ensure => 'present', | |
require => Exec['Add nodesource sources']; | |
} |
# -*- coding: utf-8 -*- | |
from functools import wraps | |
import logging | |
import os | |
import tempfile | |
import sys | |
def pidfile(func): | |
@wraps(func) |