Skip to content

Instantly share code, notes, and snippets.

View dburrows's full-sized avatar
🙃

David Burrows dburrows

🙃
View GitHub Profile
var Q = require('q');
var HTTP = require("q-io/http");
Q.all( [
HTTP.request('https://mathstracker.co.uk/').timeout(5000).then(getStatus),
HTTP.request('http://mammal.io/').timeout(5000).then(getStatus)
])
.then(function(resStatusArray) {
console.log(resStatusArray);
})
$type: "scale";
$value: 50%;
$lb: "(";
$rb: ")";
div {
transform:( #{$type}#{$lb}#{$value}#{$rb} );
}
@dburrows
dburrows / gist:71c5cdbe696665ce5b4a
Last active August 29, 2015 14:03
Minification issues with Angular & Browserify
// when using Browserify with Angular + ngmin you may do something like this
// controllers/example-list.js
module.exports = function ($scope) {
//..
};
// example-module.js
var exampleListController = require('./controllers/example-list');
FROM ubuntu:14.04
RUN apt-get -y update
RUN apt-get -y install software-properties-common
RUN add-apt-repository ppa:chris-lea/node.js
RUN apt-get -y update
RUN apt-get -y install nodejs
ADD . /src
RUN cd /src; npm install
EXPOSE 8080
CMD ["nodejs", "/src/index.js"]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
@dburrows
dburrows / Gemfile
Created March 23, 2012 19:17 — forked from mbleigh/Gemfile
Non-Rails Rackup with Sprockets, Compass, Handlebars, Coffeescript, and Twitter Bootstrap
source "https://rubygems.org"
gem 'sprockets'
gem 'sprockets-sass'
gem 'sass'
gem 'compass'
gem 'bootstrap-sass'
gem 'handlebars_assets'
gem 'coffee-script'
@dburrows
dburrows / rspec_cheat_sheet.rd
Created April 25, 2012 11:27 — forked from byplayer/rspec_cheat_sheet.rd
rspec cheat sheet
INSTALL
=======
$ gem install rspec
RSPEC-RAILS
===========
RAILS-3
=======
@dburrows
dburrows / gist:6462367
Created September 6, 2013 10:59
Sublime Text 3 Icons Fix
fix is here https://github.com/SublimeLinter/SublimeLinter/commit/4ed28de
--
in Sublime Text 3, in the SublimeLinter folder
edit SublimeLinter.py
42: +MARK_THEMES_PATH = os.path.join('Packages', 'SublimeLinter', 'gutter_mark_themes')
263: gutter_mark_image = gutter_mark_theme + '-' + lint_type
@dburrows
dburrows / OS X - installing Ansible via `pip install`
Last active November 4, 2016 01:13
Reliably installing Ansible on OS X Mavericks
// brew install ansible didn't work properly,
// even tried brew install python but no joy
// so use pip on standard python install
sudo pip install ansible
// if you get errors try this
// from https://github.com/ansible/ansible/issues/7146
When you get to the step 'sudo pip install ansible', do this instead: