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(window, loaded){ | |
var win; | |
if (!loaded && this.chrome) { | |
var fn = '(' + arguments.callee.toString() + ')(this,true);'; | |
var script = document.createElement('script'); | |
script.appendChild(document.createTextNode(fn)); | |
document.body.appendChild(script); | |
return; | |
} else if (this.chrome) { | |
win = window; |
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
<div id="hoge"> | |
<div class="foo"></div> | |
</div> |
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
var fs = require("fs"), fileName; | |
// 入力ファイルチェック | |
fileName = process.argv[2]; | |
if (!fileName) { | |
console.log("no exist file."); | |
process.exit(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
// ==UserScript== | |
// @name GDD2011 Answer Web Game | |
// @namespace http://www.atomer.sakuran.ne.jp | |
// @description GDD2011の神経衰弱自動解答スクリプト | |
// @include http://gdd-2011-quiz-japan.appspot.com/webgame/problem | |
// @version 0.1 | |
// ==/UserScript== | |
var s = document.querySelectorAll("script")[2].innerHTML, a, cards; |
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 myFunction() { | |
var res, data, ss, ass, sheet, cell, c, u, r, idx; | |
// 入力データの読み込み及びJSONデータのパース | |
res = UrlFetchApp.fetch("http://gdd-2011-quiz-japan.appspot.com/apps_script/data?param=2033167385065124336"); | |
data = Utilities.jsonParse(res.getContentText()); | |
// スプレッドシートの取得 | |
ss = SpreadsheetApp.getActiveSpreadsheet(); | |
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 Board(w, h, data) { | |
var info = Board.create(w, h, data); | |
this._size = [h, w]; | |
this._indexSize = [h - 1, w - 1]; | |
this._board = info.board; | |
this._point = info.point; | |
this._answer = this._getAnswer(data); | |
this._counter = { | |
"up": 0, | |
"down": 0, |
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 | |
// 検索ルートdir | |
$root = isset($argv[1]) ? $argv[1] : false; | |
if (!$root) { | |
exit('no root'); | |
} | |
msg('==============Delete duplicate image 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
// ==UserScript== | |
// @name digg fullfeed | |
// @namespace http://www.atomer.sakuran.ne.jp | |
// @description nantyatte fullfeed | |
// @include http://digg.com/reader/* | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js | |
// @version 0.1 | |
// ==/UserScript== | |
(function(window, loaded){ | |
var win; |
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 kancolle beforeunload | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description | |
// @author atomer | |
// @match http://www.dmm.com/netgame/social/-/gadgets/=/app_id=* | |
// @grant none | |
// ==/UserScript== | |
/* jshint -W097 */ |
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
// http://a.hatena.ne.jp/{user_name}/checklist | |
function getURL(antenaURL) { | |
return new Promise((resolve) => { | |
var xhr = new XMLHttpRequest(); | |
xhr.open('GET', antenaURL); | |
xhr.send(); | |
xhr.addEventListener('readystatechange', (res) => { | |
if (xhr.readyState === 4) { | |
var div = document.createElement('div'); |
OlderNewer