Skip to content

Instantly share code, notes, and snippets.

View jperelli's full-sized avatar
🏄‍♂️
Hacking for surfvival

Julián Perelli jperelli

🏄‍♂️
Hacking for surfvival
View GitHub Profile
@jperelli
jperelli / gist:79451c00543814de71ff118776285c27
Created December 13, 2016 17:16
Command to generate gource visualization
# Install gource from compiling this http://gource.io/
# Install Prereqs like here http://stackoverflow.com/a/15105901/912450
# From here https://github.com/acaudwell/Gource/wiki/Videos#ffmpeg-using-x264-codec
./gource --fullscreen -1280x720 -o - --disable-auto-skip --seconds-per-day 0.1 --camera-mode overview --key -r 60 /<path-to-repo>/ | ../ffmpeg/ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -threads 0 -bf 0 gource.mp4
@jperelli
jperelli / store-config.js
Created April 4, 2017 11:16
Reactotron + redux + react-native configuration
import Reactotron from 'reactotron-react-native'
import { reactotronRedux } from 'reactotron-redux'
var store;
if (__DEV__) {
Reactotron
.configure({ name: 'VTX-sharepoint' })
.use(reactotronRedux())
.connect()
# Sourced from https://github.com/anirbankonar123/CorrosionDetector/blob/master/generate_tfrecord.py
"""
Usage:
# From tensorflow/models/
# Create train data:
python3 generate_tfrecord.py --csv_input=data/train_labels.csv --output_path=data/train.record
# Create test data:
python3 generate_tfrecord.py --csv_input=data/test_labels.csv --output_path=data/test.record
"""
from __future__ import division
{
"$ref": "#/definitions/CloudEventEnvelopeRewardDelivered",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"Amount": {
"additionalProperties": false,
"properties": {
"currency": {
"type": "string"
},