Skip to content

Instantly share code, notes, and snippets.

View wireframeslayout's full-sized avatar

junzo matsunoo wireframeslayout

View GitHub Profile
@wireframeslayout
wireframeslayout / ANSI.md
Created August 4, 2022 01:33 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@wireframeslayout
wireframeslayout / JSでの例
Last active April 3, 2017 10:43
エディター(Atom)の正規表現を使って文字を一括置換すると作業がうんと捗るよ ref: http://qiita.com/junzo/items/8b82a1b191d56e8af80d
"http://hoge.co.jp?test=testing&page=3".match(/\?.*$/); // matchの引数の中が正規表現
// このように書くと、?test=testing&page=3の部分がマッチすることになる
@wireframeslayout
wireframeslayout / new_app.js
Last active July 4, 2016 06:12
すいません、ソースコードに不備がありました。。こちらを使ってください。
var App = App || {};
App = {
api_root: "/api/",
api_key: "phe15557a001b1",
Model: function (api_name, condition) {
this.root = App.api_root;
@wireframeslayout
wireframeslayout / gist:41f34bce10aa5bdb2121
Created October 30, 2014 11:52
formを作成してpostする
var json = {
test: "test"
}
json = JSON.stringify(json);
var form = "<form action='' method='post'>";
form += "<input type='hidden' name='json' value='" + json +"' />";
@wireframeslayout
wireframeslayout / rAF.js
Last active August 29, 2015 14:07 — forked from paulirish/rAF.js
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];