Here are images
I hereby claim:
- I am mmcdaris on github.
- I am mmcdaris (https://keybase.io/mmcdaris) on keybase.
- I have a public key whose fingerprint is 939D 3FB2 7CA7 FED8 98A8 7235 C7DA 5314 3B95 7C90
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
{ | |
"errors": [ | |
{ | |
"type": "AirbrakeTestError", | |
"message": "I am an example error", | |
"backtrace": [ | |
{ | |
"file": "app/models/avocado.rb", | |
"line": 10, | |
"function": "make_guacamole", |
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
# Anagram: a word, phrase, or name formed by rearranging the letters of another. | |
# Usage: Anagrams.new.find("anemic") | |
# ["anemic", "iceman", "cinema"] | |
class Anagrams | |
def initialize | |
@words = {} | |
File.open("/usr/share/dict/words") do |file| | |
file.each do |line| | |
@words[line.strip] = true | |
end |
example RTG_URL: redis://username:[email protected]:9555/
$ redis-server
#in a new tab run:
$ redis-cli
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
# Fancy obj you want to share | |
hash = { | |
a: 1234, | |
b: %W(this that the other one man yo yoy oyoyoyo), | |
c: "Magic Pants Found!" | |
} | |
# dump and write to file | |
File.open("marsha_marsha_marsha", 'wb') { |f| f.write(Marshal.dump(hash)) } |
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
# Welcome to Sonic Pi v2.9 | |
wait = 0.25 | |
a = wait * 0.5 | |
r = a | |
d = a * 0.5 | |
s = d | |
live_loop :flibble do | |
use_synth :tri |
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
# Exports tender knowledge base as markdown files in the current directory | |
# Usage | |
# TenderKnowledgeBase.new(app_name, tender_token).markdown_export | |
# | |
class TenderKnowledgeBase | |
attr_accessor :api, :docs, :page | |
def initialize(tender_app, tender_token) | |
@api = RestClient::Resource.new("https://api.tenderapp.com/#{tender_app}", | |
headers: { |
NewerOlder