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
javascript:(function(){_my_script=document.createElement('SCRIPT');_my_script.type='text/javascript';_my_script.src='http://lab.nplll.com/bbp/bookmarklet.jst.js?x='+(Math.random());document.getElementsByTagName('head')[0].appendChild(_my_script);})(); |
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 nicotw | |
// @version 0.0.2 | |
// @namespace http://nplll.com/ | |
// @description 視聴したニコニコ動画を自動的にTwitterにPostするGreasemonkey | |
// @include http://www.nicovideo.jp/watch/* | |
// @require https://github.com/azu/OAuth-for-Greasemonkey/raw/master/oauth.js | |
// @require https://github.com/azu/OAuth-for-Greasemonkey/raw/master/sha1.js | |
// @require https://github.com/azu/OAuth-for-Greasemonkey/raw/master/GMwrap.js | |
// @resource oauthbutton http://a0.twimg.com/images/dev/buttons/sign-in-with-twitter-d.png |
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 yahoojp2sankei | |
// @version 0.0.1 | |
// @namespace http://nplll.com | |
// @description Yahoo!Japannの産経新聞へのリンクをイザ!からMSNに変更する | |
// @include http://headlines.yahoo.co.jp/* | |
// @updated 2011/05/18 11:00 | |
// ==/UserScript== | |
// 0.0.1 - 2011/05/18 リリース |
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 MicroAd Password Enable | |
// @namespace http://nplll.com | |
// @include http://www.microad.jp/* | |
// ==/UserScript== | |
(function(){ | |
document.getElementById('newlogin').autocomplete = 'on'; | |
})(); |
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
$sth = $pdo->prepare("INSERT INTO sample (id, date) VALUES (:id, :date)"); | |
foreach($data as $line): | |
$sth->execute(array( | |
':id' => $line['id'], | |
':date' => $line['date'] | |
)); | |
endforeach; | |
$sth->closeCursor(); |
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
try { | |
$pdo->beginTransaction(); | |
foreach($data as $index => $line): | |
$sth = $pdo->prepare("INSERT INTO sample (id, date) VALUES (:id, :date)"); | |
$sth->execute(array( | |
':id' => $line['id'], | |
':date' => $line['date'] | |
)); | |
$sth->closeCursor(); | |
endforeach; |
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
$sql_values = array(); | |
foreach($data as $line): | |
$sql_values[] = "(" . $line['id'] . ", '" . $line['date'] . "')"; | |
endforeach; | |
$sql = "INSERT INTO sample (id, date) VALUES " . implode(', ', $sql_values); | |
$pdo->query($sql); |
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
javascript:(function(){window.open('http://1ni.co/watch/'+location.href.match(/^http:\/\/www.nicovideo.jp\/watch\/(\w+)\??/)[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 Nico Canonical | |
// @version 0.0.1 | |
// @namespace https://gist.github.com/1257023 | |
// @description ニコニコ動画のcanonicalを置き換えるGreasemonkey | |
// @include http://www.nicovideo.jp/watch/* | |
// @updated 2011/10/02 12:56:00 | |
// ==/UserScript== | |
// 0.0.1 - 2011/10/02 リリース |
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
Tombloo.Service.extractors['Photo - Flickr'].RE = new RegExp('^http://(?:.+?.)?static.?flickr.com/\\d+?/(\\d+?)_.*'); |