- Download and install VirtualBox.
- Download the CoreOS ISO
- Create a new VM in VirtualBox
- For the OS, Other Linux, 64-bit should be fine
- Give the VM 1gb of memory, like your physical hardware has.
- Create a disk of whatever size you want. I made a VMDK file that could expand dynamically up to 8gb.
- Mount the ISO in the VM
- Right click on the VM and click settings
- Go to the storage tab
| // Scenario: Some event handler is blocking events (event.preventDefault()) that shouldn't be blocked, i.e. because it binds to document instead of a more specific element | |
| // 1) Place this before all other JavaScript | |
| var originalPreventDefault = Event.prototype.preventDefault; | |
| Event.prototype.preventDefault = function () { | |
| // Lookup specific event you're expecting, i.e. pressing space | |
| if (this instanceof KeyboardEvent && this.keyCode === 32) { | |
| // This will log an error with full stack trace | |
| make_error_to_see_stacktrace |
| #include <linux/module.h> | |
| #include <linux/kernel.h> | |
| #include <linux/netfilter_ipv4.h> | |
| #include <linux/skbuff.h> | |
| #include <linux/udp.h> | |
| #include <linux/ip.h> | |
| /* This function to be called by hook. */ | |
| static unsigned int | |
| hook_func(unsigned int hooknum, |
| # Heavily depends on: | |
| # libqrencode (fukuchi.org/works/qrencode/) | |
| # paperkey (jabberwocky.com/software/paperkey/) | |
| # zbar (zbar.sourceforge.net) | |
| # Producing the QR codes: | |
| # Split over 4 codes to ensure the data per image is not too large. | |
| gpg --export-secret-key KEYIDGOESHERE | paperkey --output-type raw | base64 > temp | |
| split temp -n 4 IMG | |
| for f in IMG*; do cat $f | qrencode -o $f.png; done |
| project(regex) | |
| cmake_minimum_required(VERSION 2.8) | |
| # For some external project macros | |
| include(ExternalProject) | |
| # Download boost from git and build regex module | |
| ExternalProject_Add( |
This very simple and minimal tutorial documents in a few easy steps how to play with WebAssembly (WASM) and get first results within minutes.
While the code below is mostly useless, it will show, how to call the alert function from within a WASM file and thus demonstrate how to import and export DOM objects.
Of course, this exercise has no real use. It is just meant to show, that getting started with WASM isn't hard. And there is no need for a complex build-chain, tons of tools or a dedicated VMs. Just use a browser, one online tool and that's it.
์ ๋์ฝ๋์์ ํ๊ธ์ ์ด๋ป๊ฒ ๋ค๋ฃจ๋์ง๋ฅผ ์ ๋ฆฌํ์๋ค.
- ์ ๋์ฝ๋(Unicode)๋ ์ ์ธ๊ณ์ ๋ชจ๋ ๋ฌธ์๋ฅผ ์ปดํจํฐ์์ ์ผ๊ด๋๊ฒ ํํํ๊ณ ๋ค๋ฃฐ ์ ์๋๋ก ์ค๊ณ๋ ์ฐ์ ํ์ค (์ํค ๋ฐฑ๊ณผ)
- ๋จ์ํ ๋ฌธ์๋ง๋ค ๋ฒํธ๋ฅผ ๋ถ์
- ๊ณ์ ์ ๋ฐ์ดํธ๋๋ฉฐ ํ์ฌ๋ Unicode Version 9.0.0 ์ด ์ต์ ์ด๋ค.
- ์ ๋์ฝ๋๋ฅผ ์ค์ ํ์ผ ๋ฑ์ ์ด๋ป๊ฒ ๊ธฐ๋กํ ๊ฒ์ธ์ง๋ฅผ ํ์คํํ ๊ฒ์ด๋ค.
| const fakeDatabase = | |
| [ | |
| { | |
| "id": 1, | |
| "name": "Leanne Graham", | |
| "username": "Bret", | |
| "email": "Sincere@april.biz", | |
| "address": { | |
| "street": "Kulas Light", | |
| "suite": "Apt. 556", |
Sometimes you want to have a subdirectory on the master branch be the root directory of a repositoryโs gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.
For the sake of this example, letโs pretend the subfolder containing your site is named dist.
Remove the dist directory from the projectโs .gitignore file (itโs ignored by default by Yeoman).