Skip to content

Instantly share code, notes, and snippets.

View ninjasort's full-sized avatar
💻
Working remotely

Cameron ninjasort

💻
Working remotely
View GitHub Profile
@ninjasort
ninjasort / aq.js
Last active August 29, 2015 14:02
Async Function Queueing
var _aq = [],
funcs = [function () {
console.log('Handler 1 executed.');
}, function () {
console.log('Handler 2 executed.');
}];
_aq.push(funcs);
(function() {
@ninjasort
ninjasort / mixins.scss
Last active August 29, 2015 14:02
SASS Mixins
// Appearance
// Default styling to form elements
@mixin appearance ($value) {
-webkit-appearance: $value;
-moz-appearance: $value;
appearance: $value;
}
@mixin arrow($direction: up, $size: 5px, $color: #444) {
width: 0;
@ninjasort
ninjasort / gist:34331bc231cc87eb8138
Created May 12, 2014 19:13
Facebook, Google Borders
// Facebook Border
.facebook-border {
border: 1px solid;
border-color: #e5e6e9 #dfe0e4 #d0d1d5;
}
// Google Border
.google-border {
border: 1px solid #d8d8d8;
border-bottom-width: 2px;
@ninjasort
ninjasort / countries.json
Created April 28, 2014 20:44
List of countries
[{
"name": "Afghanistan",
"code": "AF"
}, {
"name": "Åland Islands",
"code": "AX"
}, {
"name": "Albania",
"code": "AL"
}, {
@ninjasort
ninjasort / moment-timezone-data.js
Created March 27, 2014 16:07
Add to lib/moment-timezone/tz
moment.tz.add({
"zones": {
"Africa/Abidjan": [
"-0:16:8 - LMT 1912 -0:16:8",
"0 - GMT"
],
"Africa/Accra": [
"-0:0:52 - LMT 1918 -0:0:52",
"0 Ghana %s"
],