Install custom build of Gala
sudo apt-get install bzr
bzr branch lp:~gala-dev/gala/no-depth-alt-tab
sudo apt-get build-dep gala
#!/bin/bash | |
# Download it. | |
# Name it as 'theme' | |
# Place it in /usr/bin/ | |
# shell_prompt$ theme | |
echo ' | |
3024 Day ( 1) 3024 Night ( 2) AdventureTime ( 3) | |
Afterglow ( 4) AlienBlood ( 5) Argonaut ( 6) | |
Arthur ( 7) Atom ( 8) Belafonte Day ( 9) | |
Belafonte Night ( 10) BirdsOfParadise ( 11) Blazer ( 12) |
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.
https://sublime.wbond.net/installation#st3
sourcecodepro.sh
hack.sh
# 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" |
Entre nosotros [nombre de la compañía]
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.
ko.validation.configure({ | |
insertMessages: true, | |
decorateElement: true, | |
errorElementClass: 'error', | |
errorMessageClass: 'help-inline' | |
}); |
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(); | |
} |