I hereby claim:
- I am listrophy on github.
- I am listrophy (https://keybase.io/listrophy) on keybase.
- I have a public key ASA6atdQXkcOVAjd_ssdipntcPZj2b-l8w6dEWIODpAWiwo
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| # Use like: | |
| # spotlight_ignore_node_modules.sh ~ | |
| PROGNAME=$(basename $0) | |
| BASE=${1:-$HOME} | |
| red=$(tput setaf 1) | |
| green=$(tput setaf 2) | |
| yellow=$(tput setaf 3) |
| #!/bin/bash | |
| set -eu -o pipefail | |
| openssl req -new -text -passout pass:abcd -subj /CN=localhost -out server.req -keyout privkey.pem | |
| openssl rsa -in privkey.pem -passin pass:abcd -out server.key | |
| openssl req -x509 -in server.req -text -key server.key -out server.crt | |
| chmod og-rwx server.key | |
| # insert the following argument if you want to expose a different port for postgres: |
| declare var document: any; | |
| declare var setTimeout: any; | |
| import { R, RahRah } from "./rah-rah"; | |
| function addDiv(text: string): void { | |
| let el = document.createElement("div"); | |
| el.innerHTML = text; | |
| document.body.appendChild(el); | |
| } |
| @Component({ | |
| selector: 'my-component', | |
| template: ` | |
| <my-component [value]="someValue"> | |
| <!-- Does not work --> | |
| <div>{{aFunctionThatExistsInMyComponent()}}</div> | |
| </my-component>` | |
| }) | |
| export class MyComponent { | |
| value: string; |
| module SendableData exposing (..) | |
| import Http | |
| type SendableData e r wrapped | |
| = NotSent wrapped | |
| | Sending wrapped | |
| | FailedSending e wrapped | |
| | Sent r wrapped |
I hereby claim:
To claim this, I am signing this object:
| // | |
| // Glob.swift | |
| // | |
| // Created by Brad Grzesiak on 6/25/15. | |
| // Copyright © 2015 Bendyworks Inc. | |
| // Released under the Apache v2 License. | |
| // | |
| import Foundation |
| func unwrap<T>(wrapped: T?) throws -> T { | |
| guard let unwrapped = wrapped else { | |
| throw NSError(domain: "custom", code: 1, userInfo: nil) | |
| } | |
| return unwrapped | |
| } |
| # Exactly 140 characters! :) | |
| # We rescue StandardError and re-raise a RuntimeError | |
| # because that's nicer than getting NoMethodError or TypeError | |
| def play a, b | |
| t = %w(scissors paper rock lizard spock) | |
| ['tie', b, a, b, a][(t.index(a)-t.index(b)) % 5] | |
| rescue StandardError | |
| raise 'invalid' | |
| end |
| class Mutator { | |
| var mutated: Bool | |
| init() { | |
| mutated = false | |
| } | |
| func mutate() { | |
| mutated = true | |
| } | |
| } |