Skip to content

Instantly share code, notes, and snippets.

🙇
slingin code

Pat onpaws

🙇
slingin code
Block or report user

Report or block onpaws

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View streaming
via https://news.ycombinator.com/item?id=21508927
A semi-common beginning programmer's exercise is to write a program that numbers the lines in a text file.
The naive solution will use O(n) space, while a bit more thought reveals that this can be done in constant
(to be really precise, O(log n) where n is the number of lines in the file) space.
View 3box
did:muport:QmRj42Tmkcb8j51hJ2x6796th9VfajXj4Mveeej3hze2uZ
View gist:b439c13a0df4b9f540a134ff05bf1fdb
For good falafel:
Xberg: Falafel in Berln 💜 (https://goo.gl/maps/QmdmJwXvFxmjDKDJ6 …) or The Hummusapiens (https://goo.gl/maps/rdKsBTNMTTwGju9Q6 …)
Mitte: Kiez Falafel (https://goo.gl/maps/bNTji3edHBCvgHS69 …)
And @verbine recommends fancy cocktail bars:
Kreuzberg/Neukölln:
Schwarze Traube (https://goo.gl/maps/Q84yWmw1VcgoaxFn9 …),
TiER (https://goo.gl/maps/22immkic3vQiUxE87 …),
Geist im Glas (https://goo.gl/maps/JS7iLYB956JmHDVf7 …),
ÆTHER:bar (https://goo.gl/maps/w24DeJHhhmsnSM3C9 …)
@onpaws
onpaws / keybase.md
Created Jun 13, 2019
Keybase proof
View keybase.md

Keybase proof

I hereby claim:

  • I am onpaws on github.
  • I am paws (https://keybase.io/paws) on keybase.
  • I have a public key ASCyYjDUjEcwISVHRm3AEqQHWyTwgLkFmjzmAQRfeQBz9wo

To claim this, I am signing this object:

@onpaws
onpaws / writeTextFile.sh
Created May 30, 2019
Bash one-liner to write a multiline text file (broadly compatible)
View writeTextFile.sh
cat <<EOF > filename.txt
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
annotations:
meshsecurityinsights.googleapis.com/generated: "1558344751000000000"
name: default
namespace: istio-system
spec:
host: '*.local'
@onpaws
onpaws / manifests.yaml
Created May 12, 2019
Fixed manifests for parity 2.5.0
View manifests.yaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
namespace: default
name: pv-default-100g-disk01
annotations:
volume.beta.kubernetes.io/storage-class: default
spec:
accessModes:
- ReadWriteOnce
@onpaws
onpaws / parity-2.x-kubes.yaml
Created May 11, 2019
Start with DDorgan's manifests; upgrade Parity to v2.5.0
View parity-2.x-kubes.yaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
namespace: default
name: pv-default-100g-disk01
annotations:
volume.beta.kubernetes.io/storage-class: default
spec:
accessModes:
- ReadWriteOnce
View fibonacci.js
function fib(n) {
if (n < 2) return n;
return fib(n-1) + fib(n-2);
}
@onpaws
onpaws / ideas.md
Last active Jan 16, 2019
Thoughts on Digitizer mutation & async behavior
View ideas.md
@onpaws
onpaws / makearray.js
Created Dec 14, 2018
Array one liner
View makearray.js
Array.from({ length: 10 }, (_,i) => i)
You can’t perform that action at this time.