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
# Author: Pieter Noordhuis | |
# Description: Simple demo to showcase Redis PubSub with EventMachine | |
# | |
# Update 7 Oct 2010: | |
# - This example does *not* appear to work with Chrome >=6.0. Apparently, | |
# the WebSocket protocol implementation in the cramp gem does not work | |
# well with Chrome's (newer) WebSocket implementation. | |
# | |
# Requirements: | |
# - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby |
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(){ | |
//To switch directions up/down and left/right just place a "-" in front of the top/left attribute | |
//Vertical Sliding | |
$('.boxgrid.slidedown').hover(function(){ | |
$(".cover", this).stop().animate({top:'-260px'},{queue:false,duration:300}); | |
}, function() { | |
$(".cover", this).stop().animate({top:'0px'},{queue:false,duration:300}); | |
}); | |
//Horizontal Sliding | |
$('.boxgrid.slideright').hover(function(){ |
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
/* hosted at: http://static.tumblr.com/nic27se/ZUnmgxct7/labs.css */ | |
*{ padding:0px; margin:0px; } | |
body{background-image: url("http://static.tumblr.com/nic27se/R7cmha6wl/back.jpg");} | |
.abox{ color:#C8DCE5; } | |
h3{ margin: 10px 10px 0 10px; color:#FFF; font:18pt Arial, sans-serif; letter-spacing:-1px; font-weight: bold; } | |
#letterpress h1 { | |
color: #BFBFBF; | |
font: 80px 'LeagueGothicRegular'; | |
text-shadow: 0 2px 3px #A85CBC; |
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
"janus settings | |
let g:vroom_use_bundle_exec = 0 | |
set guifont=Monaco:h12 | |
syntax enable | |
set background=dark | |
colorscheme solarized | |
let g:Powerline_symbols = 'fancy' | |
let g:solarized_termcolors=256 |
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
# | |
# Author: | |
# Ankit Goyal <[email protected]> | |
# | |
# Minimalistic theme with no bullshit | |
function prompt_goyalankit_setup { | |
local user_char='%%' | |
local success_color='%F{071}' | |
local failure_color='%F{124}' |
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
#!/bin/bash | |
###copied from http://www.chaugule.in/linux/shell-script-adding-virtual-hosts-ubuntu-apache/ | |
### Checking for user | |
if [ "$(whoami)" != 'root' ]; then | |
echo "You have no permission to run $0 as non-root user. Use sudo !!!" | |
exit 1; | |
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
#!/bin/sh | |
function keep_only_last_for_n_days_ago(){ | |
echo "function called with $1" | |
CDIR=`date +%y%m%d -d "$1 day ago"` | |
count=0 | |
for j in `ls -1t "$CDIR"` | |
do | |
count=`expr $count + 1` |
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
#!/usr/bin/expect | |
# | |
# Simple script to ssh without password | |
# Authour: Ankit Goyal( @_goyalankit) | |
# | |
# TODO replace USERNAME and PASSWORD variables to specify machine. | |
# | |
# USAGE: | |
# chmod +x ssh-without-password |
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 'pry' | |
IRB=pry |
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
#!/bin/bash | |
# | |
# check on what public printers you have access at UT Austin Computer Science | |
# | |
if [ "$1" == "" ]; | |
then | |
export def=`eval whoami` | |
echo "taking default username as $def"; | |
OlderNewer