Skip to content

Instantly share code, notes, and snippets.

View antoineMoPa's full-sized avatar

Antoine M-P antoineMoPa

  • Sherbrooke, Québec, Canada
View GitHub Profile
@miguelmota
miguelmota / Makefile
Created September 3, 2018 07:21
Go (golang) WebAssembly (WASM) hello world example
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
TTTT
TTTT
TTTT
TTTT
@tsuriga
tsuriga / app.html
Last active October 29, 2023 15:24
Saving and loading files in an Electron application
<!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>
@v0lkan
v0lkan / nginx.conf
Last active April 2, 2024 18:25
Configuring NGINX for Maximum Throughput Under High Concurrency
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
@mbostock
mbostock / .block
Last active February 26, 2023 06:42
Hello WebGL
license: gpl-3.0
@RichardCSantana-zz
RichardCSantana-zz / gist:4022130
Created November 6, 2012 02:16
Primeiras brincadeiras em assembly(Arquitetura Mips)
.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
@usrlocalben
usrlocalben / raymarch.php
Created September 6, 2012 23:50
raymarch in php
<?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); }
@joshuapowell
joshuapowell / HTML5 Stub
Created April 12, 2011 04:53
A generic & empty HTML5 page structure.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="author" content="" />
<meta name="copyright" content="" />
<meta name="robots" content="index, follow" />