This file contains hidden or 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 ($, document, window) { | |
| 'use strict'; | |
| $.fn.simpleTooltip = function (options) { | |
| if (!this.length) { | |
| return this; | |
| } | |
| var settings = $.extend({ |
This file contains hidden or 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
| Android Tips #14 Google Cloud Messaging (GCM) でプッシュ配信する | Developers.IO http://dev.classmethod.jp/smartphone/android-tips-14-gcm/ | |
| Google Cloud Messaging for Android (GCM)を使ってみた - azukinohirokiの日記 http://d.hatena.ne.jp/azukinohiroki/20120628/1340868610 | |
| AIR for Androidでプッシュ通知を利用する その1 | ノデラボ。 http://labs.nodera.net/2012/11/05/air-for-android%e3%81%a7%e3%83%97%e3%83%83%e3%82%b7%e3%83%a5%e9%80%9a%e7%9f%a5%e3%82%92%e5%88%a9%e7%94%a8%e3%81%99%e3%82%8b-%e3%81%9d%e3%81%ae%ef%bc%91/ | |
| AIR for Androidでプッシュ通知を利用する その2 | ノデラボ。 http://labs.nodera.net/2012/11/05/air-for-android%E3%81%A7%E3%83%97%E3%83%83%E3%82%B7%E3%83%A5%E9%80%9A%E7%9F%A5%E3%82%92%E5%88%A9%E7%94%A8%E3%81%99%E3%82%8B-%E3%81%9D%E3%81%AE%EF%BC%92/ | |
| spacialdb/gcm · GitHub https://github.com/spacialdb/gcm |
This file contains hidden or 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 isTouch = (function () { | |
| var div = document.createElement('div'); | |
| div.setAttribute('ontouchstart', 'return'); | |
| return typeof div.ontouchstart === 'function'; | |
| }()); | |
| var isTouch2 = ('ontouchstart' in window); | |
| alert(isTouch + ", " + isTouch2); |
This file contains hidden or 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 VanillaIcecream = (function () { | |
| function VanillaIcecream() { | |
| } | |
| VanillaIcecream.prototype.getName = function () { | |
| return "バニラアイスクリーム"; | |
| }; | |
| VanillaIcecream.prototype.howSweet = function () { | |
| return "バニラ味"; | |
| }; | |
| return VanillaIcecream; |
This file contains hidden or 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 canvas, doAnim, endPoint, getPoint, line, stage, startPoint, t; | |
| function getPoint(p1, p2, t) { | |
| var x, x1, x2, y, y1, y2; | |
| x1 = p1.x; | |
| y1 = p1.y; | |
| x2 = p2.x; | |
| y2 = p2.y; | |
| x = (x2 - x1) * t + x1; |
This file contains hidden or 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 array = ['a', 'b', 'c', 'd', 'e', 'f', 'g']; | |
| var size = 2; | |
| var result = chunk(array, size); | |
| // console.log(result); // [['a', 'b'], ['c', 'd'], ['e', 'f'], ['g']] | |
| function chunk(array, size) { | |
| var len = array.length; | |
| var index = 0; | |
| var result = []; |
This file contains hidden or 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
| class StyleSheet | |
| constructor: () -> | |
| @cssRule = null | |
| parseCSS: (CSSText) -> | |
| parser = new CSSParser() | |
| @cssRule = parser.parse CSSText | |
| return | |
| # TODO: |
This file contains hidden or 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 FPS = 60; | |
| var canvas = document.getElementById("testCanvas"); | |
| var stage = new createjs.Stage(canvas); | |
| if (createjs.Touch.isSupported()) { | |
| createjs.Touch.enable(stage, false, false); | |
| } | |
| createjs.Ticker.setFPS(FPS); | |
| createjs.Ticker.addEventListener("tick", handleTick); |
This file contains hidden or 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
| /* | |
| * ShuffleText by Yasunobu Ikeda. Feb 3, 2012 | |
| * Visit http://clockmaker.jp/ for documentation, updates and examples. | |
| * | |
| * | |
| * Copyright (c) 2012 Yasunobu Ikeda | |
| * | |
| * Permission is hereby granted, free of charge, to any person | |
| * obtaining a copy of this software and associated documentation | |
| * files (the "Software"), to deal in the Software without |
This file contains hidden or 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'> | |
| <title></title> | |
| </head> | |
| <body> | |
| <h1>test</h1> | |
| </body> | |
| </html> |