Skip to content

Instantly share code, notes, and snippets.

View gcr's full-sized avatar

Kimmy gcr

  • Google AI
  • 10:46 (UTC -04:00)
View GitHub Profile
Here, amidst the morning mist,
'Fore man or creature stirs their eye
I sing with bliss at daybreak's kiss
And share the world my gleaming cry
Though I invite a new respite,
my neighbors rage and curse my name.
They wage their fight for restful night
And toss and turn to sleep again.
{"Grid 16": {"Choose 2": {"Rep 1": [20.961, 14.768, 10.074, 16.1, 15.083, 7.513, 14.66, 9.925, 8.167, 14.523, 9.56, 3.68, 9.153, 5.742, 12.037, 8.52, 18.35, 8.728, 10.757, 6.067, 8.35, 9.133, 10.946, 13.658, 9.397, 8.845, 5.71, 6.772, 8.743, 13.979, 43.508, 12.854, 39.307, 22.901, 29.341, 18.18, 15.774, 17.143, 18.639, 18.973, 13.567, 14.023, 6.033, 9.871, 2.895, 10.262, 7.469, 11.15, 9.217, 9.357, 14.139, 10.104, 19.717, 16.122, 6.469, 17.429, 11.508, 8.297, 20.366, 10.904, 7.394, 3.378, 9.426, 11.709, 15.101, 16.563, 3.94, 9.798, 18.307, 9.549, 17.654, 9.284, 6.113, 5.953, 9.56, 6.337, 18.597, 12.745, 7.7, 12.516, 11.626, 8.894, 6.586, 11.221, 13.456, 5.275, 9.118, 15.404, 14.114, 6.723, 9.711, 11.088, 20.584, 18.233, 5.7, 11.365, 10.859, 11.679, 5.045, 10.802, 21.339, 8.977, 6.738, 9.211, 8.501, 5.638, 16.427, 15.058, 16.696, 12.387, 11.177, 12.914, 10.722, 10.343, 8.054, 8.987, 10.265, 6.15, 11.762, 10.815, 16.804, 3.742, 5.093, 3.809, 8.395, 4.336, 3.234, 2.86, 5.525, 12.311, 9.662, 5.748, 4.493, 3.751,
javascript:(function(){var probeUrl=$(".probe.picker .image").css("background-image").replace(/^url\((.*)\)$/,"$1");var num_cells=$(".grid-strip .picker").length;var num_close=$("#data").data()["templateMinSelected"];var num_far=num_cells-num_close;function unpicked_things(){return $(".grid-strip .picker").filter(function(){return!$(this).data("picked-id")})}function random_unpicked_thing(){var picks=unpicked_things();return picks.eq(Math.floor(Math.random()*picks.length))}function select_image(imgurl){var which_one_to_fill=random_unpicked_thing();which_one_to_fill.trigger(jQuery.Event("click",{shiftKey:true}));var correct_image=$(".image-grid .image-wrapper .image").filter(function(){return $(this).css("background-image")=="url("+imgurl+")"});if(correct_image.length==0){throw Error("Image not found. Try scrolling down?")}correct_image.trigger("click");return pickedField}var EMBEDDING=[{url:"https://s3.amazonaws.com/vibe-content/photos/38aab5a720aa4b8780146c541ac84bb6.jpg",loc:[-17.422579142432237,-11.9447860
@gcr
gcr / test.ipynb
Last active August 29, 2015 13:57
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#lang at-exp racket
(require racket/draw
slideshow
unstable/gui/pict
(planet gcr/pdf-render))
(define-syntax-rule (inches: n) (* n 72))
(define-syntax-rule (feet: n) (* n 12 72))
(define-syntax-rule (einches: n) (inexact->exact (round (inches: n))))
(define-syntax-rule (efeet: n) (inexact->exact (round (feet: n))))
@gcr
gcr / test.htm
Last active August 29, 2015 13:57
<!doctype:html>
<style>
#target {
background-color: #800;
display: inline-block;
position: absolute;
padding: 0.5em;
border-radius: 0.3em;
color: #fff;
}
def find_elements(K, N):
t = len(K)
n = len(N)
if empty: return, the base case
# Split K into two pieces:
left_K = K[ 0:int(t/2) ] # O(1)
right_K = K[ int(t/2):t ] # O(1)
# Split N into two pieces:
@gcr
gcr / keybase.md
Last active April 11, 2018 15:01

Keybase proof

I hereby claim:

  • I am gcr on github.
  • I am mwilber (https://keybase.io/mwilber) on keybase.
  • I have a public key whose fingerprint is 055A CA10 69B6 41A3 4AE1 C216 603D FE46 AFD3 DABD

To claim this, I am signing this object:

{
"metadata": {
"name": "Triplet Which triplets are most useful"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.