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
var locate = function(locationInfo) { | |
var city = locationInfo.city.replace(" ", "_"); | |
var region = locationInfo.region; | |
$.get('http://api.wunderground.com/api/91425b2b253b294f/forecast/q/'+region+'/'+city+'.json', function(response) { | |
console.log(response.forecast.forecastday)}) | |
}); | |
} | |
$.get('http://ip-api.com/json/199.48.152.51?callback=locate') |
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
touch ~/.zshmarks && source ~/.zshmarks | |
function b() { | |
echo "hash -d $1=\"`pwd`\"" >> ~/.zshmarks && source ~/.zshmarks | |
} |
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-option -g prefix ` | |
# set-option -g prefix C-a | |
unbind-key C-b | |
bind-key C-a last-window | |
bind-key ` last-window | |
bind-key a send-prefix | |
# 0 is too far from ` ;) | |
set -g base-index 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
[user] | |
name = Irfan Shah | |
email = [email protected] | |
[github] | |
user = irfn | |
[core] | |
quotepath = false | |
editor = mate -w | |
excludesfile = /Users/irfn/.gitignore_global | |
pager = less -+$LESS -FRX |
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
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>Raphaël · Punch Chart</title> | |
<script src="http://raphaeljs.com/raphael.js" type="text/javascript" charset="utf-8"></script> | |
<script src="http://raphaeljs.com/jquery.js" type="text/javascript" charset="utf-8"></script> | |
<script src="http://raphaeljs.com/github/dots.js" type="text/javascript" charset="utf-8"></script> | |
<link rel="stylesheet" href="http://raphaeljs.com/demo.css" type="text/css" media="screen"> | |
<link rel="stylesheet" href="http://raphaeljs.com/demo-print.css" type="text/css" media="print"> | |
<style type="text/css" media="screen"> |
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 File.file?(other) | |
%x{ "$TM_SUPPORT_PATH/bin/mate" "#{other}" } |
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
#All the REST POST calls may resturn a 422.. | |
test_pdef = Ruote.process_definition :name => 'test' do | |
cursor do | |
sequence do | |
participant :alpha #a user intervention that is like a confirmation | |
participant :beta # no user intervation required. in my case just a REST call(POST) | |
rewind :if => '${422_etc_in_previous_step}' | |
participant :gamma # no user intervation required. based on return of :beta pass arguments to :gamma | |
end | |
end |
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
require 'rubygems' | |
require 'ruote' | |
require 'ruote/storage/fs_storage' | |
# preparing the engine | |
engine = Ruote::Engine.new( | |
Ruote::Worker.new( | |
Ruote::HashStorage.new)) |
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
Section "Files" | |
RgbPath "/usr/share/X11/rgb" | |
ModulePath "/usr/lib/xorg/modules" | |
FontPath "/usr/share/fonts/misc/" | |
FontPath "/usr/share/fonts/Type1/" | |
FontPath "/usr/share/fonts/TTF/" | |
FontPath "/usr/share/fonts/OTF" | |
# FontPath "/usr/share/fonts/100dpi/" | |
# FontPath "/usr/share/fonts/75dpi/" |