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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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 / ruby_oop.md
Created January 4, 2016 19:19
Intro to Ruby OOP

Intro to Object-Oriented Programming in Ruby

AKA OOP: There it is

Learning Objectives

  • Define Object-Oriented Programming, and its benefits
  • Define and differentiate between classes and objects
  • Create a Ruby class with an initialize method
  • Instantiate an object from a class and interact with it
  • Use binding.pry to play with code live

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 / eq_vs_at_vs_amp.html
Created December 17, 2015 14:25
Angular Directives: `=` vs `@` vs `&`
<!DOCTYPE html>
<html>
<head>
<title>Angular</title>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"></script>
</head>
<body ng-app="myApp">
<div ng-controller="myCtrl as VM">
<a my-dir
attr1="VM.sayHi('Juan')"