Skip to content

Instantly share code, notes, and snippets.


Masahiro TAMURA tamoot

  • とやまし
  • Toyama, Japan
View GitHub Profile
tamoot /
Last active Jun 14, 2017 — forked from moomindani/
Hubot script: Utility commands for voting someone.
# Description:
# Utility commands for voting someone.
# Commands:
# <name>++, <name>--, !vote-list, !vote-clear
module.exports = (robot) ->
KEY_SCORE = 'key_score'
getScores = () ->
# Copyright 2012 Mortar Data Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# Unless required by applicable law or agreed to in writing, software
View proxy.rb
require "net/http"
require "enumerator"
# Example Usage:
# use Rack::Proxy do |req|
# if req.path =~ %r{^/remote/service.php$}
# URI.parse("{req.query}")
# end
# end
View PIL_build.rst

PIL(Pillow) build on Windows (32bit & 64bit)

If you want to build PIL on Windows, you need to prepare few external libraries. Although some libraries did not provide static library for windows 32/64 bits then you need to build these libraries by your hand too. Also, PIL will load by python at last then you are recommended to use same compiler with python to build libraries.

Target PIL and versions

Pillow:1.7.8 for Python 2.7: src
View ldr2ril.rb
require 'cgi'
require 'rubygems'
require 'json'
require 'mechanize'
require 'pit'
ldr_login = Pit.get("", :require => {
"username" => "your livedoor_id",