Skip to content

Instantly share code, notes, and snippets.

View tuttarealstep's full-sized avatar
🎯
Focusing

Stefano tuttarealstep

🎯
Focusing
View GitHub Profile
@tuttarealstep
tuttarealstep / pow.wat
Created December 19, 2018 16:27
Pow in webassembly
(func $pow (param $x i32) (param $y i32) (result i32)
(local $result i32)
block $b0
get_local $y
i32.const 1
i32.eq
if
get_local $x
set_local $result
br $b0
@tuttarealstep
tuttarealstep / .htaccess
Created May 25, 2016 19:08
An RESTfulAPI system
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^ ./index.php [L]
</IfModule>