My list:
- foo
- bar
- qux
# Author: Pieter Noordhuis | |
# Description: Simple demo to showcase Redis PubSub with EventMachine | |
# | |
# Update 7 Oct 2010: | |
# - This example does *not* appear to work with Chrome >=6.0. Apparently, | |
# the WebSocket protocol implementation in the cramp gem does not work | |
# well with Chrome's (newer) WebSocket implementation. | |
# | |
# Requirements: | |
# - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby |
require 'rubygems' | |
require 'sinatra' | |
require 'redis' | |
# To use, simply start your Redis server and boot this | |
# example app with: | |
# ruby example_note_keeping_app.rb | |
# | |
# Point your browser to http://localhost:4567 and enjoy! | |
# |
(grammar errors by google translate) | |
Cannelloni SALSATI | |
(Italian meal for 15 people) | |
250 grams ricotta | |
3 eggs | |
300 g spinach | |
200 grams cheddar cheese | |
2 tablespoons chopped parsley |
#!/usr/bin/env python | |
from nanomsg import Socket, PUB | |
import time | |
import sys | |
pub = Socket(PUB) | |
pub.bind('tcp://127.0.0.1:5000') | |
# Publishes 1MB of data per second. |
2018-02-19T22:28:27Z [monitor] gain: 2.55, freq: -930.8, omega: 2.589, vit(avg): 255, rs(sum): 46, packets: 59, drops: 0 | |
2018-02-19T22:28:28Z [monitor] gain: 2.55, freq: -921.7, omega: 2.589, vit(avg): 247, rs(sum): 40, packets: 55, drops: 0 | |
2018-02-19T22:28:29Z [monitor] gain: 2.57, freq: -904.6, omega: 2.589, vit(avg): 253, rs(sum): 34, packets: 56, drops: 0 | |
2018-02-19T22:28:30Z [monitor] gain: 2.59, freq: -910.9, omega: 2.589, vit(avg): 255, rs(sum): 53, packets: 58, drops: 0 | |
2018-02-19T22:28:31Z [monitor] gain: 2.59, freq: -891.6, omega: 2.589, vit(avg): 252, rs(sum): 56, packets: 56, drops: 0 | |
2018-02-19T22:28:32Z [monitor] gain: 2.59, freq: -931.1, omega: 2.589, vit(avg): 251, rs(sum): 53, packets: 56, drops: 0 | |
2018-02-19T22:28:33Z [monitor] gain: 2.59, freq: -918.9, omega: 2.589, vit(avg): 260, rs(sum): 54, packets: 58, drops: 0 | |
2018-02-19T22:28:34Z [monitor] gain: 2.57, freq: -901.9, omega: 2.589, vit(avg): 288, rs(sum): 97, packets: 56, drops: 0 | |
2018-02- |
pi@goes16:~ $ ./benchmark | |
AGC (block size=131072) | |
Time spent in work(): 3.994s | |
Time per block: 1844784ns | |
Samples per second: 71.050M | |
Costas (block size=131072) | |
Time spent in work(): 3.998s | |
Time per block: 6500052ns | |
Samples per second: 20.165M | |
FIR (N=31, block size=131072) |
https://gist.github.com/pietern/90b87f9ae3ef9ec37caaeff1521d9b6f |
#!/usr/bin/env python | |
# | |
# allreduce_loop.py | |
# | |
# Showcase for how to use Gloo collectives from Caffe2. | |
# For rendezvous, this example can use a shared filesystem, Redis, or MPI. | |
# | |
# To use a shared filesystem for rendezvous, use: | |
# | |
# python ./allreduce_loop.py \ |
gistup |