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
#!/bin/sh
echo "CHANNEL : $CHANNEL"
echo "DURATION : $DURATION"
echo "OUTPUT : $OUTPUT"
echo "TUNER : $TUNER"
echo "TYPE : $TYPE"
echo "MODE : $MODE"
echo "SID : $SID"
RECORDER=/usr/local/bin/recpt1
#!/usr/bin/env ruby
# coding : utf-8
require 'mechanize'
require 'pp'
require 'logger'
require 'cgi'
class NcorsSystem
#!/usr/bin/env osascript -l JavaScript
ObjC.import('stdlib')
//コマンドライン引数を取る
function run( argv ){
if( argv.length < 1 ){
argv = ["no title"];
}
var app = Application("Evernote")
#!/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,
[ { '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',
@takuya
takuya / gist:66b2b9dabc4ec1fe9a8d
Created December 17, 2014 08:05
タイムズプラスログインのmaxlength.js
/// 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{
require "rubygems"
require 'headless'
require "watir"
require "watir-webdriver"
module BillScraper
class SoftbankWatir
attr_accessor :browser
#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.
#
#!/usr/bin/env ruby
require "prawn"
f_name = File.basename(__FILE__, ".rb")+".pdf"
Prawn::Document.generate(f_name) {
#!/usr/bin/env ruby
require "prawn"
f_name = File.basename(__FILE__, ".rb")+".pdf"
Prawn::Document.generate(f_name) {