Skip to content

Instantly share code, notes, and snippets.

View clintonhalpin's full-sized avatar
✌️

Clinton Halpin clintonhalpin

✌️
View GitHub Profile
0 execute pathogen#infect()
1 syntax on
2 filetype plugin indent on
3
4 set cursorline
5 set expandtab
6 set modelines=0
7 set shiftwidth=4
8 set clipboard=unnamed
9 set synmaxcol=128

Test Hero

@clintonhalpin
clintonhalpin / gist:56c169522700f349ad9a
Last active August 29, 2015 14:23
Get starting Week
function getStartingSunday(date) {
var dayToGet = moment(date)
return dayToGet.subtract(1, 'weeks').endOf('isoWeek')
}
function _buildWeek(date) {
var days = [];
for (var i = 0; i < 7; i++) {
days.push({
{
"name": "MyExtension",
"version": "1.0",
"manifest_version": 2,
"description": "Turn your avatar into a neckbeard",
"permissions": ["tabs", "http://*/*"],
"content_scripts": [
{
"matches": ["https://twitter.com/*", "https://github.com/*"],
"js": ["scripts.js"]
'use strict';
var React = require('react-native');
var {
AppRegistry,
StyleSheet,
Text,
View,
Navigator,
ScrollView,
import faker from 'faker';
import moment from 'moment';
import _ from 'lodash';
export let generateFakeData = function(model, num = 5) {
let res = [];
if(!_.isFunction(model)) {
throw "You must pass in a model, with type Function"
}
Aberdeen, SD (ABR)
Abilene, TX (ABI)
Adak Island, AK (ADK)
Akiachak, AK (KKI)
Akiak, AK (AKI)
Akron/Canton, OH (CAK)
Akuton, AK (KQA)
Alakanuk, AK (AUK)
Alamogordo, NM (ALM)
Alamosa, CO (ALS)