Skip to content

Instantly share code, notes, and snippets.

@VictorTaelin
VictorTaelin / ethereum_delayed_computations.md
Last active April 12, 2018 16:42
Make Ethereum massively scalable today with delayed computations

Make Ethereum massively scalable today with delayed computations

Suppose you're writing a contract which involves a huge amount of participants. As an example, think of an online, blockchain-based Trading-Card Game with tournaments. How would you program a playCard function? You might be thinking of something like this:

function playCard(uint player, uint card){
    ...
    else if (card == PROFESSOR_OAK){
        // shuffles the player's hand on his deck
 shuffleHand(player)
@zelig
zelig / swarm.md
Last active August 31, 2017 21:48
The Ethereum Swarm project: timeline of accomplishments and roadmap

The development of the distributed mass storage subsystem for Ethereum named Swarm was kicked off in October 2014, shortly before Devcon 0 in Berlin, where we presented the design principles, the basic network and protocol architecture as well as the requirements that we aimed to achieve. With the preliminary design finalized by the end of 2014, implementation in Go language began in 2015.

In 2015, we built the foundations of Swarm, consisting of the subsystems for distributing arbitrarily large files across the network with the possibility of subsequent efficient retrieval and

@bazilio91
bazilio91 / mqtt-led
Created April 22, 2015 04:02
arduino mqtt led stripe
#include <PubSubClient.h>
#include <SPI.h>
#include <Ethernet.h>
// don't futz with these, illicit sums later
#define RED 7// pin for red LED
#define GREEN 8 // pin for green - never explicitly referenced
#define BLUE 2 // pin for blue - never explicitly referenced
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
@miekg
miekg / zbundle
Created February 15, 2015 15:45
zbundle: bundle code and zip to have one unit of deployment
#!/bin/bash
set -e
getopts "s" show && shift
if [[ $show == "s" ]]; then
while read line; do
hex="$(echo $line | od -N4 -x | head -1)"
byte=(${hex})
if [[ ${byte[1]} == "4b50" && ${byte[2]} == "0403" ]]; then
break
fi
@strezh
strezh / GStreamer-1.0 some strings.sh
Last active October 2, 2023 09:00
GStreamer-1.0 personal cheat sheet
#!/bin/bash
# play YUV444 FULL HD file
gst-launch-1.0 -v filesrc location=size_1920x1080.yuv ! \
videoparse width=1920 height=1080 framerate=25/1 format=GST_VIDEO_FORMAT_Y444 ! \
videoconvert ! \
autovideosink
# play YUV422 FULL HD file
gst-launch-1.0 -v filesrc location=size_1920x1080.yuv ! \
sakura <--> 西海岸
ping (icmp)
round-trip min/avg/max/stddev = 117.985/118.451/127.126/1.422 ms
ぐらいの環境
QoS0
receiver:2014-01-31T10:26:35.783506, QoS:0, msgid:0, sender:2014-01-31T10:26:35.665650, diff:0:00:00.117856