Skip to content

Instantly share code, notes, and snippets.

View tarex's full-sized avatar
🎯
Focusing

Tareq Jobayere tarex

🎯
Focusing
View GitHub Profile
@tarex
tarex / tarex.zsh-theme
Created August 14, 2012 21:26
my zsh theme
function git_prompt_info() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
echo "$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_PREFIX$(current_branch)$ZSH_THEME_GIT_PROMPT_SUFFIX"
}
function get_pwd() {
print -D $PWD
}
function battery_charge() {
@tarex
tarex / zshrc.sh
Created August 14, 2012 14:12
my .zshrc
# 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
# time that oh-my-zsh is loaded.
#ZSH_THEME="robbyrussell"
# ZSH_THEME="blinks"
# ZSH_THEME ="prose"
@tarex
tarex / main.js
Created August 1, 2012 22:30
RequireJS 2 config with jquery , underscore and backbone.js using schim
require.config({
paths:{
jquery:'libs/jquery/jquery',
underscore:'libs/underscore/underscore',
backbone:'libs/backbone/backbone'
},
shim:{
underscore:{
deps:[],