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 'mechanize' | |
require 'pp' | |
require 'logger' | |
require 'cgi' | |
class NcorsSystem |
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 osascript -l JavaScript | |
ObjC.import('stdlib') | |
//コマンドライン引数を取る | |
function run( argv ){ | |
if( argv.length < 1 ){ | |
argv = ["no title"]; | |
} | |
var app = Application("Evernote") |
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 | |
# Copyright (C) 2014 takuya_1st | |
# | |
# 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, |
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
[ { 'content-type': 'application/1d-interleaved-parityfec', | |
encoding: 'base64', | |
references: | |
[ 'IANA', | |
'RFC6015', | |
'{application/1d-interleaved-parityfec=http://www.iana.org/assignments/media-types/application/1d-interleaved-parityfec}' ], | |
xrefs: { rfc: [Object], template: [Object] }, | |
registered: true }, | |
{ 'content-type': 'application/3gpdash-qoe-report+xml', | |
encoding: 'base64', |
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
/// takuya | |
// いったい何がしたいの・・・ | |
$(function(){ | |
$('input[maxlength]').each(function(){ | |
var maxlength = $(this).attr('maxlength'); | |
var f = function(){ | |
if($(this).val().length <= maxlength){ | |
$(this).attr('maxlength', maxlength).unbind('keydown keypress keyup focus', f); | |
}else{ |
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 | |
module CarLicenseNumber | |
def area_code_list | |
[["北海道", 10], | |
["東北地方", 20], | |
["東京都", 30], | |
["関東甲信越", 40], |
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 "rubygems" | |
require 'headless' | |
require "watir" | |
require "watir-webdriver" | |
module BillScraper | |
class SoftbankWatir | |
attr_accessor :browser |
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
#!/usr/bin/env ruby | |
require "prawn" | |
f_name = File.basename(__FILE__, ".rb")+".pdf" | |
Prawn::Document.generate(f_name) { | |
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 "prawn" | |
f_name = File.basename(__FILE__, ".rb")+".pdf" | |
Prawn::Document.generate(f_name) { | |