Skip to content

Instantly share code, notes, and snippets.

View davidrupp's full-sized avatar

David Rupp davidrupp

View GitHub Profile
@davidrupp
davidrupp / unsuck-twitter.js
Created September 8, 2019 13:45 — forked from corinna000/unsuck-twitter.js
Tampermonkey script to unsuck Twitter
// ==UserScript==
// @name Unsuck Twitter
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://twitter.com/
// @grant none
// ==/UserScript==
/* jshint -W097 */

Make it real

Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.

Ship it

Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.

Do it with style

@davidrupp
davidrupp / gremlin-server-local.yaml
Created January 1, 2016 01:40
Gremlin server configuration for Titan graph database backed by AWS DynamoDB
# Copyright 2014-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Portions copyright Titan: Distributed Graph Database - Copyright 2012 and onwards Aurelius.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# A copy of the License is located at
#
# http://aws.amazon.com/apache2.0
#
# or in the "license" file accompanying this file. This file is distributed
@davidrupp
davidrupp / keybase.md
Created June 2, 2015 19:24
keybase.md

Keybase proof

I hereby claim:

  • I am davidrupp on github.
  • I am davidrupp (https://keybase.io/davidrupp) on keybase.
  • I have a public key whose fingerprint is 99A3 E112 A4A4 96D1 64BB EB79 8D5F F86E 49D8 E7C5

To claim this, I am signing this object:

@davidrupp
davidrupp / gist:78dd79fb608b9130c6d4
Created April 23, 2015 16:14
alter-var-root-constantly-6
(def thing 1)
; these all happen to work, but ... yuck
(alter-var-root #'thing #(if %1 nil))
(alter-var-root #'thing #(last [%1 nil]))
(alter-var-root #'thing #(do %1 nil))
@davidrupp
davidrupp / gist:903201c1144331d0b16b
Created April 23, 2015 16:07
alter-var-root-constantly-5
(#(identity %3) 1 2)
;=> ArityException Wrong number of args (2) passed to: user/eval3407/fn--3408 ...
@davidrupp
davidrupp / gist:1ae6fa19a9ea5bae7b50
Last active August 29, 2015 14:19
alter-var-root-constantly-4
(def thing 1)
(alter-var-root #'thing (fn [old-val] nil)) ; value of thing is now nil
; we don't really need to name the argument, because we don't use it
; but we *do* need to include it; otherwise we'll get an arity exception
(alter-var-root #'thing (fn [_] nil)) ; value of thing is now nil
; equivalently (kind of) ...
(alter-var-root #'thing (constantly nil))
@davidrupp
davidrupp / gist:8ecce770be8cadc77f70
Last active August 29, 2015 14:19
alter-var-root-constantly-3
(def thing 1)
; general form is
; (alter-var-root var-to-be-altered
; function-to-apply-to-old-value)
(alter-var-root #'thing inc) ; value of thing is now 2
; equivalently ...
(alter-var-root #'thing (fn [old-val] (inc old-val))) ; value of thing is now 3
; also equivalently ...
(alter-var-root #'thing #(inc %1)) ; value of thing is now 4
@davidrupp
davidrupp / gist:33211aab85984ea198a4
Created April 23, 2015 15:09
alter-var-root-constantly-2
(def thing 1)
; do some stuff with thing
(def thing nil)
; value of thing is now nil
@davidrupp
davidrupp / gist:8ba1df41f479b60fa566
Last active August 29, 2015 14:19
alter-var-root-constantly-1
(def thing 1) ; value of thing is now 1
; do some stuff with thing
(alter-var-root #'thing (constantly nil)) ; value of thing is now nil