Skip to content

Instantly share code, notes, and snippets.

View GirlBossRush's full-sized avatar
🌎
Building open source geo-spatial software

Teffen Ellis GirlBossRush

🌎
Building open source geo-spatial software
View GitHub Profile
[
{ "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"} },
////////////////////////////////////////////////////////////
var foo = ['a', 'b']
foo.first() // Uncaught TypeError: undefined is not a function
Array.prototype.first = function () { return this[0] }
foo.first() // "a"
import React from "react"
export default React.createClass({
getTime() {
return (new Date()).toISOString()
},
render() {
return <div className="root">
The time is {this.getTime()}!
var
fs = require('fs'),
messageFile = process.argv[2],
commitType = process.argv[3],
branchNameIssuePattern = /On branch .+#(\d{1,5})/,
issueNumber,
contents;
function messageTemplate (issueNumber) {
var
class Double {
constructor() {
return function (num) {
return num * 2;
}
},
documentation() {
return "Doubles any given number."
}
}
{
"backspace": 8,
"tab": 9,
"enter": 13,
"shift": 16,
"ctrl": 17,
"alt": 18,
"caps_lock": 20,
"escape": 27,
"page_up": 33,
;; 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]
{
"rules": {
"stories": {
".read": true,
"$id": {
".read": true,
".write": true,
".validate": "newData.hasChildren(['updatedAt'])",
<!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>
* {
/*
* 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.
*