Skip to content

Instantly share code, notes, and snippets.

View narenranjit's full-sized avatar

Narendran Ranjit narenranjit

  • Frontpage.to
  • San Francisco, CA
View GitHub Profile
# https://github.com/blinks zsh theme
function _prompt_char() {
if $(git rev-parse --is-inside-work-tree >/dev/null 2>&1); then
echo "%{%F{blue}%}±%{%f%k%b%}"
else
echo ' '
fi
}
@narenranjit
narenranjit / gist:5210934
Created March 21, 2013 05:47
ubuntu zshrc
#Change dir colors to solarized
eval `dircolors -b ~/dircolors.txt`
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
@narenranjit
narenranjit / loop-pygmentize.sh
Created October 17, 2012 22:53
Print output of package.json in all installed styles
pygmentize -L styles | perl -n -e'/\* (.*):/ && print '$1' && system("pygmentize -O style=$1 -f console256 -g package.json")'
@narenranjit
narenranjit / dabblet.css
Created October 5, 2012 00:40 — forked from kizu/dabblet.css
Triangle with the box-shadow
/**
* Triangle with the box-shadow
*/
.bubble {
position: relative;
width: 30em;
height: 30em;
@narenranjit
narenranjit / console.xml
Created February 8, 2012 20:21
console 2 config with pretty colors
<?xml version="1.0"?>
<settings>
<console change_refresh="10" refresh="100" rows="25" columns="80" buffer_rows="500" buffer_columns="0" shell="" init_dir="" start_hidden="0" save_size="0">
<colors>
<color id="0" r="0" g="0" b="0"/>
<color id="1" r="0" g="0" b="128"/>
<color id="2" r="0" g="150" b="0"/>
<color id="3" r="0" g="150" b="150"/>
<color id="4" r="170" g="25" b="25"/>
<color id="5" r="128" g="0" b="128"/>
@narenranjit
narenranjit / ubuntu-dircolors
Created February 8, 2012 20:18
Dircolors for gnome terminal
# Dark 256 color solarized theme for the color GNU ls utility.
# Used and tested with dircolors (GNU coreutils) 8.5
#
# @author {@link http://sebastian.tramp.name Sebastian Tramp}
@narenranjit
narenranjit / VelToJSON
Created January 24, 2012 20:23
Convert objects in Velocity templates to JSON
#macro(VelListToJSON $list )
#set($myList = $list )## dereference
{
#foreach($key in $myList.keySet())
"$key":
#set($x = $myList.get($key))
#VelToJSON($x)
#if($foreachCount != $myList.keySet().size()) , #end
#end
}