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
||news.ycombinator.com$document |
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
# hack together router with werkzeug because google cloud functions does not | |
# support full flask apps | |
from werkzeug.routing import Map, Rule, NotFound | |
from werkzeug.exceptions import MethodNotAllowed, HTTPException | |
url_map = [] | |
def route(path, methods=("GET",)): | |
def decorator(fn): |
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
# https://news.ycombinator.com/item?id=18214677 | |
# clone foo/bar => git clone https://github.com/foo/bar | |
function clone; git clone --recursive https://github.com/$argv; end |
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
const gql = (strings: ReadonlyArray<string>) => { | |
return strings.join(''); | |
} |
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
For future reference: | |
- Check proxy is set | |
- Check that deployment branch is set if not developing on master | |
- Check that letsencrypt is set |
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
import * as React from 'react'; | |
import * as ReactDOM from 'react-dom'; | |
import { computed, observable } from 'mobx'; | |
import { observer } from 'mobx-react'; | |
import { types } from 'mobx-state-tree'; | |
const Todo = types.model({ |
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
#!/usr/bin/env bash | |
# circleci-try.sh -- Tries to run a new .circleci/config.yml from a checked out github repo without committing | |
# Usage: circleci-try.sh from the toplevel of a Git repo | |
# Requires $CIRCLECI_CLI_TOKEN to be set | |
# Thanks: https://discuss.circleci.com/t/running-new-config-files-without-committing/11842 | |
set -x | |
GITHUB_REPO_STR=`git config --get remote.origin.url` | |
RESULT=$? |
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
@import "~bootstrap/scss/variables"; | |
@import "~bootstrap/scss/mixins"; | |
@import "~bootstrap/scss/custom"; | |
// Reset and dependencies | |
@import "~bootstrap/scss/normalize"; | |
@import "~bootstrap/scss/print"; | |
// Core CSS | |
@import "~bootstrap/scss/reboot"; |
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
Show hidden characters
{ | |
"defaultSeverity": "error", | |
"extends": [ | |
"tslint-config-airbnb" | |
], | |
"jsRules": {}, | |
"rules": { | |
"align": [false], | |
"import-name": false, | |
"variable-name": false |
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
// settings.json - VSCode settings | |
{ | |
"editor.fontSize": 12, | |
"editor.lineNumbers": "relative", | |
"workbench.colorTheme": "Zenburn", | |
"window.menuBarVisibility": "toggle", | |
"typescript.check.tscVersion": false, | |
"editor.tabSize": 2, | |
"editor.renderWhitespace": "boundary", | |
"editor.rulers": [100], |
NewerOlder