Skip to content

Instantly share code, notes, and snippets.

View colinwren's full-sized avatar

Colin Wren colinwren

View GitHub Profile
@colinwren
colinwren / cloudSettings
Last active May 1, 2020 18:23
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-05-01T18:22:00.884Z","extensionVersion":"v3.4.3"}
@colinwren
colinwren / SassMeister-input.scss
Created December 3, 2015 22:17
Generated by SassMeister.com.
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
$line-heights: 1, 1.1, 1.2, 1.3, 1.4, 1.6, 1.8, 2.0;
@function str-replace($string, $search, $replace: '') {
$index: str-index($string, $search);
@colinwren
colinwren / SassMeister-input.scss
Created October 29, 2015 22:31
Generated by SassMeister.com.
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
$properties: (long-name: 'margin', short-name: 'm'), (long-name: 'padding', short-name: 'p');
$directions: (long-name: 'Top', short-name: 't'), (long-name: 'Right', short-name: 'r'), (long-name:'Bottom', short-name: 'b'), (long-name:'Left', short-name:'l');
$unit-base: 4px;
@each $property in $properties {
@colinwren
colinwren / SassMeister-input.scss
Created October 29, 2015 16:34
Generated by SassMeister.com.
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
$properties: (long-name: 'margin', short-name: 'm'), (long-name: 'padding', short-name: 'p');
$unit-base: 4px;
$directions: (long-name: 'Top', short-name: 't'), (long-name: 'Right', short-name: 'r'), (long-name:'Bottom', short-name: 'b'), (long-name:'Left', short-name:'l');
@each $property in $properties {
@colinwren
colinwren / SassMeister-input.scss
Created October 29, 2015 03:33
Generated by SassMeister.com.
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
$properties: (long-name: 'margin', short-name: 'm'), (long-name: 'padding', short-name: 'p');
$unit-base: 4px;
$directions: (long-name: 'Top', short-name: 't'), (long-name: 'Right', short-name: 'r'), (long-name:'Bottom', short-name: 'b'), (long-name:'Left', short-name:'l');
@each $property in $properties {
@colinwren
colinwren / file1.txt
Created September 4, 2013 01:55
Created via API
Demo
@colinwren
colinwren / index.js
Created June 1, 2013 02:44
Introduction to voxel.js not working
var createGame = require('voxel-engine');
var game = createGame();
var container = document.body;
game.appendTo(container);
var createPlayer = require('voxel-player')(game);
var dude = createPlayer('dude.png');
dude.possess();
var assert = require('assert');
var httpHelper = require('./helpers/httpHelper.js');
var appHelper = require('./helpers/appHelper');
describe('View routes', function() {
var appName = 'testApp';
before(function(done) {
appHelper.build(function(err) {
if(err) return done(err);
var fs = require('fs-extra');
var wrench = require('wrench');
var exec = require('child_process').exec;
var path = require('path');
var sailsBin = path.resolve('./bin/sails.js');
/**
* Uses the Sails binary to create a namespaced test app
* If no appName is given use 'testApp'
*
@colinwren
colinwren / coffeeTask.js
Created April 3, 2013 02:36
Grunt.log.error question
Desired CoffeeScript compilation Error:
>> SyntaxError: unmatched }
>> In file: main.coffee
>> On line: 15
>> foo = } bar
>> ^
The isssue is that grunt.log.error trims whitespace so that
grunt.log.error(' ^')