Skip to content

Instantly share code, notes, and snippets.

View tamoot's full-sized avatar

Masahiro TAMURA tamoot

  • とやまし
  • Toyama, Japan
View GitHub Profile
@tamoot
tamoot / vote.coffee
Last active June 14, 2017 02:28 — forked from moomindani/vote.coffee
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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@tamoot
tamoot / proxy.rb
Created June 9, 2014 02:27 — forked from tomlea/proxy.rb
require "net/http"
require "enumerator"
# Example Usage:
#
# use Rack::Proxy do |req|
# if req.path =~ %r{^/remote/service.php$}
# URI.parse("http://remote-service-provider.com/service-end-point.php?#{req.query}")
# end
# end

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

@tamoot
tamoot / ldr2ril.rb
Created February 21, 2013 00:03 — forked from yhara/ldr2ril.rb
require 'cgi'
require 'rubygems'
require 'json'
require 'mechanize'
require 'pit'
# LDR
ldr_login = Pit.get("member.livedoor.com", :require => {
"username" => "your livedoor_id",