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> | |
<title>Adding numbers with WebGL2 Transform Feedback</title> | |
</head> | |
<body> | |
<h1>Adding numbers with WebGL2 Transform Feedback.</h1> | |
<output></output> | |
<script src="webgl.js"></script> | |
<p>View <a href="webgl.js">the commented source</a>!</p> |
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
<body> | |
<style> | |
@media all { | |
body { | |
background: url('data:image/gif;base64,\ | |
R0lGODdhEAAQAKECAAAAAP8AAP///////ywAAAAAEAAQAAACGkyEqWi3z6CctNorALha2759IUaWJuRYjRoUADs= |
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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2012 subzey <subzey@gmail.com> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
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> | |
<title>Screen size debug</title> | |
</head> | |
<body> | |
<script> | |
function log(s){ | |
var logEntry = document.createElement('pre'); | |
logEntry.textContent = (new Date().toISOString() + ' ' + s); |
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> | |
<title></title> | |
</head> | |
<body> | |
<script> | |
function playSound() { | |
var ifr = document.createElement('iframe'); | |
ifr.allow = 'autoplay'; |
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
#!/usr/bin/env node | |
const { createServer } = require('http'); | |
function serveStatic(req, res) { | |
res.writeHead(200, { | |
'Content-Type': 'text/html;charset=utf-8', | |
}); | |
res.end(` | |
<!doctype html> |
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> | |
<title>New window open test</title> | |
</head> | |
<body> | |
<button id="openwnd">Open a new window</button> | |
<script> | |
function openTab(url) { | |
const a = document.createElement('a'); |
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><title>Login status demo</title></head> | |
<body> | |
<fieldset> | |
<legend>Псевдо-логинка</legend> | |
<form id="loginform"> | |
<p><label><input name="user" type="input"> Логин</label></p> | |
<p><label><input name="password" type="password"> Пароль</label></p> | |
<p><input type="submit"></p> |
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></head> | |
<body> | |
<script> | |
async function getBlinkStick() { | |
const vendorId = 0x20a0; | |
const productId = 0x41e5; | |
const devices = await navigator.hid.getDevices(); |
NewerOlder