Skip to content

Instantly share code, notes, and snippets.

@there4
there4 / mobile-meta-links.html
Created December 1, 2011 04:41
iOS Web App Configuration
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Responsive Design Testing</title>
<style>
body { margin: 20px; font-family: sans-serif; overflow-x: scroll; }
.wrapper { width: 6000px; }
.frame { float: left; }
h2 { margin: 0 0 5px 0; }
@there4
there4 / jslint-config-for-qunit.js
Created March 21, 2012 23:31 — forked from zackd/jslint-config-for-qunit.js
jslint config for QUnit tests
/*global QUnit:true, module:true, test:true, asyncTest:true, expect:true*/
/*global start:true, stop:true ok:true, equal:true, notEqual:true, deepEqual:true*/
/*global notDeepEqual:true, strictEqual:true, notStrictEqual:true, raises:true*/
@there4
there4 / .travis.yml
Created March 22, 2012 18:04
TravisCI with Phantom and Grunt
language: node_js
node_js:
- 0.6
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
@there4
there4 / package.json
Created March 22, 2012 18:07
Snippet of package.json for TravisCI
"dependencies": {
"grunt": "~0.2.15"
},
"scripts": {
"test": "grunt qunit"
}
@there4
there4 / chart_colors.txt
Created May 2, 2012 19:59
[CSS] Chart Color Collection
#3366CC
#DC3912
#FF9900
#109618
#990099
#3B3EAC
#0099C6
#DD4477
#66AA00
#B82E2E
@there4
there4 / gist:2778321
Created May 23, 2012 22:48 — forked from joefitzgerald/gist:1990736
Handlebars JST Grunt Task
/*
* Grunt Task File
* ---------------
*
* Task: JST-HB
* Description: Compile handlebars templates to JST file.
* Dependencies: [email protected]
*
*/
@there4
there4 / docco.js
Created May 24, 2012 14:51
Docco Grunt Task File
var fs = require('fs'),
path = require('path');
module.exports = function(grunt) {
grunt.task.registerMultiTask('docco', 'build the help files', function() {
var
name = this.target,
data = this.data,
src = path.resolve(this.data.src),
@there4
there4 / template_spec.js
Created June 10, 2012 00:16
javascript: Jasmine template (jslint)
/*global beforeEach, afterEach */
/*global describe, it, expect */
/*global window, eb, loadFixtures */
(function () {
"use strict";
describe('Test Class', function() {
it('Test Name', function () {
@there4
there4 / handlebars-helpers.js
Created June 10, 2012 00:23 — forked from elidupuis/handlebars-helpers.js
Simple Handlebars.js helpers
define([
"use!underscore",
"use!handlebars",
"moment"
],
function(
_, Handlebars, Moment
) {