Skip to content

Instantly share code, notes, and snippets.

View mkcor's full-sized avatar

Marianne Corvellec mkcor

  • Strasbourg, France
View GitHub Profile
@mkcor
mkcor / snakecoin.py
Last active May 7, 2018 19:31 — forked from aunyks/snakecoin.py
Let’s Build the Tiniest Blockchain in Python 3.
import hashlib as hasher
import datetime as date
# Define what a Snakecoin block is
class Block:
def __init__(self, index, timestamp, data, previous_hash):
self.index = index
self.timestamp = timestamp
self.data = data
@mkcor
mkcor / First draft
Last active August 29, 2015 14:05 — forked from msund/First draft
Online User Guide
{
"metadata": {
"name": "",
"signature": "sha256:4abc3bda22c03a05e4c028a06c0fdb0efbd5a6220ac512d85f9529fe8f08d9b7"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
Make your ggplots shareable, collaborative, and with D3
========================================================
[Ggplotly](https://github.com/ropensci/plotly) and [Plotly's R API](https://plot.ly/api/r) let you make ggplot2 plots, add `py$ggplotly()`, and make your plots interactive, online, and drawn with D3. Let's make some.
```{r echo=FALSE}
options(bitmapType="cairo")
#see: http://cran.r-project.org/web/packages/opencpu/NEWS
library(knitr)