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
#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. | |
# |
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
require 'mechanize' | |
# トップページ | |
m = Mechanize.new | |
m.follow_meta_refresh = true | |
m.get "http://www.jibunbank.co.jp/" |
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
#!/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 |
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
<?php | |
//paypal | |
class Invoice { | |
public $client_id; | |
public $secret; | |
public $access_token; | |
public $paths; | |
public function __construct(){ | |
$this->initalize(); |
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
#!/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 |
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
#!/usr/bin/env ruby | |
# | |
# | |
require 'find' | |
require 'fileutils' | |
if ARGV.size != 2 then | |
puts " | |
散らばったファイルを一箇所にコピーして集めてくる | |
使い方 #{__FILE__} src dst |
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
#!/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 |
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
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) | |
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
#!/usr/bin/env ruby | |
# coding:utf-8 | |
require 'stringio' | |
require 'pp' | |
class Ini | |
@@original_string | |
def initialize io | |
@@ini = {} | |
@@comments = {} | |
comment = "" |
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
#!/usr/bin/env ruby | |
# coding:utf-8 | |
require 'stringio' | |
require 'pp' | |
class Ini | |
@@original_string | |
def initialize io | |
@@ini = {} | |
@@comments = {} | |
comment = "" |