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
// JS | |
window.getSelection().removeAllRanges(); | |
// CSS | |
element { | |
-khtml-user-select: none; | |
-moz-user-select: none; | |
-o-user-select: none; | |
-webkit-user-select: none; |
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
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get install build-essential | |
gcc --version |
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
sudo apt-get install python-setuptools | |
sudo apt-get install python-pip | |
pip install PIL | |
python -V | |
#python -c 'import sys; print sys.version' |
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
# Project | |
sudo pip install mockito | |
sudo pip install nose | |
wget http://archive.ubuntu.com/ubuntu/pool/main/t/twisted/python-twisted-bin_11.0.0-2_i386.deb | |
sudo dpkg -i python-twisted-bin_11.0.0-2_i386.deb | |
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/python-pika/python-pika_0.9.5-1_all.deb | |
sudo dpkg -i python-pika_0.9.5-1_all.deb |
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
curl -O http://python-distribute.org/distribute_setup.py | |
sudo python distribute_setup.py | |
sudo easy_install pip | |
sudo pip install virtualenv |
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
cd workspace | |
# distribute and pip / uncompressed packages | |
virtualenv --distribute --unzip-setuptools my_app | |
cd my_app | |
# activate an isolated environment to the project (my_app) | |
source bin/activate |
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
# Linux | |
sudo apt-get remove --purge mysql-server mysql-client mysql-common | |
sudo apt-get autoremove | |
sudo apt-get autoclean | |
# Linux | |
locate mysql | |
# Mac, Linux | |
find / -name mysql -print 2> /dev/null |
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
gem install rails | |
# ERROR: Loading command: install (LoadError) | |
# cannot load such file -- zlib | |
# ERROR: While executing gem ... (NameError) | |
# uninitialized constant Gem::Commands::InstallCommand | |
sudo apt-get install zlib1g-dev | |
rvm reinstall 1.9.3 | |
rvm use 1.9.3 |
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
public class EntityWrapper<T> { | |
private Collection<T> list; | |
private Integer total; | |
public Collection<T> getList() { | |
return list; | |
} | |
public void setList(Collection<T> list) { |
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
rvm gemset use global | |
gem update rubygems-bundler | |
gem list | |
gem uninstall -ax bundler | |
gem install bundler --pre | |
bundle --version |