Skip to content

Instantly share code, notes, and snippets.

View takuya's full-sized avatar

takuya@mori takuya

  • Osaka City Univ
  • Osaka,Japan
View GitHub Profile
#coding:utf-8
# @author https://github.com/takuya
#
# Copyright (C) 2012-2013 takuya. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
#
require 'mechanize'
# トップページ
m = Mechanize.new
m.follow_meta_refresh = true
m.get "http://www.jibunbank.co.jp/"
#!/usr/bin/env bash
if ! $( type -P groff >/dev/null); then
echo groff is not found.
echo please install groff
exit 1;
fi
name=$1
<?php
//paypal
class Invoice {
public $client_id;
public $secret;
public $access_token;
public $paths;
public function __construct(){
$this->initalize();
#!/usr/bin/env ruby
#/*
# *
# * This program is free software: you can redistribute it and/or modify
# * it under the terms of the GNU General Public License as published by
# * the Free Software Foundation, either version 3 of the License, or
# * (at your option) any later version.
# *
# * This program is distributed in the hope that it will be useful,
# * but WITHOUT ANY WARRANTY; without even the implied warranty of
@takuya
takuya / find.rb
Created September 25, 2014 06:53
#!/usr/bin/env ruby
#
#
require 'find'
require 'fileutils'
if ARGV.size != 2 then
puts "
散らばったファイルを一箇所にコピーして集めてくる
使い方 #{__FILE__} src dst
#!/usr/bin/env python
# coding: utf-8
import pprint
pp = pprint.PrettyPrinter(indent=4)
pprint = pp.pprint
import os
import datetime
import sys
import urllib
str='window._open = window.open;window.open = function(){ arguments[2] = null; return window._open.apply(this,arguments)}';
s = document.createElement("script")
s.innerText = str
document.body.appendChild(s)
#!/usr/bin/env ruby
# coding:utf-8
require 'stringio'
require 'pp'
class Ini
@@original_string
def initialize io
@@ini = {}
@@comments = {}
comment = ""
#!/usr/bin/env ruby
# coding:utf-8
require 'stringio'
require 'pp'
class Ini
@@original_string
def initialize io
@@ini = {}
@@comments = {}
comment = ""