Skip to content

Instantly share code, notes, and snippets.

Robin (Robert) Thomas RobertAKARobin

Block or report user

Report or block RobertAKARobin

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
@RobertAKARobin
RobertAKARobin / python.md
Created Oct 12, 2019
Python Is Not A Great Programming Language
View python.md

Python is not a great programming language

Let me start off by saying what is nice about Python:

  • The philosophy of "one correct way to do things."
  • Easy to learn (at the start).
  • Pretty complete standard libraries.
  • A huge ecosystem of good third-party libraries.
  • Forced indentation. It's a mixed bag, but I've worked with too many junior developers who would never have indented otherwise.
  • The import system makes it easy to trace the filepath for any dependency.
View keybase.md

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:

View ping-to-csv.js
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 Oct 11, 2018 — forked from Jeff-Mott-OR/index.html
Untitled benchmark #jsbench #jsperf (http://jsbench.github.io/#69e72becc163a625fbec3f1d773ea0b7) #jsbench #jsperf
View index.html
<!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>
View keybase.md

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:

View mithril.js
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);
View peeps.rb
names = [
"Alice",
"Bob",
"Carol",
"David",
"Eliza",
"Frank",
"Gretchen",
"Harry",
"Irene",
@RobertAKARobin
RobertAKARobin / offset.html
Created Jan 5, 2016
Weird button vertical offset
View offset.html
<!DOCTYPE html>
<html>
<head>
<title>Buttons</title>
<style>
*{
margin:0;
padding:0;
border:0;
border-collapse:collapse;
View ruby_oop.md

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
@RobertAKARobin
RobertAKARobin / atti.md
Last active Dec 21, 2015
Taking care of Atti
View atti.md

Taking Care of Atti

Thank you so much for cat sitting our baby!

Dry food: We generally keep her dry food bowl full. The bag is under the kitchen sink. Kitty treats are in the left-most drawer in the kitchen, by the doorway.

Wet food: In the evenings she gets 1/4 of a can of wet food. You can put it in the little glass Pyrex dish on the kitchen floor. The wet food is stored in the fridge with a blue reusable lid. Feel free to use one of the knives sitting in the dish drainer to scoop it out -- just rinse it off well afterward!

Water: She drinks out of the fountain on the floor by the kitchen table. If you can hear water splashing in the fountain, then it could probably use more water. There's a blueish-purplish pitcher on top of the fridge: just fill it up and pour it on the fountain. We'll change the fountain's water filter before we leave, so you shouldn't need to worry about that.

You can’t perform that action at this time.