This file contains 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
$(document).ready(function(){ | |
var begin = 1; | |
var end = 5; | |
var total =0; | |
$('.item').each(function(){total++;}); | |
// now total contains the number of retrieved rows | |
for(i=end+1;i<=total;i++){ | |
$("#"+i).appendTo($("#next")); |
This file contains 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
Show hidden characters
[ | |
{ | |
"args": null, | |
"command": "exit_visual_mode" | |
}, | |
{ | |
"args": | |
{ | |
"commands": | |
[ |
This file contains 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
1 2 3 4 5 6 | |
7 8 9 10 11 12 | |
13 14 15 16 17 18 | |
19 20 21 22 23 24 |
This file contains 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
source: http://askubuntu.com/questions/172514/how-do-i-uninstall-mysql | |
sudo apt-get remove --purge mysql-server mysql-client mysql-common | |
sudo apt-get autoremove | |
sudo apt-get autoclean |
This file contains 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
{ | |
"excludeFiles": ["node_modules/**", "bower_components/**"], | |
"requireCurlyBraces": [ | |
"if", | |
"else", | |
"for", | |
"while", | |
"do", | |
"try", |
This file contains 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
{ | |
"bitwise": true, | |
"camelcase": true, | |
"curly": true, | |
"eqeqeq": true, | |
"es3": false, | |
"forin": true, | |
"freeze": true, | |
"immed": true, |
This file contains 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
@source:http://askubuntu.com/questions/426750/how-can-i-update-my-nodejs-to-the-latest-version | |
sudo npm cache clean -f | |
sudo npm install -g n | |
sudo n stable | |
sudo ln -sf /usr/local/n/versions/node/<VERSION>/bin/node /usr/bin/node |
This file contains 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
1) append to the end of the ~/.bashrc file | |
alias gogo="sudo chmod -R 0777 $dest" | |
2)make bashrc as the current source, in order to consider tha latest modification | |
source ~/.bashrc | |
3) give a value for the dest variable | |
dest="something" | |
4) call the gogo alias with the value of dest | |
gogo | |
This file contains 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-pip | |
pip install Pygments | |
pygmentize -f rtf code/i/want/to/highlight.sh > hightlighted_code.rtf | |
credit: | |
http://stratus3d.com/blog/2015/08/21/inserting-code-samples-into-libreoffice-impress/ | |
This file contains 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
// first include underscore,backbone and backbone.localStorage | |
//<script src="bower_components/underscore/underscore.js"></script> | |
//<script src="bower_components/backbone/backbone.js"></script> | |
//<script src="bower_components/backbone.localStorage/backbone.localStorage.js"></script> | |
// 1) defining the model | |
var Model = Backbone.Model.extend({ | |
defaults:function(){ | |
return { | |
note:"hello" |
OlderNewer