Skip to content

Instantly share code, notes, and snippets.

@hail2u
hail2u / david-dm
Created August 18, 2014 06:58
David DMのページをなんとなく開いてくれるNode.jsスクリプト
#!/usr/bin/env node
// $ david-dm
// $ david-dm [<path>]
'use strict';
var exec = require('child_process').exec;
var fs = require('fs');
var path = require('path');

This is a test with italics multiple words.

  • 本文の文字サイズは十分に大きいか?各デバイスのサイズに合った一行の文字数の範囲に収まるようになっているか?
  • 行間に十分なスペースが確保されているか?
  • ページの端や他のデザイン要素との間に十分な間隔をとっているか?
  • 背景色と文字色に十分なコントラストがあるか?
  • 段落と段落の間に十分な間隔があるか?
  • 見出しなど本文以外の文字は本文と違うか?
  • 長い文章を切り分けるために序列なしリストやボールドなどを使っているか?
  • 本文に読みやすいフォントを使っているか?
@hail2u
hail2u / curl.txt
Last active August 29, 2015 14:08
wwwなしドメインだと302 Foundになるのを200 OKに修正する
Kyo ~ $ curl -I http://hail2u.net/
HTTP/1.1 302 Found
Connection: close
Pragma: no-cache
cache-control: no-cache
Location: /
Kyo ~ $ curl -I http://hail2u.net/
@hail2u
hail2u / emoji.css
Created November 7, 2014 00:54
Emoji
@font-face {
font-family: 'Emoji';
src: local('Apple Color Emoji'), local('Segoe UI Emoji'), local('Segoe UI Symbol');
}
body {
font-family: 'Helvetica Neue', Calibri, 'Emoji', sans-serif;
}
@hail2u
hail2u / pre.mustache
Created November 26, 2014 23:48
Handlebars.js のインデント継承により、パーシャル内のpre要素のインデントが増加する
<pre>This is pre-formatted text,
loaded from partial.
These lines should not inherit indentation level.
</pre>
@hail2u
hail2u / test.scss
Last active August 29, 2015 14:10
Sassでfunctionのネストはどこまでいけるか
@function a0($i) { @return a1($i); }
@function a1($i) { @return a2($i); }
@function a2($i) { @return a3($i); }
@function a3($i) { @return a4($i); }
@function a4($i) { @return a5($i); }
@function a5($i) { @return a6($i); }
@function a6($i) { @return a7($i); }
@function a7($i) { @return a8($i); }
@function a8($i) { @return a9($i); }
@function a9($i) { @return a10($i); }
/* Converted from http://hail2u.net/styles/style.min.css */
html {
font-family: sans-serif;
}
html {
-ms-text-size-adjust: 100%;
}
html {
@hail2u
hail2u / output.md
Last active August 29, 2015 14:14
3rd `spawnSync()` with shared `options` argument throws exception
~/Desktop $ node test.js
desktop.ini  test.js
desktop.ini  test.js
child_process.js:905
      throw new TypeError('Incorrect value for stdio stream: ' +
            ^
TypeError: Incorrect value for stdio stream: { type: 'fd', fd: { type: 'fd', fd: 0 } }
    at child_process.js:905:13
 at Array.reduce (native)