(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
"use strict"; | |
this.MysqlBinlogTailer = MysqlBinlogTailer; | |
var EventEmitter = require('events').EventEmitter; | |
var fs = require('fs'); | |
var path = require('path'); | |
/** | |
* Tails a Mysql binlog and emits an event for every query executed. | |
*/ |
from mmap import mmap | |
import struct | |
MMAP_OFFSET = 0x44c00000 # base address of registers | |
MMAP_SIZE = 0x48ffffff-MMAP_OFFSET # size of the register memory space | |
CM_PER_BASE = 0x44e00000 - MMAP_OFFSET | |
CM_PER_EPWMSS1_CLKCTRL = CM_PER_BASE + 0xcc | |
CM_PER_EPWMSS0_CLKCTRL = CM_PER_BASE + 0xd4 | |
CM_PER_EPWMSS2_CLKCTRL = CM_PER_BASE + 0xd8 |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
// Simple proxy/forwarding server for when you don't want to have to add CORS during development. | |
// Usage: node proxy.js | |
// Open browser and navigate to http://localhost:9100/[url] | |
// Example: http://localhost:9100/http://www.google.com | |
// This is *NOT* for anything outside local development. It has zero error handling among other glaring problems. | |
// This started as code I grabbed from this SO question: http://stackoverflow.com/a/13472952/670023 |
Moved to my blog.