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
// ==UserScript== | |
// @name TogetterFilter | |
// @namespace TogetterFilter | |
// @description Togetterを任意のユーザー名を用いてフィルタリング | |
// @include http://togetter.com/* | |
// @require https://github.com/azu/usconfig/raw/v1.13/usconfig.js | |
// ==/UserScript== | |
// 設定画面の定義 - http://d.hatena.ne.jp/h1mesuke/20100713/p1 | |
Config.define('usc_basic', function() { | |
with (this.builder) { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<!-- some library if i need --> | |
<script type="text/javascript" src="./background.js"></script> | |
</head> | |
<body> | |
background.html | |
</body> |
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
function print_r(arr, br, nbsp) { | |
br = (br) ? br : "\n"; | |
nbsp = (nbsp) ? nbsp : " "; | |
function dump(arr, br, nbsp, level) { | |
var dumped_text = ""; | |
if(!level) { | |
level = 0; | |
} | |
//The padding given at the beginning of the line. | |
var level_padding = ""; |
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
/* | |
* コメントの数字は実行される順序です。 | |
* asyncTestメソッドはstart()メソッドが実行されるまで次のテストの実行を待機します。 | |
*/ | |
asyncTest("test1",function(){ // 1 | |
doSomething(); // 4 | |
start(); | |
}); | |
asyncTest("test2",function(){ // 2 | |
start(); |
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
for /R /D %I in (.svn) do RMDIR "%I" /S /Q |
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/python | |
# -*- coding: utf-8 -*- | |
import os, re | |
path = os.getcwd() + "/" | |
p = re.compile('ipad3_(.+?)(\d+?p)_\d+?X?.pdf', re.IGNORECASE) | |
errBuff = [] | |
for name in os.listdir("./"): |
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
NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; | |
NSString *format = @"yyyy/MM/dd HH:mm:ss Z"; | |
[formatter setDateFormat:format]; | |
NSDate *date = [[NSDate alloc] initWithString:@"2010-01-01 23:59:59 +0900"]; | |
NSLog(@"date:%@", [formatter stringFromDate:date]); |
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
#!/bin/bash | |
~/Desktop/crashlog.tar.gz ~/Library/Logs/CrashReporter/MobileDevice |
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
$ rake device --trace | |
** Invoke device (first_time) | |
** Invoke archive (first_time) | |
** Invoke build:device (first_time) | |
** Execute build:device | |
** Execute archive | |
** Execute device | |
XCODE_DIR="/Applications/Xcode.app/Contents/Developer" /Library/RubyMotion/bin/deploy -d "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" "./build/iPhoneOS-6.0-Development/clipTo.ipa" | |
log: subscribing to device notification | |
log: found usb mobile device XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX |
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
<!doctype html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta charset="UTF-8" /> | |
<!-- deviceの横幅に合わせる --> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
</head> | |
<body> | |
</body> | |
</html> |
OlderNewer