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
| if (Modernizr.localstorage) { | |
| //console.log("Can use localstorage"); | |
| var clients = localStorage.getItem("clients"); | |
| // console.log(clients); | |
| if ( clients == null ) { | |
| // Fetch the clients list | |
| $.getJSON('/api/client_list', function(data) { |
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
| //FightCode can only understand your robot | |
| //if its class is called Robot | |
| var id; | |
| var Robot = function(robot) { | |
| id = this.id; | |
| }; | |
| Robot.prototype.onIdle = function(ev) { | |
| var robot = ev.robot; |
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
| /** | |
| * The first commented line is your dabblet’s title | |
| */ | |
| body{ | |
| background: #EFE0C9; | |
| } | |
| .coupon-widget { | |
| border-radius: 6px; | |
| background-color: #ADAEAE; | |
| clear: both; |
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
| /** | |
| * CSS BoxSpin | |
| * Attempt to remake http://www.cesmes.fi/flash/boxSpin/ in CSS | |
| */ | |
| body { | |
| background: #f06; | |
| background: linear-gradient(45deg, #f06, yellow); | |
| min-height: 100%; | |
| } | |
| .spinner { |
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
| \ | |
| Code: | |
| dpkg --get-selections > installed-software | |
| And if you wanted to use the list to reinstall this software on a fresh ubuntu setup, | |
| Code: | |
| dpkg --set-selections < installed-software | |
| followed by |
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
| apt-get install libpcre3-dev | |
| pecl install apc |
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
| mailq | tail -1 | cut -d' ' -f5 |
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
| .DS_Store? | |
| ehthumbs.db | |
| Icon? | |
| Thumbs.db | |
| ._* | |
| .Trashes | |
| .Spotlight-V100 | |
| .svn/ | |
| .*.sw[a-z] | |
| *.un~ |
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
| find . -type f -name "*.inc" -exec awk 'NR==58 {print FILENAME ":" NR ": " $0 }' {} \; |
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
| if &term == 'Eterm' | |
| :set t_Co=256 | |
| endif | |
| " Custom templates | |
| command Copy :exec ":r ~/.vim/templates/alpine-copyright/copyright.inc" | |
| " HTML Vars | |
| :let g:do_xhtml_mappings = '1' |