// jQuery
$(document).ready(function() {
// code
})
var cluster = require('cluster'), | |
connect = require('connect'); | |
var numCPUs = parseInt(process.argv[2]); | |
if (cluster.isMaster) { | |
for (var i = 0; i < numCPUs; i++) { | |
cluster.fork(); | |
} |
When times get tough and people get nasty, you’ll need more than a killer smile. You’ll need a killer contract.
Used by 1000s of designers and developers Clarify what’s expected on both sides Helps build great relationships between you and your clients Plain and simple, no legal jargon Customisable to suit your business Used on countless web projects since 2008
…………………………
ko.validation.configure({ | |
insertMessages: true, | |
decorateElement: true, | |
errorElementClass: 'error', | |
errorMessageClass: 'help-inline' | |
}); |
Debounce a function when you want it to execute only once after a defined interval of time. If the event occurs multiple times within the interval, the interval is reset each time.
Example A user is typing into an input field and you want to execute a function, such as a call to the server, only when the user stops typing for a certain interval, such as 500ms.
Un fork del popular contrato open source para diseñadores y desarrolladores creado por Stuff & Nonsense
- Publicado: 05/02/2014
- Entrada original
Entre nosotros [nombre de la compañía]
# Ask for the user password | |
# Script only works if sudo caches the password for a few minutes | |
sudo true | |
# Install kernel extra's to enable docker aufs support | |
# sudo apt-get -y install linux-image-extra-$(uname -r) | |
# Add Docker PPA and install latest version | |
# sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
# sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" |
https://sublime.wbond.net/installation#st3
- Source Code Pro -
sourcecodepro.sh
- Hack -
hack.sh
While this gist has been shared and followed for years, I regret not giving more background. It was originally a gist for the engineering org I was in, not a "general suggestion" for any React app.
Typically I avoid folders altogether. Heck, I even avoid new files. If I can build an app with one 2000 line file I will. New files and folders are a pain.