| 更新: | 2015-05-25 |
|---|---|
| 作者: | @voluntas |
| バージョン: | 0.3.1 |
| URL: | http://voluntas.github.io/ |
概要
| #!/bin/bash | |
| # How to use: | |
| # export ENV_BEARYCHAT_URL=YOUR_BEARYCHAT_CHANNEL | |
| # $ cp thisfile .git/hook/post-commit | |
| commitid=$(git log -1 --pretty=format:"%h" --branches) | |
| commitmessage=$(git log -1 --pretty=format:"%s" --branches) | |
| committer=$(git log -1 --pretty=format:"%an" --branches) |
| from datadog import statsd | |
| import time | |
| from random import randint | |
| from datadog.api.constants import CheckStatus | |
| import threading | |
| def increment(): | |
| while True: | |
| s = randint(30,100) | |
| time.sleep(s) |
| #!/bin/sh | |
| ## | |
| # Install autoconf, automake and libtool smoothly on Mac OS X. | |
| # Newer versions of these libraries are available and may work better on OS X | |
| # | |
| # This script is originally from http://jsdelfino.blogspot.com.au/2012/08/autoconf-and-automake-on-mac-os-x.html | |
| # | |
| export build=~/devtools # or wherever you'd like to build |
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "github.com/koron/go-dproxy" | |
| ) | |
| func main() { | |
| var v interface{} |
| 更新: | 2015-05-25 |
|---|---|
| 作者: | @voluntas |
| バージョン: | 0.3.1 |
| URL: | http://voluntas.github.io/ |
概要
| require 'bundler/capistrano' | |
| set :application, "net" | |
| set :repository, "[email protected]:net.git" | |
| set :scm, :git | |
| set :default_environment, { | |
| 'PATH' => "$HOME/.rbenv/shims:$HOME/.rbenv/bin:$PATH" | |
| } |
| # encoding: utf-8 | |
| require 'rubygems' | |
| require 'RMagick' | |
| def test(f) | |
| image = Magick::ImageList.new(f) | |
| width = image.columns | |
| height = image.rows |
| #!/usr/bin/env ruby | |
| # Colorize string | |
| class String | |
| def colorize(color_code) | |
| "\e[#{color_code}m#{self}\e[0m" | |
| end | |
| end | |
| class Colors |