Forked from Captain Anonymous's Pen pvbNJm.
A Pen by Gerhard Preuss on CodePen.
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script> | |
| const template = document.createElement('template') | |
| template.innerHTML = ` | |
| <style>#foobar {background: red;}</style> | |
| <h1 id="foobar">I am foo bar</h1> | |
| <slot></slot> | |
| ` |
Forked from Captain Anonymous's Pen pvbNJm.
A Pen by Gerhard Preuss on CodePen.
Connecting to the Jet bus and add a state
A Pen by Gerhard Preuss on CodePen.
An auto resizing canvas with fixed aspect ratio based on talk of Ethan Marcotte and article at alistapart.
A Pen by Gerhard Preuss on CodePen.
| -- | |
| -- Test the conn:want() function | |
| -- | |
| -- Public domain | |
| -- | |
| require("socket") | |
| require("ssl") | |
| local params = { | |
| mode = "client", |
| package.path = './?.lua;'..package.path | |
| local ev = require'ev' | |
| local loop = ev.Loop.default | |
| require'busted' | |
| describe( | |
| 'All async in this context', | |
| function() | |
| before( | |
| async, |
| #include <zmq.hpp> | |
| #include <assert.h> | |
| int main(int argc, char* argv[]) | |
| { | |
| zmq::context_t context(1); | |
| // setup xreq and get fd | |
| zmq::socket_t xreq(context, ZMQ_XREQ); | |
| xreq.bind("tcp://127.0.0.1:13333"); |