Skip to content

Instantly share code, notes, and snippets.

@ahomu
ahomu / designer.html
Created June 25, 2014 23:37
designer
<link rel="import" href="../google-map/google-map-search.html">
<link rel="import" href="../google-map/google-map.html">
<link rel="import" href="../paper-slider/paper-slider.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
@ahomu
ahomu / designer.html
Created June 25, 2014 23:23
designer
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
@ahomu
ahomu / 1.include.html
Last active August 29, 2015 14:02
ng-repeat時に、オブジェクト内の値で、ディレクティブのテンプレート、または振る舞いを変える場合のパターン検証
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Test</title>
</head>
<body ng-app="mu.aho">
<div ng-controller="AcmeCtrl">
<h1>ふぁきゅー</h1>
<ul ui-sortable="sortableOptions" ng-model="items" id="list">
@ahomu
ahomu / .jscsrc
Created March 4, 2014 01:07
おれのコーディングスタイル (仮) https://github.com/mdevils/node-jscs
{
"requireCurlyBraces": [
"if",
"else",
"for",
"while",
"do",
"try",
"catch"
],
@ahomu
ahomu / test.php
Created February 4, 2014 01:34
画像アップロード時、レスポンスが返ってくるまでの時間を調べたい
<?php
if (!empty($_FILES)) {
echo(json_encode($_FILES));
} else {
?>
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1">
@ahomu
ahomu / links.md
Last active January 4, 2016 10:49
var thunk = require('thunkify');
var delay = thunk(function(cb) {
setTimeout(function() {
console.log('delay end');
cb();
}, 1000);
});
var n = delay()
var co = require('co');
var stack = [
function *first(next) { // second generator
console.log('1 prev');
yield next; // second に delegate
console.log('1 next');
},
function *second(next) { // third generator
console.log('2 prev');
@ahomu
ahomu / php_AAPP_JSONProvider.php
Last active December 31, 2015 05:09
サンプルファイル ( filename の _ は / と脳内変換で )
<?php
class AAPP_JSONProvider extends ACMS_APP
{
public $version = '0.1';
public $name = 'ACMS JSON Provider';
public $author = 'mu.aho';
public $desc = 'a-blog cms のデータをJSON APIとして扱うための拡張です';
/**
* インストールする前の環境チェック処理
@ahomu
ahomu / gist:7614584
Created November 23, 2013 13:28
描画コマンド、300x300のRectに各スタイルエフェクトを適用
none
Draw 0.3790s
Clip Rect 0.0030ms
Restore 0.0010ms
Save 0.0000ms
Other 0.0000ms
Total 0.3830
dotted