Skip to content

Instantly share code, notes, and snippets.

var VanillaIcecream = (function () {
function VanillaIcecream() {
}
VanillaIcecream.prototype.getName = function () {
return "バニラアイスクリーム";
};
VanillaIcecream.prototype.howSweet = function () {
return "バニラ味";
};
return VanillaIcecream;
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);
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
;(function ($, document, window) {
'use strict';
$.fn.simpleTooltip = function (options) {
if (!this.length) {
return this;
}
var settings = $.extend({
@foo9
foo9 / memo.md
Last active December 17, 2015 22:39
@foo9
foo9 / gist:5702194
Last active December 18, 2015 01:09
  • Backbone.Marionette

    • Backbone.BabySitter
      • Backbone.ChildViewContainer
        • add
        • findByModel
        • findByCollection
        • findByCustom
        • findByIndex
  • findByCid

@foo9
foo9 / gist:5770749
Last active December 18, 2015 10:48
GruntでCoffeeScriptコンパイル&圧縮

GruntでCoffeeScriptコンパイル&圧縮

npm, nodeは事前に導入済み

$ npm install -g grunt-cli
$ mkdir hogehoge
@foo9
foo9 / gist:5780383
Created June 14, 2013 08:36
英字キーボードでvim
" Swap ; and :
nnoremap ; :
nnoremap : ;
$ ruby -rwebrick -e "WEBrick::HTTPServer.new(:DocumentRoot => './', :Port => 8000).start"
$(function() {
var tag = document.createElement('script');
tag.src = "https://www.youtube.com/iframe_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
});
var YTAPIReady = false;
function onYouTubeIframeAPIReady() {