Skip to content

Instantly share code, notes, and snippets.

View felixroos's full-sized avatar

Felix Roos felixroos

View GitHub Profile
@felixroos
felixroos / index.html
Last active August 28, 2016 16:24
Randomizer
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link href="https://fonts.googleapis.com/css?family=Baloo+Chettan" rel="stylesheet">
<title>note</title>
<style>
body {
font-family: 'Baloo Chettan', cursive;
}
var http = require('http');
var url = require('url');
var request = require('request');
http.createServer(onRequest).listen(3000);
function onRequest(req, res) {
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Request-Method', '*');
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Snipcart Test</title>
</head>
<body>
<h1>Snipcart Test</h1>
<button onclick="addProduct()">ADD TO CART</button>
<button onclick="updateItem()">UPDATE ITEM</button>
sampler({
E1: 'samples/rhodes/MK2Md2000.mp3',
E2: 'samples/rhodes/MK2Md2012.mp3',
E3: 'samples/rhodes/MK2Md2024.mp3',
E4: 'samples/rhodes/MK2Md2036.mp3',
E5: 'samples/rhodes/MK2Md2048.mp3',
E6: 'samples/rhodes/MK2Md2060.mp3',
E7: 'samples/rhodes/MK2Md2072.mp3'
}, 'https://loophole-letters.vercel.app/')