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.
AKA OOP: There it is
- 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
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:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
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:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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')" |