ref: 20170924-html5conference-wasm by N. Shimizu
- 数値計算
- 線形メモリへのアクセス
- 関数呼び出し
(function() { | |
var d, aa = "function" == typeof Object.create ? Object.create : function(a) { | |
var b = function() {}; | |
b.prototype = a; | |
return new b | |
}, | |
ba; | |
if ("function" == typeof Object.setPrototypeOf) ba = Object.setPrototypeOf; | |
else { | |
var ca; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'> | |
<title>Rubrowser</title> | |
<link media='all' rel='stylesheet'> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> | |
<style>html, body, .dependency_graph, .dependency_graph svg{ | |
width: 100%; | |
height: 100%; |
ref: 20170924-html5conference-wasm by N. Shimizu
<!DOCTYPE html> | |
<html lang='en'> | |
<head> | |
<meta charset='utf-8'> | |
<meta name='viewport' content='width=device-width, initial-scale=1, shrink-to-fit=no'> | |
<title>eventListener</title> | |
</head> | |
<body> | |
<noscript> | |
You need to enable JavaScript to run this app. |
HTML+CSSの設計
package main | |
const ( | |
visited = 0 | |
completion = -1 | |
) | |
type Status struct { | |
Node int | |
Unvisited []int |
,--------------------------------------------------. ,--------------------------------------------------.
| Esc | 1 | 2 | 3 | 4 | 5 | 6 | | ' | 7 | 8 | 9 | 0 | - | = |
|--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
| Tab | Q | W | E | R | T | [ | | ] | Y | U | I | O | P | \ |
|--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
package main | |
import ( | |
"fmt" | |
"github.com/jinzhu/gorm" | |
_ "github.com/lib/pq" | |
) | |
type Schema struct { |
git log --pretty="tformat:$(tput bold)$(tput setaf 3)%h$(tput sgr0);;$(tput bold)$(tput setaf 4)%an$(tput sgr0);;$(tput bold)$(tput setaf 2)%aD%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08$(tput sgr0);;$(tput bold)$(tput setaf 1)%d$(tput sgr0) $(tput setaf 7)%s$(tput sgr0)" --graph --all |
require 'aws-sdk' | |
AWS_ACCESS_KEY_ID = 'hoge'.freeze | |
AWS_SECRET_ACCESS_KEY = 'piyo'.freeze | |
Aws.config.update({ | |
region: 'us-west-2', | |
credentials: Aws::Credentials.new(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY) | |
}) |