Skip to content

Instantly share code, notes, and snippets.

/* Footer Logo */
#logo {
background:url("/assets/logo-flip.png") no-repeat -75px 0;
height:80px;
margin: 10px auto;
width: 75px;
-webkit-transition:background 0.2s ease-in-out;
-moz-transition:background 0.2s ease-in-out;
-o-transition:background 0.2s ease-in-out;
transition:background 0.2s ease-in-out;
set-option -g prefix C-a
unbind-key C-b
bind-key a send-prefix
unbind-key % # Remove default binding
bind-key | split-window -h
bind-key - split-window -v
bind-key C-a last-window
bind-key r source-file ~/.tmux.conf
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDKKudvlb+xq+euWkuAE8a3ODZ82mU/iqP6Q9AP1L3DNmiCC5edI1domgJwaAMxwE4FDtfw2CyCSSpcvXKl7xfNkMRHxEgpYznHAn0K2BZ2E0HFXcZc30ZwoCSx8Ifg6c0h1dDW6NJurGaEv+kYmrAXrQZ9koL57/iI0/+ocDguqsiGCibqP2ipKM2DVykeiIiRAXzfWtssqW5U8fU4FaubY5+8/SpEUras7SI02xEqGoH+8ZLVwihwvCMj3 Dinesh@activespheres-Mac-mini.local
@dgp
dgp / gist:5142438
Created March 12, 2013 12:14
git config
[alias]�
5 co = checkout�
6 lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative�
7 st = status�
8 ci = commit�
9 br = branch�
10 df = diff�
11 who = shortlog -s --�
12 �
13 [color]�
# Aliases
alias g='git'
compdef g=git
alias gst='git status'
compdef _git gst=git-status
alias gl='git pull'
compdef _git gl=git-pull
alias gup='git fetch && git rebase'
compdef _git gup=git-fetch
alias gp='git push'
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.*;
public class JsonHelper {
public static Object toJSON(Object object) throws JSONException {
if (object instanceof Map) {
JSONObject json = new JSONObject();
url = http://zuppl.com/trend/geolocation.json?lat=&long=
eg: http://zuppl.com/trend/geolocation.json?lat=12.977540&long=77.599510
{"place": {
"_id":"511c4a9574b1c4f6cd00003f",
"about":null,
"accept_reward_points_from_ids":[],
"address":"Bangalore, Karnataka, India",
"altitude":0.0,
"categories":["locality","political"],
"city":null,
{"_id":"52484b3c74b1c4705d000009",
"address":"50, Zatakia Center, 100 Feet Road, Indiranagar, Bangalore, Karnataka 560038, India",
"city":"Bangalore",
"city_country":"Bangalore, India",
"computed_name":"GloriaJean'sCoffees@Bangalore",
"country":"India",
"follower_ids":[],
"formal_address":"Bangalore",
"formal_name":"Gloria Jean's Coffees",
"identifier":"gloria_jean_s_coffees@bangalore",
[user]
name = Dinesh Prathap
email = dinesh@activesphere.com
[alias]
co = checkout
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
st = status
ci = commit
br = branch
df = diff
# First install tmux
brew install tmux
# For mouse support (for switching panes and windows)
# Only needed if you are using Terminal.app (iTerm has mouse support)
Install http://www.culater.net/software/SIMBL/SIMBL.php
Then install https://bitheap.org/mouseterm/
# More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/