- 🌏 The official ISO C++ Get Started! page
- 🎥 Herb Sutter: (Not Your Father’s) C++
- 🎥 Beginning with C++ by Jens Weller
| #include <iostream> | |
| #include <sstream> | |
| #include <string> | |
| #include <string.h> | |
| #include <gif_lib.h> | |
| bool gif_write(const char* fileName) | |
| { | |
| int error; |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <script type="module"> | |
| import { h, text, app } from "https://unpkg.com/hyperapp" | |
| app({ | |
| init: () => 0, | |
| view: state => | |
| h("main", {}, [ |
| /* eslint-disable prefer-template */ | |
| const path = require('path'); | |
| const aliases = require('./aliases'); | |
| // /////////////////////////////////////////////////////////////// | |
| // ////////////////// PLUGINS //////////////////////////////// | |
| // /////////////////////////////////////////////////////////////// | |
| const commonPlugins = [ |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| <style id="jsbin-css"> | |
| canvas { | |
| border: 1px solid black | |
| } |
| // getComponent is a function that returns a promise for a component | |
| // It will not be called until the first mount | |
| function asyncComponent(getComponent) { | |
| return class AsyncComponent extends React.Component { | |
| static Component = null; | |
| state = { Component: AsyncComponent.Component }; | |
| componentWillMount() { | |
| if (!this.state.Component) { | |
| getComponent().then(Component => { |
| function main() { | |
| return { | |
| DOM: Rx.Observable.timer(0, 1000) | |
| .map(i => `Seconds elapsed ${i}`) | |
| }; | |
| } | |
| const drivers = { | |
| DOM: function DOMDriver(sink) { | |
| sink.subscribe(text => { |
| ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
| # Don't add passphrase | |
| openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
| cat jwtRS256.key | |
| cat jwtRS256.key.pub |