Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View watilde's full-sized avatar
👋
Hi

Daijiro Wachi watilde

👋
Hi
View GitHub Profile
@watilde
watilde / clients.md
Last active August 29, 2015 13:56 — forked from defunkt/clients.md

Gist Clients

Want to create a Gist from your editor, the command line, or the Services menu? Here's how.

Editor Support

# cd pwd ls
function cd () { command cd $@ && ls; }

転んだ

タイルに雪解け水が貼ってたのに気付かないで全力疾走してたら、ドシャーって転けました。 この図の踵腓靭帯ってのがビヨーンって伸びて捻挫で、2週間くらい安静にとのこと。 sprain_of_ankle.html.gif

歩くの遅くてiPhone使いまくってたら、すぐ電池が切れたのでキョロキョロしながら歩いてたら ちょっと違う景色が見えました。

きづいたこと

if (name.charAt(0) === "." ||
name.match(/[\/@\s\+%:]/) ||
name !== encodeURIComponent(name) ||
(strict && name !== name.toLowerCase()) ||
name.toLowerCase() === "node_modules" ||
name.toLowerCase() === "favicon.ico") {
throw new Error("Invalid name: " + JSON.stringify(name))
}
@watilde
watilde / kimigayo.js
Last active August 29, 2015 13:59
オクターブ表記は国際式。
var song = [
{
key: 'c',
bpm: 120,
frequency: 440,
time: '4/4',
notes: [
[
{
number: 'D4',
module.exports = [
{
number: 'D4',
length: 1
},
{
number: 'C4',
length: 1
},
{
@watilde
watilde / chest.md
Last active August 29, 2015 14:00
設定ファイル類のまとめツール構想

問題意識

たとえばjQuery

何かしらのmeta情報を持っている設定ファイルが大量にある

  • .bowerrc
  • .editorconfig
  • .jscsrc
  • .jshintignore
  • .jshintrc
  • package.json
@watilde
watilde / cli
Last active August 29, 2015 14:01
$ testem launchers
info Seeking for config file...
Have 3 launchers available; auto-launch info displayed on the right.
Launcher Type CI Dev
------------ ------------ -- ---
Chrome browser ✔ ✔
Firefox browser
Safari browser
library todo;
import 'dart:html';
import 'package:angular/angular.dart';
import 'package:angular/application_factory.dart';
import 'package:angular/playback/playback_http.dart';
class Item {
String text;
$ node -v
v0.10.12

$ ls -lh
total 2047472
-rw-r--r--  1 watilde  staff   130B Jun  5 11:11 Gruntfile.js
-rw-r--r--  1 watilde  staff   1000 Jun  5 11:30 foo.txt

$ du -h