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
| (function($) { | |
| $.fn.shuffle = function() { | |
| var allElems = this.get(), | |
| getRandom = function(max) { | |
| return Math.floor(Math.random() * max); | |
| }, | |
| shuffled = $.map(allElems, function() { | |
| var random = getRandom(allElems.length), | |
| randEl = $(allElems[random]).clone(true)[0]; | |
| allElems.splice(random, 1); |
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
| set nocompatible " be iMproved | |
| filetype off " required! | |
| set rtp+=~/.vim/bundle/vundle/ | |
| call vundle#rc() | |
| " let Vundle manage Vundle | |
| " required! | |
| Bundle 'gmarik/vundle' |
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
| [Desktop Entry] | |
| Encoding=UTF-8 | |
| Name=nocaps | |
| Comment=Remap caps lock as control | |
| Exec=setxkbmap -option ctrl:nocaps | |
| Terminal=true |
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
| # A shortcut function that simplifies usage of xclip. | |
| # - Accepts input from either stdin (pipe), or params. | |
| # ------------------------------------------------ | |
| cb() { | |
| local _scs_col="\e[0;32m"; local _wrn_col='\e[1;31m'; local _trn_col='\e[0;33m' | |
| # Check that xclip is installed. | |
| if ! type xclip > /dev/null 2>&1; then | |
| echo -e "$_wrn_col""You must have the 'xclip' program installed.\e[0m" | |
| # Check user is not root (root doesn't have access to user xorg server) | |
| elif [[ "$USER" == "root" ]]; then |
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 String toLowerCase(Locale locale) { | |
| if (locale == null) { | |
| throw new NullPointerException(); | |
| } | |
| int firstUpper; | |
| /* Now check if there are any characters that need to be changed. */ | |
| scan: { | |
| for (firstUpper = 0 ; firstUpper < count; ) { |
NewerOlder