Skip to content

Instantly share code, notes, and snippets.

This is transolation written by me as Japanese about Vue.js

データバインディングについてVue.jsと Backbone.stickitを比較する - mizchi's blog http://mizchi.hatenablog.com/entry/2014/02/18/163721

My Engilish is not so good. So please teach me what to say is better.


This is resource to suite to use vue.js againt my compony so I blame Backbone.stickit :D

// Use an AMD package here to gain access to nested internal modules.
require.config({
packages: [{
name: "jquery",
location: "vendor/jquery/src",
main: "index.js"
}]
});
// If we are using AMD, we don't care about core.

プログレッシブ・エンハンスメントで未来をデザインする

この記事はFrontrend Advent Calendar 2014 - Qiita 10日目の記事です。

プログレッシブ・エンハンスメントは単にJavaScriptをオフにしているユーザのサポートをするか、否かという意味ではありません。
(ちなみに、Gov.ukによると1.1%のユーザはJavaScriptを利用していない、もしくは利用できないという調査結果となっています)
もちろん、古いブラウザに対するアプローチだけでもありません。

デスクトップ、ラップトップ、スマートフォンやタブレット、そしてスマートウォッチなど、今では多くのデバイスにブラウザが搭載されています。

@ahomu
ahomu / 1.fuga.es6.js
Created December 18, 2014 01:21
すげえ限定的なケースをちょっと比べてみただけなので、あまりに真にうけないでください.js
export default {}
String.isNyaN = function (val) {
if (typeof val !== 'string') return false;
var nyan = ['cat', 'kitty', 'kitten', 'doraemon', '🐱', '😿', '😺', '😸', '😼', '😹', '😻', '😽', '😾', '🙀'];
return nyan.indexOf(val.toLowerCase()) !== -1;
}
@Layzie
Layzie / chrome-tech-night-8.md
Last active August 29, 2015 14:25
Chrome Tech Night #8 メモ
@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
@nissuk
nissuk / jquery.placeholder.fallback.js
Created February 3, 2011 16:06
HTML5のplaceholderのフォールバック用jQueryプラグイン
/**
* jQuery placeholder fallback plugin (public domain)
*
* HTML5のplaceholderを実装していないブラウザでplaceholderの動作を模倣します。
* .val()で値を設定するのを避け、<label>を生成して<input>/<textarea>上に被せます。
*
*
* 使用例:
* $(function(){
* $('input, textarea').placeholder();
\               ¦         /
  \             ¦        /
             / ̄ ̄ ヽ,
            /        ',      /     _/\/\/\/|_
    \    ノ//, {0}  /¨`ヽ {0} ,ミヽ    /     \          /
     \ / く l   ヽ._.ノ   ', ゝ \       <   IE バーカ!  >
     / /⌒ リ   `ー'′   ' ⌒\ \    /          \
     (   ̄ ̄⌒          ⌒ ̄ _)    ̄|/\/\/\/ ̄
      ` ̄ ̄`ヽ           /´ ̄
           |            |  
@ahomu
ahomu / gist:2779343
Created May 24, 2012 03:57
コナミコマンド
$(document).bind('keydown', detectKonamiCommand);
var konamiTimer,
konamiLog = [],
keyMap = {
37: '←',
38: '↑',
39: '→',
40: '↓',
65: 'A',