Skip to content

Instantly share code, notes, and snippets.

View pburtchaell's full-sized avatar

Patrick Burtchaell pburtchaell

View GitHub Profile
@pburtchaell
pburtchaell / terminal
Created June 28, 2014 02:09
Assemble Output - June 26, 2014
Initializing
Command-line options: --verbose
Reading "gruntfile.js" Gruntfile...OK
Registering Gruntfile tasks.
Reading package.json...OK
Parsing package.json...OK
Reading src/data/site.yml...OK
Parsing src/data/site.yml...OK
@pburtchaell
pburtchaell / BrowserSupport
Last active August 29, 2015 14:03
Plain JavaScript implementations of common jQuery functions
List of the browsers which support the features:
- IE9+
- Firefox 3.5+
- Opera 9+
- Safari 4+
- Chrome 1+
- iPhone and iPad iOS1+
- Android phone and tablets 2.1+
- Blackberry OS6+
events.js:72
throw er; // Unhandled 'error' event
^
TypeError: string is not a function
at eval (eval at template (/Users/patrick/repositories/generator-baby-angular/node_modules/gulp-verb/node_modules/verb/node_modules/lodash/dist/lodash.js:6305:22), <anonymous>:11:11)
at Function.template (/Users/patrick/repositories/generator-baby-angular/node_modules/gulp-verb/node_modules/verb/node_modules/lodash/dist/lodash.js:6311:16)
at template (/Users/patrick/repositories/generator-baby-angular/node_modules/gulp-verb/node_modules/verb/node_modules/template/index.js:36:15)
at Cache.module.exports [as template] (/Users/patrick/repositories/generator-baby-angular/node_modules/gulp-verb/node_modules/verb/lib/template.js:27:10)
at Object.tags.docs (/Users/patrick/repositories/generator-baby-angular/node_modules/gulp-verb/node_modules/verb/lib/tags/docs.js:58:23)
at eval (eval at template (/Users/patrick/repositories/generator-baby-angular/node_modules/gulp-verb/node_modules/v
@pburtchaell
pburtchaell / error.txt
Created August 15, 2014 02:56
Handlebars AngularJS Pipe Error
Error: Parse error on line 12:
...>{{item.description | truncate }}</span>
-----------------------^
Expecting 'CLOSE_RAW_BLOCK', 'CLOSE', 'CLOSE_UNESCAPED', 'STRING', 'NUMBER', 'BOOLEAN', 'OPEN_SEXPR', 'CLOSE_SEXPR', 'ID', 'DATA', 'SEP', got 'INVALID'
at Object.parseError (/Users/patrick/repositories/site/node_modules/gulp-assemble/node_modules/assemble/node_modules/handlebars/dist/cjs/handlebars/compiler/parser.js:113:11)
at Object.parse (/Users/patrick/repositories/site/node_modules/gulp-assemble/node_modules/assemble/node_modules/handlebars/dist/cjs/handlebars/compiler/parser.js:165:22)
at HandlebarsEnvironment.parse (/Users/patrick/repositories/site/node_modules/gulp-assemble/node_modules/assemble/node_modules/handlebars/dist/cjs/handlebars/compiler/base.js:12:17)
at async.series.params.fn.Handlebars.compile._.merge.data (/Users/patrick/repositories/site/node_modules/gulp-assemble/node_modules/assemble/lib/engines/handlebars/handlebars.js:138:33)
at /Users/patrick/repositories/site/nod
@pburtchaell
pburtchaell / styles.css
Last active February 25, 2024 12:24
VH and VW units can cause issues on iOS devices. To overcome this, create media queries that target the width, height, and orientation of iOS devices.
/**
* VH and VW units can cause issues on iOS devices: http://caniuse.com/#feat=viewport-units
*
* To overcome this, create media queries that target the width, height, and orientation of iOS devices.
* It isn't optimal, but there is really no other way to solve the problem. In this example, I am fixing
* the height of element `.foo` —which is a full width and height cover image.
*
* iOS Resolution Quick Reference: http://www.iosres.com/
*/
@pburtchaell
pburtchaell / styles.css
Last active August 29, 2015 14:06
Pure CSS nav-toggle icon
html {
font-size: 17px;
}
@base: 1rem;
.nav-toggle {
display: block;
position: relative;
@pburtchaell
pburtchaell / keybase.md
Created November 26, 2014 19:51
I hereby claim I am pburtchaell on github and psb on keybase.

Keybase proof

I hereby claim:

  • I am pburtchaell on github.
  • I am psb (https://keybase.io/psb) on keybase.
  • I have a public key whose fingerprint is C6BF 5F05 B981 3781 BE97 B4C6 D50E 7235 1F77 3317

To claim this, I am signing this object:

@pburtchaell
pburtchaell / 💁.txt
Created December 26, 2014 09:07
🙅
var sleep, caffeineLvl;
if (caffeineLvl === 50) {
sleep = 'unlikely';
} else if (caffeineLvl === 100) {
sleep = false;
delete sleep;
}
@pburtchaell
pburtchaell / materialDesignColors.less
Created June 26, 2015 16:50
materialDesignColors.less
@color-primary-200: #fd2166;
@color-primary-400: #EC175A;
@color-primary-600: #c4134b;
@color-primary-900: #9a103c;
@color-secondary-200: #485C72;
@color-secondary-400: #485C72;
@color-red-200: #FFAB91;
@color-red-400: #FF7043;
@color-red-600: #F4511E;
@color-red-900: #BF360C;
import React from 'react';
import AuthStore from '../stores/AuthStore';
import AuthActions from '../actions/AuthActions';
import connectToStores from 'flummox/connect';
class SignIn extends React.Component {
constructor() {
debugger;
super();