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 / 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:[],
@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 / 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 / Custom.css
Created August 16, 2012 08:17 — forked from bentruyman/Custom.css
IR_Black Theme for Chrome Developer Tools
/**********************************************/
/*
/* IR_Black Skin by Ben Truyman - 2011
/*
/* Based on Todd Werth's IR_Black:
/* http://blog.toddwerth.com/entries/2
/*
/* Inspired by Darcy Clarke's blog post:
/* http://darcyclarke.me/design/skin-your-chrome-inspector/
/*
@tarex
tarex / gist:3436953
Created August 23, 2012 14:04 — forked from thehydroimpulse/gist:2872907
A Laravel task generator. Models, Migrations and Controllers.
<?php
/**
* @copyright 2012 TheHydroImpulse, Daniel Fagnan
* @version 0.1
* @todo Add an overwite ability. Among other things.
* @note Use this as you wish. Extend it, Mash it. Enjoy it.
*/
@tarex
tarex / snippets.php
Created August 24, 2012 16:51
laravel authentication , remember me
<?php
// if you need the strtolower or some other data tweaks.
// remember me
$remember = Input::get('remember');
$credentials = array(
'username' => strtolower(Input::get('email')­),
'password' => Input::get('password'),
@tarex
tarex / index.php
Created August 26, 2012 13:51
wordpress plugin [widget] - show recent comments with category
<?php
/*
Plugin Name: Extended Commnets
Plugin URI: https://gist.github.com/gists/3479610
Description: wordpress plugin [widget] - show recent comments with category
Version: 0.1
Author: Tareq Jobayere
Author URI: http://twitter.com/tareq_jobayere
License: i don't know
*/
@tarex
tarex / gist:3479726
Created August 26, 2012 13:58 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@tarex
tarex / gist:3683635
Created September 9, 2012 10:13 — forked from saetia/gist:1623487
Clean Install – Mountain Lion OS X 10.8
@tarex
tarex / snippet.xml
Created September 16, 2012 09:43 — forked from JeffreyWay/snippet.xml
Laravel Resource - Sublime Text 2 Snippet
<snippet>
<content><![CDATA[
// ${1} Resource
Route::get('${1}s', array('as' => '${1}s', 'uses' => '${1}s@index'));
Route::get('${1}s/(:any)', array('as' => '${1}', 'uses' => '${1}s@show'));
Route::get('${1}s/new', array('as' => 'new_${1}', 'uses' => '${1}s@new'));
Route::get('${1}s/(:any)edit', array('as' => 'edit_${1}', 'uses' => '${1}s@edit'));
Route::post('${1}s', '${1}s@create');
Route::put('${1}s/(:any)', '${1}s@update');
Route::delete('${1}s/(:any)', '${1}s@destroy');