Skip to content

Instantly share code, notes, and snippets.

View insin's full-sized avatar
⚠️
Cannot read property 'status' of undefined

Jonny Buchanan insin

⚠️
Cannot read property 'status' of undefined
View GitHub Profile
@insin
insin / .jscs.json
Created February 16, 2014 01:55 — forked from anissen/.jscs.json
{
"requireCurlyBraces": ["else", "for", "while", "do", "try", "catch"],
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"],
"disallowLeftStickedOperators": ["?", "+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
"disallowRightStickedOperators": ["?", "+", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
"requireRightStickedOperators": ["!"],
"requireLeftStickedOperators": [","],
"disallowImplicitTypeConversion": ["string"],
"disallowKeywords": ["with"],
"disallowMultipleLineBreaks": true,
@insin
insin / gist:9179330
Last active August 29, 2015 13:56 — forked from getify/gist:9179137
goto fail; goto fail;
// So.. this code:
if (foo) {
goto fail;
goto fail;
}
else if (bar) {
goto fail;
goto fail;
}
else if (bam) {
/**
* Adapted from https://github.com/Khan/react-components/blob/master/js/timeout-transition-group.jsx
*/
var React = require('react/addons');
var ReactTransitionGroup = React.addons.TransitionGroup;
var Velocity = require('velocity-animate');
var transitions = {
// Forcefeeding: property order = [after, before]
@insin
insin / no-semicolons.js
Created October 5, 2011 00:15 — forked from indexzero/no-comma-first.js
JUST SAY NO TO SEMICOLONS
var fs = require('fs')
, path = require('path')
, colors = require('colors')
, argv = require('optimist').argv
fs.readFile(path.join(__dirname, argv._[0]), function (err, data) {
var lines = data.toString().split('\n')
for (var i = 0; i < lines.length; i++) {
var match = lines[i].match(/;\s*(?:\/\/.*)?$/)
if (match) {
@insin
insin / penner_beziers.js
Created June 24, 2012 19:42 — forked from madrobby/penner_beziers.js
Penner beziers
var beziers = {
easeInQuad: '.55,.085,.68,.53'
, easeInCubic: '.55,.055,.675,.19'
, easeInQuart: '.895,.03,.685,.22'
, easeInQuint: '.755,.05,.855,.06'
, easeInSine: '.47,0,.745,.715'
, easeInExpo: '.95,.05,.795,.035'
, easeInCirc: '.6,.04,.98, .335'
, easeInBack: '.6,-.28,.735,.045'
, easeOutQuad: '.25,.46,.45,.94'
@insin
insin / penner_beziers.number
Created June 24, 2012 20:03 — forked from madrobby/penner_beziers.js
Penner beziers
1791656277811493031594071461534991480627883818443643332265598359849961071923721241979344403603416137980956727244123760604960073429107153174138799426699369040110073942339469352064139152616815779351725451409903792674622321989783206500920392551280245755119305905049733203287299987691385211675050945752567318219060417366628558248882558907516703276400880493331164685917230237156179389574864149344435589976209643987835593227061742165380067670004535173279450259928102210712066102429990394061986877082576682354461449455273738379807517019102423573614377372280098002225588350528749953974499929098993595870573175195111989702300425748883521688735157135629772418003445070382315365742158480367746871453414549171291653802871742066345866953046451641243011726710826522212048170145716720657940825649420349479951546752610269886054294928529232904650183030388822744459452264294504935270671749782940538142864022130895205291875111657893282592565962101832890336569288120364269983661752826934453553052247449228241948936186794455929767436696938337387
@insin
insin / lex.js
Created July 6, 2012 10:07 — forked from tj/lex.js
/**
* Scan the given `str` returning tokens.
*
* @param {String} str
* @return {Array}
* @api public
*/
module.exports = function(str) {
var indents = [0]
@insin
insin / 00-README.rst
Created December 13, 2012 00:14 — forked from anonymous/01-table.html
Creating nested contents and pulling out created element references with dombuilder

Twitter公式クライアントのコンシューマキー

Twitter for iPhone

Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU

Twitter for Android

Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPad

Consumer key: CjulERsDeqhhjSme66ECg

#!/bin/bash
# Favicon and Apple Touch Icon Generator
#
# This bash script takes an image as a parameter, and uses ImageMagick to convert it to several
# other formats used on modern websites. The following copies are generated:
#
# * apple-touch-icon-114x114-precomposed.png
# * apple-touch-icon-57x57-precomposed.png
# * apple-touch-icon-72x72-precomposed.png