Skip to content

Instantly share code, notes, and snippets.

View joeSaad's full-sized avatar

Joe Saad joeSaad

View GitHub Profile
@joeSaad
joeSaad / index.html
Created May 12, 2015 16:01
Putting a table into an array of objects
/*
table>thead(>tr>th{column $}*4)+tbody(>tr*5>td{data $}*4)
*/
<table>
<thead>
<tr>
<th>column 1</th>
<th>column 2</th>
<th>column 3</th>
<th>column 4</th>
@joeSaad
joeSaad / 0_reuse_code.js
Last active August 29, 2015 14:21
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
@joeSaad
joeSaad / gist:fde88bb3140201a6ad40
Last active August 29, 2015 14:13
Create JSON object from string, string could be a cookie.
var person = "name=Joe;age=34;location=Texas;hobby=soccer";
var ca = person.split(';');
var obj = {};
for (var i= 0; i<ca.length; i++){
var loc = ca[i].indexOf('=');
var p = ca[i].slice(0, loc);
eval("obj." + p + " = '" + ca[i].slice(loc+1) + "'");
}
@joeSaad
joeSaad / index.html
Created June 24, 2014 20:49
A Pen by Joe Saad.
<svg width="300" height="200">
<polygon points="100,10 40, 129 222, 198 190,198" />
</svg>
@joeSaad
joeSaad / CSS-rotations.markdown
Created June 23, 2014 18:10
A Pen by Joe Saad.