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 Plugin = exports.Plugin = function plugin (bot) { | |
this.listeners = {TRIGGER: 'plugin_name'}; // register TRIGGER to call plugin_name | |
bot.pluginCore.apply(this, [bot]); | |
this.plugin_name = function plugin_name (message) { | |
// Do something fun | |
}.bind(this); |
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
"engines": { | |
"node": "0.8.x", | |
"npm": "1.1.x" | |
} |
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
{ | |
"close_windows_when_empty": false, | |
"color_scheme": "Packages/Base16 Color Schemes/base16-eighties.dark.tmTheme", | |
"fold_buttons": false, | |
"folder_exclude_patterns": | |
[ | |
".svn", | |
".git", | |
".hg", | |
"CVS", |
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
desc 'create new post or bit. args: type (post, bit), title, future (# of days)' | |
# rake new future=0 title="New post title goes here" slug="slug-override-title" | |
task :new do | |
require 'rubygems' | |
require 'chronic' | |
require 'stringex' | |
require 'active_support' | |
title = ENV["title"] || "New Title" | |
future = ENV["future"] || 0 |
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
desc 'deploy to github' | |
task :deploy do | |
puts 'deploying' | |
sh "git add . && git commit -a -m 'Adding new content' && git push" | |
puts 'done!' | |
end |
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
sudo chown -R _mysql /usr/local/var/mysql | |
sudo chmod -R o+rwx /usr/local/var/mysql |
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
$ cd ~/Desktop $ sudo mv /Library/Preferences/com.apple.Bluetooth.plist . | |
$ sudo mv ~/Library/Preferences/com.apple.Bluetooth.plist . | |
$ sudo mv ~/Library/Preferences/ByHost/com.apple.Bluetooth.* . |
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
script_dir=${0%/*} | |
for script in $script_dir/base16*.sh; do | |
script_name=$(basename $script .sh) | |
theme=${script_name#*-} | |
variation=${theme#*.} | |
theme=${theme%.*} | |
base16_${theme}_${variation}() { | |
parts=("${(@s/_/)0}") |
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 stateCount = 0; | |
var timer; | |
var resetTimer; | |
var brewing = false; | |
app.post('/brew_hook', function(req, res) { | |
stateCount++; | |
clearTimeout(resetTimer); |
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
# Description | |
# Web hook for the Stockholm coffee brewer | |
# | |
# Commands | |
# there's no commands. | |
# Author: | |
# Johan Stenehall <johan@narrativeteam.com> (https://github.com/stenehall) | |
# | |
# Contributors: | |
# Joakim Berglund <joakim@getnarrative.com> (https://github.com/Berglund) |