This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="author" content="" /> | |
<meta name="copyright" content="" /> | |
<meta name="robots" content="index, follow" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// oh boy, lets raymarch in php. | |
function LERP( $a, $b, $t ) { return (1.0-$t)*$a + $t*$b; } | |
function CLAMP($a,$x,$y){ return ($a<$x?$x:($a>$y?$y:$a)); } | |
function CLAMP01($a) { return CLAMP($a,0.0,1.0); } | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.data | |
HelloWorld: .ascii "Hello World" #declara variavel HelloWorld como hello world | |
.text | |
main: | |
li $v0,4 #comando de impressão de texto na tela | |
la $a0, HelloWorld #coloca a variavel HelloWorld para ser impressa | |
syscall # efetua a chamada ao sistema | |
li $v0, 10 # comando de exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: gpl-3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user web; | |
# One worker process per CPU core. | |
worker_processes 8; | |
# Also set | |
# /etc/security/limits.conf | |
# web soft nofile 65535 | |
# web hard nofile 65535 | |
# /etc/default/nginx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Tsuri's Electron Note Sample App</title> | |
<link href="./app.css" rel="stylesheet" /> | |
<script src="app.js"></script> | |
</head> | |
<body> | |
<h1>Welcome to note sample app!</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TTTT | |
TTTT | |
TTTT | |
TTTT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
compile: | |
GOARCH=wasm GOOS=js go build -o test.wasm main.go | |
copy: | |
cp $(go env GOROOT)/misc/wasm/wasm_exec.{html,js} . | |
serve: | |
go run server.go |