Skip to content

Instantly share code, notes, and snippets.

;(function ($, document, window) {
'use strict';
$.fn.simpleTooltip = function (options) {
if (!this.length) {
return this;
}
var settings = $.extend({
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
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);
var VanillaIcecream = (function () {
function VanillaIcecream() {
}
VanillaIcecream.prototype.getName = function () {
return "バニラアイスクリーム";
};
VanillaIcecream.prototype.howSweet = function () {
return "バニラ味";
};
return VanillaIcecream;
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;
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 = [];
class StyleSheet
constructor: () ->
@cssRule = null
parseCSS: (CSSText) ->
parser = new CSSParser()
@cssRule = parser.parse CSSText
return
# TODO:
@foo9
foo9 / gist:5486617
Last active December 16, 2015 19:39
easeljsでスワイプ
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);
@foo9
foo9 / ShuffleEaselText.js
Created April 29, 2013 23:11
ShuffleEaselText.jsをeaseljs0.6に対応
/*
* 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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<title></title>
</head>
<body>
<h1>test</h1>
</body>
</html>