Skip to content

Instantly share code, notes, and snippets.

@think49
think49 / LingrRoomArchives-bookmarklet.html
Created January 15, 2011 17:39
LingrRoomArchives-bookmarklet.js : Lingr の "room archives" でHTMLログを出力する bookmarklet
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Lingr room bookmarklet</title>
<style>
html { margin: 0; padding: 0; }
body { margin: 0; padding: 0; color: #555; background-color: #fdfdd1; }
h1, h2, h3, h4, h5, h6 { margin: 0; padding: 0; color: #CB7500; font-family: Georgia, Times, serif; text-shadow: #DDD 0px 0.05em 0.05em; }
@think49
think49 / rfc3986.js
Created January 7, 2011 20:59
rfc3986.js : RFC3986 に準拠した URI チェッカー
/**
* rfc3986.js
* Uniform Resource Identifier (URI): Generic Syntax (RFC3986)
*
* @version 1.0
* @author think49
* @url https://gist.github.com/770087
* @see <a href="http://www.ietf.org/rfc/rfc3986.txt">www.ietf.org/rfc/rfc3986.txt</a>
* @see <a href="http://www.studyinghttp.net/rfc_ja/rfc3986">Uniform Resource Identifier (URI): &#x4e00;&#x822c;&#x7684;&#x69cb;&#x6587;</a>
* @license http://www.opensource.org/licenses/mit-license.php (The MIT License)
@think49
think49 / getAncestorElementByTagName.js
Created December 29, 2010 20:06
getAncestorElementByTagName.js : 対象の tagName を持つ祖先要素ノードを返す。存在しなければ null を返す。
/**
* getAncestorElementByTagName.js
*
* @version 1.0
* @author think49
*/
/**
* get Ancestor Element by tagName.
@think49
think49 / addEvent.js
Created December 29, 2010 19:05
addEvent.js: Node#addEventListener, attachEvent のラッパー関数。
/**
* addEvent.js
*
* @version 2.1.3
* @author think49
*/
/**
* removeEventListener wrapper.
* @function
@think49
think49 / Array.txt
Created December 29, 2010 13:04
[Proxomitron] Array を実装するフィルタ prototype
[Patterns]
Name = "Array [2010/12/02] prototype v0.1.31"
Active = TRUE
Limit = 256
Match = "array"
"$SET(ArrayStatements=var hoge = ["foo","\\"Hello, World!\\"",'test'];)"
"$LST(ArrayCommand)"
Replace = "ArrayCSVLine = $GET(ArrayCSVLine)\r\n"
"ArrayCSV = $GET(ArrayCSV)\r\n"
"\\9 = \9 "
@think49
think49 / Div.js
Created December 28, 2010 16:37
Div.js: new Div で [object HTMLDivElement] を生成するコンストラクタ。new Image の真似。
/**
* Div.js
*
* @version 0.2
* @author think49
*/
/**
* DOM HTMLDivElement constructor.
* @constructor
@think49
think49 / removeNodesAll.js
Created December 16, 2010 12:48
removeNodesAll.js: 対象のノードリストを全て削除する (deep === true で子要素まで削除する)
/**
* removeNodesAll.js
*
* @version 1.1.1
* @author think49
*/
/**
* Remove NodeList.
* @function
@think49
think49 / ElementTraversal.js
Created December 9, 2010 12:12
ElementTraversal.js: W3C勧告の ElementTraversal を実装するJavaScriptライブラリ
/**
* ElementTraversal.js
*
* @version 1.0
* @author think49
*/
/**
* Interface Node
@think49
think49 / toGreatestCommonDivisor.js
Created November 13, 2010 15:00
toGreatestCommonDivisor.js : 最大公約数を求める (ユークリッドの互除法)
/**
* toGreatestCommonDivisor.js
* @version 1.0
* @author think49
*/
/**
* 最大公約数を求める。(ユークリッドの互除法)
* @function
@think49
think49 / get-primes.js
Created November 13, 2010 13:19
isPrime.js : 素数を判定する / get-primes.js : 素数リストを出力する
/**
* get-primes.js
* Get a prime list.
*
* @version 1.0.1
* @author think49
* @url https://gist.github.com/675313
* @license http://www.opensource.org/licenses/mit-license.php (The MIT License)
*/