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).click(function(e) { | |
if(e.ctrlKey) { | |
console.log("Ctrl+Click"); | |
// your code goes here... | |
} else if(e.altKey) { | |
console.log("Alt+Click"); | |
} else if(e.shiftKey) { | |
console.log("Shift+Click"); | |
} | |
}); |
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
[core] | |
repositoryformatversion = 0 | |
filemode = false | |
bare = false | |
logallrefupdates = true | |
symlinks = false | |
ignorecase = true | |
[branch "master"] | |
remote = origin | |
merge = refs/heads/master |
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
<?xml version="1.0" encoding="Windows-1252" ?> | |
<NotepadPlus> | |
<LexerStyles> | |
<LexerType name="actionscript" desc="ActionScript" ext=""> | |
<!-- | |
<WordsStyle name="DIRECTIVE" styleID="19" fgColor="A001D6" bgColor="363636" fontName="" fontStyle="1" fontSize="" keywordClass="instre2" /> | |
--> | |
<WordsStyle name="DEFAULT" styleID="11" fgColor="FFFFFF" bgColor="363636" fontName="" fontStyle="0" fontSize="" /> | |
<WordsStyle name="FUNCTION" styleID="20" fgColor="95004A" bgColor="363636" fontName="" fontStyle="0" fontSize="" keywordClass="type2" /> | |
<WordsStyle name="PREPROCESSOR" styleID="9" fgColor="804000" bgColor="363636" fontName="" fontStyle="0" fontSize="" /> |
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
# Rotate the screen for e-reading | |
xrandr -o left | |
xrandr -o normal | |
# Batch modify 2880x900 .png's down to 1440x900 and then resize 50% with imagemagick | |
mogrify -crop 1440x900+1440 -resize 50% *.png | |
#To seach and replace in multiple files: |
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
" Modified from An example for a vimrc file. | |
" | |
" Maintainer: Bram Moolenaar <[email protected]> | |
" Last change: 2008 Dec 17 | |
" | |
" To use it, copy it to | |
" for Unix and OS/2: ~/.vimrc | |
" for Amiga: s:.vimrc | |
" for MS-DOS and Win32: $VIM\_vimrc | |
" for OpenVMS: sys$login:.vimrc |
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
Foxmarks | |
Tree Style Tabs | |
Greasemonkey | |
Greasefire | |
Firebug | |
Enter Selects | |
Delicious Bookmarks | |
Download Statusbar | |
FlashBlock |
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
Setting up NACHOS in Ubuntu Linux | |
1) Download and Extract the nachos-java.tar.gz | |
2) Install sun-java6-jdk package. (sudo apt-get install sun-java6-jdk) | |
3) Add the nachos executable to your PATH, by adding the following lines to your ~/.profile file. | |
if [ -d "$HOME/nachos/bin" ] ; then | |
PATH="$HOME/nachos/bin:$PATH" | |
fi |
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
puts "How many players?" | |
players = gets.chomp.to_i | |
puts "How many items?" | |
items = gets.chomp.to_i | |
(1..players).each do |i| | |
puts "card #{i}" | |
card = Array.new | |
(1..5).each do |row| | |
print " " | |
(1..5).each do |col| |
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
require 'fileutils' | |
require 'rubygems' | |
require 'pony' | |
# Set absolute path for config file directory | |
conf_path = "/home/auto-responses" | |
#for each config file (autoresponder) | |
Dir.new(conf_path).each do |response_file| |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
if [ -n "$PS1" ] ; then | |
# don't put duplicate lines in the history. See bash(1) for more options | |
# ... or force ignoredups and ignorespace | |
HISTCONTROL=ignoredups:ignorespace |
OlderNewer