Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am fridgamarator on github.
  • I am friderator (https://keybase.io/friderator) on keybase.
  • I have a public key whose fingerprint is A0FE B045 6520 A912 BCFB 265C 695D FE93 BB0B 2DFD

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am fridgerator on github.
  • I am friderator (https://keybase.io/friderator) on keybase.
  • I have a public key ASAtrWLYCv0Fb3QXivXZO-xCpuTPdbKRua3FjiTAZG1QDAo

To claim this, I am signing this object:

[{"playerId":"2","active":"1","jersey":"3","lname":"Anderson","fname":"Derek","displayName":"Derek Anderson","team":"CAR","position":"QB","height":"6-6","weight":"240","dob":"1983-06-15","college":"Oregon State"},{"playerId":"13","active":"1","jersey":"12","lname":"Brady","fname":"Tom","displayName":"Tom Brady","team":"NE","position":"QB","height":"6-4","weight":"225","dob":"1977-08-03","college":"Michigan"},{"playerId":"14","active":"1","jersey":"9","lname":"Brees","fname":"Drew","displayName":"Drew Brees","team":"NO","position":"QB","height":"6-0","weight":"209","dob":"1979-01-15","college":"Purdue"},{"playerId":"20","active":"1","jersey":"17","lname":"Campbell","fname":"Jason","displayName":"Jason Campbell","team":"CLE","position":"QB","height":"6-5","weight":"230","dob":"1981-12-31","college":"Auburn"},{"playerId":"21","active":"1","jersey":"8","lname":"Carr","fname":"David","displayName":"David Carr","team":"NYG","position":"QB","height":"6-3","weight":"212","dob":"0000-00-00","college":"Fresno State"},{
class Changeset
def initialize(instance)
@instance = instance
end
end
module Cset
def changeset(instance)
Changeset.new(instance)
end
class Thing
property butts : String?
def butts=(val)
puts "setting butts"
@butts = val
end
end
alias RecursiveType = String |
Int32 |
Array(RecursiveType) |
Hash(String, RecursiveType)
extra_fields = {} of String => RecursiveType
extra_fields = {
"teste" => "teste",
"foo" => {
"bar" => "blabla"
def present_json(json)
{% for f in ["id", "name", "other_attribute"] %}
json.field f, self.{{f.id}}
{% end %}
end
def present
JSON.object do |json|
present_json(json)
end
form action="/sign_in" method="post"
.modal-content
.modal-header
button.close type="button" data-dismiss="modal" aria-label="Close"
span aria-hidden="true"
| ×
h4.modal-title Sign in
.modal-body
== csrf_tag
.form-group
form action="/sign_in" method="post"
.modal-content
.modal-header
button.close type="button" data-dismiss="modal" aria-label="Close"
span aria-hidden="true"
| ×
h4.modal-title Sign in
.modal-body
== csrf_tag
.form-group
@fridgerator
fridgerator / crystal_blockchain.cr
Created December 21, 2017 21:59
Simple blockchain in crystal
require "secure_random"
require "openssl"
module Blockchain
extend self
@@blocks = Array(String).new
def init_blockchain
data = SecureRandom.hex(8)