Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
python -m SimpleHTTPServer 8000
<body style="background-color: #223"> | |
<div style="font-size:45px"><b>ℤ𝕫𝔽𝕏 - Zuper Zmall Zound Zynth</b></div> | |
<div style="font-size:20px"><i>A tiny tool for creating and playing sound effects with JavaScript</i></div> | |
<div style="max-width:799px"> | |
<div style="font-size:20px"> | |
<input id="volume" type="range" min=0 max=1 step=.01 | |
oninput="zzfxV=volume.value;volumeText.innerHTML=volume.value*100|0"></input> |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
python -m SimpleHTTPServer 8000
# Load JavaScript code from here | |
js_include conf.d/header_logging.js; | |
# Fill variable from JS function | |
js_set $access_log_with_headers kvAccessLog; | |
# Define special log format | |
log_format kvpairs $access_log_with_headers; | |
server { |
/** | |
* @info React hook that keeps up to date with the current location. | |
*/ | |
import { useState, useEffect } from 'react' | |
function getCurrentLocation() { | |
return { | |
pathname: window.location.pathname, | |
search: window.location.search |
#!/bin/bash | |
# create_jwt.sh (c) NGINX, Inc. [v0.3 10-Jul-2019] Liam Crilly <liam.crilly@nginx.com> | |
# | |
# This script accepts a JSON claimset (JWT payload) and creates produces a | |
# JOSE-signed token to stdout using one of the supported signature algorithms. | |
# | |
# CHANGELOG | |
# v0.1 Initial version (hs256 only) | |
# v0.2 Added support for various hs signature lengths | |
# v0.3 Checks for expired exp claims, option to specify exp duration |
title | tags | description |
---|---|---|
Talk slides template |
Templates, Talk |
View the slide with "Slide Mode". |
// Plain SASS Trigonometry Algorithm in Taylor Expansion | |
$pi: 3.14159265359; | |
$_precision: 10; | |
@function pow($base, $exp) { | |
$value: $base; | |
@if $exp > 1 { | |
@for $i from 2 through $exp { | |
$value: $value * $base; |