Want to create a Gist from your editor, the command line, or the Services menu? Here's how.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cd pwd ls | |
function cd () { command cd $@ && ls; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var song = [ | |
{ | |
key: 'c', | |
bpm: 120, | |
frequency: 440, | |
time: '4/4', | |
notes: [ | |
[ | |
{ | |
number: 'D4', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = [ | |
{ | |
number: 'D4', | |
length: 1 | |
}, | |
{ | |
number: 'C4', | |
length: 1 | |
}, | |
{ |
たとえばjQuery
何かしらのmeta情報を持っている設定ファイルが大量にある
- .bowerrc
- .editorconfig
- .jscsrc
- .jshintignore
- .jshintrc
- package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
OlderNewer