I hereby claim:
- I am xananax on github.
- I am xananax (https://keybase.io/xananax) on keybase.
- I have a public key ASB_x6Y5mrLHyc5t4osR3QFWVZyy3r1E61aNNaWI2frw2Ao
To claim this, I am signing this object:
/** | |
copied from: https://meowni.ca/posts/monica-dot-css/ & https://hankchizljaw.com/wrote/a-modern-css-reset/ | |
**/ | |
/* Box sizing rules */ | |
*, *::before, *::after { | |
box-sizing: border-box; | |
} | |
/* Remove default padding */ |
const load = url => new Promise((ok, err) => require('https').request({ hostname: 'player.vimeo.com', port: 443, path: `/video/${url}`, method: 'GET'}, res => { | |
let data = '' | |
res.on('data', chunk => data+=chunk.toString()) | |
res.on('end', () => ok(data.replace(/\n/g,''))) | |
}).on('error',err).end()); | |
const extractTitle = html => (/<title>(.+?) on Vimeo<\/title>/gi.exec(html) || [])[1] | |
const extractAuthor = titleStr => ((/(.+?) from (.+)$/.exec(titleStr)) || [titleStr, titleStr, '']).slice(1, 3) |
I hereby claim:
To claim this, I am signing this object:
var audioContext = new AudioContext(); | |
function play(frequency) { | |
var sampleRate = audioContext.sampleRate; | |
var duration = 1*sampleRate; | |
var numChannels = 1; | |
var buffer = audioContext.createBuffer(numChannels, duration, sampleRate); | |
var channelData = buffer.getChannelData(0); | |
for (var i = 0; i < sampleRate; i++) { | |
channelData[i]=Math.sin(2*Math.PI*frequency*i/(sampleRate)); |
Some of these are old, but I don't have time to check them one by one
const out = thing => console.log(JSON.stringify(thing,true,2)) | |
/** | |
* checks if a string can be cast to integer | |
* @param {string} n | |
*/ | |
const isInt = n => !isNaN(parseInt(n)) && isFinite(n); | |
/** | |
* if passed string is an integer, will cast it to an AST number |
Play this game by pasting the script in http://www.puzzlescript.net/editor.html |
Play this game by pasting the script in http://www.puzzlescript.net/editor.html |
Play this game by pasting the script in http://www.puzzlescript.net/editor.html |