Skip to content

Instantly share code, notes, and snippets.

View mtylty's full-sized avatar

Matteo Latini mtylty

View GitHub Profile
@mtylty
mtylty / merge_simplecov
Last active November 24, 2017 14:26
merge_simplecov
#!/usr/bin/env ruby
require_relative 'spec/support/simplecov'
module SimpleCov
module ResultMerger
class << self
def resultset_files
Dir.glob(File.join(SimpleCov.coverage_path, '*', '.resultset.json'))
end
@mtylty
mtylty / store.coffee
Created January 30, 2014 14:25
tapas-with-ember store file with support for multiple environments
env = require 'config/environment'
if env.isDevelopment()
window.App.ApplicationAdapter = DS.RESTAdapter.extend({
host: 'http://localhost:3000'
})
else if env.isTest()
window.App.ApplicationAdapter = DS.FixtureAdapter.extend({
simulateRemoteResponse: false
})
@mtylty
mtylty / Cakefile
Created January 27, 2014 11:36
tapas-with-ember Cakefile edited to spawn dyson nodejs server
http = require 'http'
fs = require 'fs'
{spawn, exec} = require 'child_process'
# ----------------
# Server / Builder
# ----------------
option '-P', '--production', 'run server in production mode'
@mtylty
mtylty / pulsar.coffee
Created April 6, 2013 01:08
A hubot script to use the Pulsar gem to deploy via hubot
# Description:
# This script enables you to deploy via the Pulsar gem through hubot.
# Deploy authorization is enabled via the auth hubot script; to deploy
# you need to have either the 'admin' or the 'deployer' role.
#
# Dependencies:
# auth.coffee
#
# Configuration:
# HUBOT_INSTALL_DIR