Skip to content

Instantly share code, notes, and snippets.

Avatar
🏄‍♂️

Leif Gensert leifg

🏄‍♂️
View GitHub Profile
@leifg
leifg / simple_delegator.rb
Created Dec 13, 2019
Weird behaviour with Simple Delegator
View simple_delegator.rb
d = SimpleDelegator.new(nil)
d.nil?
# false
d == nil
# true
View faulty_skyscanner_response_muc_pmi.json
This file has been truncated, but you can view the full file.
{
"SessionKey": "bdd83606fc9347da96ecda2b8105ad2e_rrsqbjcb_06a13f0a788e803fcc56e78802891a26",
"Query": {
"Country": "DE",
"Currency": "EUR",
"Locale": "de-de",
"Adults": 1,
"Children": 0,
"Infants": 0,
View faulty_skyscanner_response.json
{
"status": "complete",
"session_key": "9ca35955414f431ba1ce655b6e0faf29_rrsqbjcb_06a13f0a788e803fcc56e78802891a26",
"segments": {
"0": {
"OriginStation": 14385,
"OperatingCarrier": 1175,
"JourneyMode": "Flight",
"FlightNumber": "7620",
"Duration": 115,
View run.exs
list = Enum.to_list(1..100_000)
Benchee.run(%{
"List.last" => fn -> list |> List.last end,
"Enum.reverse |> hd" => fn -> list |> Enum.reverse |> hd end
}, time: 20)
View onename
Verifying that +leifio is my blockchain ID. https://onename.com/leifio
View bumpme
Wed Jun 8 14:29:54 UTC 2016
View keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

View minimal.json
{
"builders": [
{
"type": "digitalocean",
"client_id": "...",
"api_key": "..."
}
]
}
View keybase.md

Keybase proof

I hereby claim:

  • I am leifg on github.
  • I am leifg (https://keybase.io/leifg) on keybase.
  • I have a public key whose fingerprint is 9598 366D C247 B2A3 1769 B664 FF97 E8EA DFBA A7C0

To claim this, I am signing this object: