Skip to content

Instantly share code, notes, and snippets.

View ikhattab's full-sized avatar
🎮
.

Ihab Khattab ikhattab

🎮
.
View GitHub Profile
@ikhattab
ikhattab / dabblet.css
Created March 22, 2012 21:05 — forked from anonymous/dabblet.css
my first dabblet
/**
* my first dabblet
*/
body{
background: #444;
margin: 200px auto;
width:1000px;
}
@ikhattab
ikhattab / dabblet.css
Created April 19, 2012 14:20 — forked from anonymous/dabblet.css
my first dabblet
/**
* my first dabblet
*/
body{
background: #444;
margin: 200px auto;
width:1000px;
}
@ikhattab
ikhattab / dabblet.css
Created April 20, 2012 21:35 — forked from anonymous/dabblet.css
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: 15s 58px linear-gradient(45deg, #f06, yellow);
min-height: 100%;
/**
* Assign a value to the delimited key in the given object. The inverse of `_.lookup`
*
* @example
*
* var myObj = {};
*
* _.assign(myObj, 'foo.bar', 'baz'); // myObj = { foo: { bar: 'baz' }}
*
* @param {Object} obj the object to assign to
@ikhattab
ikhattab / 0_reuse_code.js
Created December 26, 2013 23:09
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@ikhattab
ikhattab / gist:adea9ad49b20f9731cf2
Created December 10, 2015 07:10 — forked from lttlrck/gist:9628955
rename git branch locally and remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote