I hereby claim:
- I am jkriss on github.
- I am jkriss (https://keybase.io/jkriss) on keybase.
- I have a public key whose fingerprint is FFFE 99AB E363 7EBE AEC0 A03B 3A8C 3222 4FB2 CC77
To claim this, I am signing this object:
| def Crop.interesting | |
| puts "WHAT'S IN THE CACHE NOW?" | |
| puts Rails.cache.read("interesting_crops").to_yaml | |
| json_crops = Rails.cache.fetch("interesting_crops", :expires_in => 1.day) do | |
| howmany = 12 # max number to find | |
| interesting_crops = Array.new | |
| Crop.randomized.each do |c| | |
| break if interesting_crops.length == howmany | |
| next unless c.interesting? | |
| interesting_crops.push(c) |
| [ | |
| { | |
| "created_at": "Wed Sep 25 02:50:26 +0000 2013", | |
| "text": "This has been a day.", | |
| "id_str": "382698582274371587" | |
| }, | |
| { | |
| "created_at": "Wed Sep 25 02:50:21 +0000 2013", | |
| "text": "That's all. \n\nI didn't intend to go down this path. Glad I did.", | |
| "id_str": "382698557741867008" |
I hereby claim:
To claim this, I am signing this object:
| // modified version of https://github.com/CMTegner/favicolor | |
| var size = 1; | |
| var canvas = document.createElement('canvas'); | |
| if (typeof canvas.getContext === 'function') { | |
| var ctx = canvas.getContext('2d'); | |
| canvas.width = size; | |
| canvas.height = size; | |
| } |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>CTA Aggregator API example</title> | |
| </head> | |
| <body> | |
| <pre id="events"></pre> |
publicSpreadsheetUrl in the example above to use the share link for your spreadsheetnameField to be the name of the column you want to display| const faker = require('faker') | |
| const adler32 = require('adler-32') | |
| faker.seed(adler32.str('[email protected]')) | |
| faker.internet.email() // always returns '[email protected]' | |
| faker.seed(adler32.str('[email protected]')) | |
| faker.internet.email() // always returns '[email protected]' |
| function createObjects (acc, p) { | |
| // rel="next" => 1: rel 2: next | |
| var m = p.match(/\s*(.+)\s*=\s*"?([^"]+)"?/) | |
| if (m) acc[m[1]] = m[2] | |
| return acc | |
| } | |
| function parseLink(link) { | |
| try { | |
| var m = link.match(/<?([^>]*)>(.*)/) |
| cat pacakge.json | jq -r '.dependencies|keys|join(" ")' |
| <!DOCTYPE html> | |
| <html lang="en" dir="ltr"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>template stamping</title> | |
| </head> | |
| <body> | |
| <div id=one></div> | |
| <div id=two></div> |