Skip to content

Instantly share code, notes, and snippets.

View RobertAKARobin's full-sized avatar

Robin (Robert) Thomas RobertAKARobin

View GitHub Profile
@RobertAKARobin
RobertAKARobin / twins.md
Last active May 20, 2022 14:15
Twin quotes
C: "I made another picture. You can keep it or I can keep it. If you keep it that's ok, if I keep it that's also ok. I think I will keep it. I did work super hard on it. It has sooooo many rainbows and details"
C: and then I said "stop it". If we write it down it will have an exclamation mark at the end. 
J: what is blood made out of? Me: I don't know. C: it has minerals like iron
"Charlie, I don't like it when you say shut up because that hurts my feelings and i feel like you're not my best friend. Next time can you say, 'I'm concentrating, give me a minute'"
May 2022
Charlie, eating Chinese food: "it's spicy in the background"
"They take the meat off the pig's legs, belly..." James: "I bet the pig feels really crabby about that."
Arielle: "You know what dipped into my bucket?" Charlie: "When I said you're the worst mom in the world." "Can you pay me a compliment?" "...I like your shirt!"
April 2022
@RobertAKARobin
RobertAKARobin / observables.md
Last active August 30, 2021 15:46
Other articles on observables are dumb

Other articles on observables are dumb

1. They use bad examples

Anything can be an observable!! Even data that never changes!!!

const myObservable = Observable.from('Hello world');
myObservable.subscribe(data => console.log(data));

It prints 'Hello world'! Amazing!!

@RobertAKARobin
RobertAKARobin / python.md
Last active April 18, 2024 20:44
Python Is Not A Great Programming Language

Keybase proof

I hereby claim:

  • I am robertakarobin on github.
  • I am robertakarobin (https://keybase.io/robertakarobin) on keybase.
  • I have a public key ASDVGB3oarwzNAiR4gJOPtpZKybBmyC4UUfVJ_Tn8hT9owo

To claim this, I am signing this object:

const fs = require('fs')
const rx = {
fail: /^Request timeout/i,
time: /^(\d\d:\d\d:\d\d\.?\d*)/i,
seq: /icmp_seq=(\d+)/i,
dur: /time=([\d\.]+) ms$/i
}
const log = []
@RobertAKARobin
RobertAKARobin / index.html
Last active October 11, 2018 16:59 — forked from Jeff-Mott-OR/index.html
Untitled benchmark #jsbench #jsperf (http://jsbench.github.io/#69e72becc163a625fbec3f1d773ea0b7) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Untitled benchmark #jsbench #jsperf</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>

Keybase proof

I hereby claim:

  • I am robertakarobin on github.
  • I am robertakarobin (https://keybase.io/robertakarobin) on keybase.
  • I have a public key ASCTvAWos0stNEYIkdK8HyBZZARNmRFoHHr7xOJcJH0_EQo

To claim this, I am signing this object:

var people = [/*some data*/];
var sortable = function(callback){
return {
isSorting: false,
onclick: function(event){
var element = this;
people.sort(function(personA, personB){
var valA = callback(personA);
var valB = callback(personB);
@RobertAKARobin
RobertAKARobin / peeps.rb
Created March 31, 2016 16:16
Student matcher
names = [
"Alice",
"Bob",
"Carol",
"David",
"Eliza",
"Frank",
"Gretchen",
"Harry",
"Irene",
@RobertAKARobin
RobertAKARobin / offset.html
Created January 5, 2016 16:36
Weird button vertical offset
<!DOCTYPE html>
<html>
<head>
<title>Buttons</title>
<style>
*{
margin:0;
padding:0;
border:0;
border-collapse:collapse;