Skip to content

Instantly share code, notes, and snippets.

View RobinMalfait's full-sized avatar

Robin Malfait RobinMalfait

View GitHub Profile
RobinMalfait / fa-icons.json
Created April 7, 2016 09:06 — forked from james2doyle/fa-icons.json
A big list (JSON object) of the font awesome icons as of 4.5.0
View fa-icons.json
"fa-500px": "500px",
"fa-adjust": "Adjust",
"fa-adn": "Adn",
"fa-align-center": "Align Center",
"fa-align-justify": "Align Justify",
"fa-align-left": "Align Left",
"fa-align-right": "Align Right",
"fa-amazon": "Amazon",
"fa-ambulance": "Ambulance",
View shawn_snippets.sublime-snippet
<div class="clearfix">
<label for="$1">$2</label>
<div class="input">
<?=form_input('$1', set_value('$1'))?>
View Super Simple Ajax File Upload (XHR2).js
// Ajax File upload with jQuery and XHR2
// Sean Clark
// xhr2 file upload
// data is optional
$.fn.upload = function(remote,data,successFn,progressFn) {
// if we dont have post data, move it along
if(typeof data != "object") {
progressFn = successFn;
successFn = data;
RobinMalfait / JavaScript: detect_ie.js
Last active December 14, 2015 04:59
JavaScript: Detect IE
View JavaScript: detect_ie.js
var ie = (function(v,undef){
var div = document.createElement('div'),
all = div.getElementsByTagName('i');
while (
div.innerHTML = '<!--[if gt IE ' + (++v) + ']><i></i><![endif]-->',