Skip to content

Instantly share code, notes, and snippets.

View takimo's full-sized avatar

takimo(Shinya Takimoto) takimo

View GitHub Profile
@takimo
takimo / 0_reuse_code.js
Created March 20, 2014 06:38
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@takimo
takimo / get_error_report_by_casper.js
Last active December 24, 2015 15:29
HubotでAndroidのクラッシュレポート(GooglePlay)をIRCのチャンネルに通知するスクリプト
/*
* @name get_error_report_by_casper.js
* @description GooglePlayStoreからクラッシュレポートを取得するcasper用のスクリプト
* @example
* casperjs ./scripts/get_error_report_by_casper.js --dev_acc="casper_cli_bug_prefix-04467794333284148" --app=example.com --email=test@example.com --password=hogefuga
*/
var casper = require('casper').create({
pageSettings: {
javascriptEnabled: true
var Namespace = require("../lib/namespace");
/**
@fileOverview brook
@author daichi.hiroki<hirokidaichi@gmail.com>
*/
/*global Namespace*/
/**
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Reminder Message</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet">
</head>
@takimo
takimo / reminder_message.html
Last active December 17, 2015 20:39
reminder message destination on triaina.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Reminder Message</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet">
</head>
@takimo
takimo / gist:2402773
Created April 17, 2012 01:27
iPhoneでタップの色を変える
-webkit-tap-highlight-color: <color>;
@takimo
takimo / 5000_word.txt
Created April 5, 2012 01:34
5000 word
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234
@takimo
takimo / Makefile.patch
Created March 20, 2012 03:10
brook on nodejs
diff --git a/Makefile b/Makefile
index 22a63fc..51cf4ac 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,8 @@ COMPAT = ./build/brook.js
MOBILE = ./build/brook-mobile.js
MIN = ./build/brook.min.js
HTP = ./build/brook-view-htmltemplate-core.js
-all : $(CORE) $(COMPAT) $(MIN)
+NODE = ./build/brook-nodejs.js
@takimo
takimo / select2checkbox.user.js
Created December 13, 2011 00:15
select2checkbox.user.js の前回押したcheckboxを記録するバージョン
// ==UserScript==
// @name select2checkbox
// @match http://*/*
// ==/UserScript==
(function(){
// setting
var RECORD_MAX_COUNT = 5;
// base html & template
@takimo
takimo / select2checkbox.user.js
Created December 12, 2011 13:34
selectボックスをcheckboxに変換するuser.js
// ==UserScript==
// @name select2checkbox
// @match http://*/*
// ==/UserScript==
(function(){
var CHECKBOX_TEMPLATE = '<label><input type="checkbox" name="%name" value="%value" /><span style="margin-left:5px;">%text</span></label></br>';
var div = document.createElement('div');
var select = document.querySelector('#components');
var name = select.name;