Skip to content

Instantly share code, notes, and snippets.

View Gabri3l's full-sized avatar

Gabriele Cimato Gabri3l

View GitHub Profile
@Gabri3l
Gabri3l / python_batch.py
Created April 11, 2019 22:02 — forked from daidokoro/python_batch.py
Beam Stuff
'''
Apache Beam Python Batch Example
'''
class Batch(beam.DoFn):
"""
Batch - batch items from PCollection
"""
def __init__(self, n):
import json
@Gabri3l
Gabri3l / ReactCanvasDrawing.js
Created September 20, 2016 17:37 — forked from sebmarkbage/ReactCanvasDrawing.js
Canvas Drawing Example
/** @jsx React.DOM */
var Graphic = React.createClass({
componentDidMount: function() {
var context = this.getDOMNode().getContext('2d');
this.paint(context);
},
componentDidUpdate: function() {