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
RND Template Engine です。 | |
簡易テンプレートエンジンで使い方としては下記の通り | |
http://jsdo.it/juner/Hello_RNDTemplateEngine |
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
RND templateEngineの Hello Worldでも。 | |
元ネタ的には | |
http://amix.dk/blog/viewEntry/163 | |
なのだけれど、使ってる人って居るんかな。 | |
test1 | |
$(X)で囲った箇所を指定した変数によって置き換えてます。 |
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
.sort() 1.0 | |
jQueryのソートプラグイン | |
バージョン: 1.0 | |
リリース日: 2012/12/23 | |
作成者名: JunerClarinetMaeda | |
jQuery.fn.sort(); | |
何もせずthisを返す。 | |
jQuery.fn.sort(String key); |
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
jQueryを取得している際にコーディング時に設定するスクリプトでも。 | |
test オプジェクトにテストの表示とクリアを設定します。 | |
表示する際は下記の様にします。 | |
test.print(text); | |
表示を消去する場合は下記の様にします。 | |
test.clear(); |
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
※デバッグ用のクラスをDOMで作ってみるテスト※ | |
・インターフェース | |
デバッグ用のクラスは以下の様な構造になっています。 | |
new DebugElement(elem) | |
指定した要素をデバッグ用とします。 | |
@param elem 表示先の要素 | |
new DebugElement(idName) | |
指定したIdの要素をデバッグ用とします。 |
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
canvas正男を元にした修正案。 | |
元ネタは | |
http://uhyohyohyo.sakura.ne.jp/canvasmasao/ | |
で、作者は うひょさん [ https://twitter.com/uhyo_ ] | |
2013/01/28 00:23 | |
requestAnimationFrame によって動かすと早すぎるので元の速度で出来るように修正 | |
参考にしたページは下記のページ | |
http://skerit.com/en/programming/using-requestanimationframe-and-a-target-fps/ |
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
jQuery 1.9対応しました! | |
要素から 1文字ずつ指定要素として取得する為のjQuery plugin | |
・使い方 | |
$(selecter).texts(options); | |
options.className : 一時クラス名(オプション 初期値: "char") | |
options.tagName : 生成タグ名 (オプション 初期値: "span") | |
options.excludeTagNames : 除外セレクタ[主に除外するタグ名を指定する](初期値:select,option,textarea,ul,ol,dl) | |
options.reg : 正規表現オブジェクト(オプション 初期値: /([\uD800-\uDBFF][\uDC00-\uDFFF]|[^\B\t\s ])/g) |
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
[].filter.call($$(selector),function(element){ return element.textContent.indexOf("hoge") != -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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace ArrayTest | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
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
using System; | |
using System.Collections.Generic; | |
namespace じゃんけんげーむ | |
{ | |
/// <summary> | |
/// じゃんけんの手 | |
/// </summary> | |
enum じゃんけんの手 | |
{ |
OlderNewer