Skip to content

Instantly share code, notes, and snippets.

@thecodejack
thecodejack / Custom.css
Created May 6, 2014 09:31
Zero-Dark-Matrix theme gist for Chrome Dev tools
/*****************************************************************************/
/* Zero-Dark-Matrix
/* Optimized for Chrome Stable Channel v32
/* https://github.com/mauricecruz/zero-base-themes
/*************************************************************************/
#-blink-dev-tools .panel.sources .split-view-vertical .split-view-contents {
-webkit-transition: right 0.5s ease-in-out;
}
#-blink-dev-tools .panel.sources .split-view-contents-second.split-view-sidebar {

JSConf Slides, Codes and Notes

These are all the JSConf 2014 slides, codes, and notes I was able to cull together from twitter. Thanks to the speakers who posted them and thanks to @chantastic for posting his wonderful notes.

Modular frontend with NPM - Jake Verbaten (@Raynos)

// {{compare unicorns ponies operator="<"}}
// I knew it, unicorns are just low-quality ponies!
// {{/compare}}
//
// (defaults to == if operator omitted)
//
// {{equal unicorns ponies }}
// That's amazing, unicorns are actually undercover ponies
// {{/equal}}
// (from http://doginthehat.com.au/2012/02/comparison-block-helper-for-handlebars-templates/)
@thecodejack
thecodejack / chrome.md
Last active August 29, 2015 14:15 — forked from mantoni/chrome.md

Command line args:

--js-flags="--stack-trace-limit 20"
@thecodejack
thecodejack / ember_1.0pre.js
Last active December 9, 2015 22:09
Ember. 1.0 RC code
// Version: v1.0.0-pre.4
// Last commit: 855db1a (2013-01-17 23:06:53 -0800)
(function() {
/*global __fail__*/
/**
Ember Debug
@module ember
{
"cmd": ["grunt", "develop"],
"selector": ["source.js", "source.less", "source.json"],
"path": "/usr/bin"
}

It All Starts With Templates

An Ember application starts with its main template. Put your header, footer, and any other decorative content in application.handlebars.

<header>
  <img src="masthead">
</header>

<footer>

Intro

Description: Setup GitHub Pages "gh-pages" branch and "master" branch as subfolders of a parent project folder ("grandmaster").

Author: Chris Jacob @_chrisjacob

Tutorial (Gist): https://gist.github.com/833223

The Result

require('static/script/vendor/filtersortpage.js');
require('static/script/app/person.js');
describe ("Pagination Tests", function(){
var sut, models, first, second, third;
beforeEach(function(){
first = Ember.Object.create({id: 1, username: 'first'});
second = Ember.Object.create({id: 2, username: 'second'});