I hereby claim:
- I am brycefisher on github.
- I am bff (https://keybase.io/bff) on keybase.
- I have a public key ASBZB5Tjeib9trqDLSZppdt5o1m8d8wAylr_Jmdkl3fMJgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env python3 | |
| # TODO -- Debug this logic. It doesn't quite seem to give the expected results. | |
| import csv | |
| filename = 'pre-failover.csv' | |
| HOUR = 60 | |
| max_wait = 1 | |
| TASKS_PER_INSTANCE = 6 |
| #!/bin/bash | |
| mongorestore --drop -d fulfillment_options_development $HOME/.goodeggs-data-dumps/fulfillment-options/ |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Play Time</title> | |
| </head> | |
| <body> | |
| <form> | |
| <input type="file" id="file-chooser" /> | |
| <button id="upload-button">Upload to S3</button> | |
| <div id="results"></div> |
| // Implements the signing example w/out AWS SDK in nodejs. See: | |
| // http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-streaming.html | |
| const crypto = require('crypto'); | |
| function signingKey(secretAccessKey, region, service, datetime) { | |
| var date = datetime.substr(0, 8); | |
| var kDate = crypto.createHmac('sha256', 'AWS4' + secretAccessKey).update(date).digest(); | |
| var kRegion = crypto.createHmac('sha256', kDate).update(region).digest(); | |
| var kService = crypto.createHmac('sha256', kRegion).update(service).digest(); | |
| return crypto.createHmac('sha256', kService).update('aws4_request').digest('hex'); |
| set autochdir | |
| set nobackup | |
| set nowritebackup | |
| set noswapfile | |
| set list listchars=tab:→\ ,trail:· | |
| set tabstop=4 | |
| set smartindent | |
| set fo=tcrq |
| use image::{GenericImage, ImageBuffer}; | |
| extern crate image; | |
| pub fn sobel(input: GenericImage) -> Option<ImageBuffer> { | |
| let (width, height) = input.dimensions(); | |
| let raw_input = input.grayscale().raw_pixels(); | |
| let mut raw_output = vec![0u8; width*height]; | |
| let kernel_x = &[ |
| user@local:~$ docker push localhost:5000/bryce/my_image | |
| The push refers to a repository [localhost:5000/bryce/my_image] (len: 1) | |
| Sending image list | |
| Pushing repository localhost:5000/bryce/my_imagee (1 tags) | |
| 511136ea3c5a: Image successfully pushed | |
| b18d0a2076a1: Pushing | |
| FATA[0009] Failed to upload metadata: Put http://localhost:5000/v1/images/b18d0a2076a121ed25bee8188661264efb4703910ab84c67b1b1ebe12144c15b/json: EOF |
General
| // Enum syntax has changed. | |
| // Given this enum: | |
| enum Shapes { | |
| Circle, | |
| Square | |
| } | |
| // WORKS | |
| let drawing = Shapes::Circle; |