This file contains hidden or 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
[ | |
{ "keys": ["home"], "command": "move_to", "args": {"to": "bol"} }, | |
{ "keys": ["end"], "command": "move_to", "args": {"to": "eol"} }, | |
{ "keys": ["alt+up"], "command": "swap_line_up" }, | |
{ "keys": ["alt+down"], "command": "swap_line_down" }, | |
{ "keys": ["super+shift+r"], "command": "show_overlay", "args": {"overlay": "goto", "text": "@"} }, | |
{ "keys": ["super+r"], "command": "goto_symbol_in_project" }, | |
{ "keys": ["command+b"], "command": "show_panel", "args": {"panel": "replace"} }, | |
//////////////////////////////////////////////////////////// |
This file contains hidden or 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 foo = ['a', 'b'] | |
foo.first() // Uncaught TypeError: undefined is not a function | |
Array.prototype.first = function () { return this[0] } | |
foo.first() // "a" |
This file contains hidden or 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
import React from "react" | |
export default React.createClass({ | |
getTime() { | |
return (new Date()).toISOString() | |
}, | |
render() { | |
return <div className="root"> | |
The time is {this.getTime()}! |
This file contains hidden or 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 | |
fs = require('fs'), | |
messageFile = process.argv[2], | |
commitType = process.argv[3], | |
branchNameIssuePattern = /On branch .+#(\d{1,5})/, | |
issueNumber, | |
contents; | |
function messageTemplate (issueNumber) { | |
var |
This file contains hidden or 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
class Double { | |
constructor() { | |
return function (num) { | |
return num * 2; | |
} | |
}, | |
documentation() { | |
return "Doubles any given number." | |
} | |
} |
This file contains hidden or 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
{ | |
"backspace": 8, | |
"tab": 9, | |
"enter": 13, | |
"shift": 16, | |
"ctrl": 17, | |
"alt": 18, | |
"caps_lock": 20, | |
"escape": 27, | |
"page_up": 33, |
This file contains hidden or 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
;; Your file has been converted to the new flat format. | |
;; Conversion does not preserve comments or indentation. | |
;; File is backed up at /Users/eric/Library/Application Support/LightTable/User/user.keymap.bak | |
[ | |
[:editor "pmeta-p" :navigate-workspace-transient] | |
[:editor "pmeta-shift-p" :show-commandbar-transient] | |
[:app "pmeta-shift-c" :toggle-console] | |
[:app "pmeta-=" :window.zoom-in] | |
[:app "pmeta-shift-n" :new-file :set-syntax] |
This file contains hidden or 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
{ | |
"rules": { | |
"stories": { | |
".read": true, | |
"$id": { | |
".read": true, | |
".write": true, | |
".validate": "newData.hasChildren(['updatedAt'])", |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>ErgoDox Keycaps Print set.</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
</head> | |
<body> | |
<style> | |
* { |
This file contains hidden or 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
/* | |
* Written by Andrew Plummer @Cerego Japan | |
* | |
* This plugin will play MP3 audio in the browser natively if HTML5 audio exists, | |
* and using Flash otherwise. It provides a very minimal Flash satay that works in | |
* the major browsers that require it. UPDATE: HTML5 audio in Webkit still appears to | |
* have some issues with data loading. Specifically caching *occasionally* causes events | |
* not to fire (loadeddata, canplay, canplaythrough). Any code depending on these callbacks | |
* to proceed will break, so turning off html5 audio support for the time being. | |
* |