Skip to content

Instantly share code, notes, and snippets.

View widyakumara's full-sized avatar
:octocat:
🆖🆗 🆖🆗 🆖🆗

Dewa Widyakumara widyakumara

:octocat:
🆖🆗 🆖🆗 🆖🆗
  • 14:55 (UTC +07:00)
View GitHub Profile
<title>THX</title><script>mr=Math.random;e="exponentialRampToValueAtTime";l="linearRampToValueAtTime";s="setValueAtTime";h="frequency";c="connect";ac=new(window.AudioContext||window.webkitAudioContext)();d=ac.createDynamicsCompressor();d[c](ac.destination);var os=[];for(i=0;i<30;i++){v=200+mr()*200;os[i]=o=ac.createOscillator();o[h][s](v,0);o.detune[l](mr()*20-10,0);o.type="sawtooth";f=ac.createBiquadFilter();f.type="lowpass";f[h][s](v*8,0);f.Q.value=mr();for(t=0;t<10;t++){if(mr()<0.1){v=200+mr()*200;o[h][e](v,t+mr());f[h][e](v*8,t+mr());}}v=75*Math.pow(2,Math.floor(mr()*mr()*4));o[h][e](v,18+mr());f[h][e](v*15,18+mr());for(t=0;t<15;t++){o.detune[s](mr()*30-15,t*2+mr());}a=ac.createGain();a.gain[s](0,0);a.gain[l](0.1,5+mr()*5);a.gain[s](0.1,22);a.gain[l](0,30);p=ac.createPanner();p.setPosition(mr()*2-1,mr()*2-1,mr()*2-1);o[c](f);f[c](a);a[c](p);p[c](d);o.start(0);o.stop(30);}</script><body style="background:#000"><h1 style="text-align:center;font-size:25em;font-family:sans-serif;color:#fff">THX</h1>
mr = Math.random;
e = "exponentialRampToValueAtTime";
l = "linearRampToValueAtTime";
s = "setValueAtTime";
h = "frequency";
c = "connect";
ac = new(window.AudioContext||window.webkitAudioContext)();
d = ac.createDynamicsCompressor();
d[c](ac.destination);
var os = [];
@widyakumara
widyakumara / ungrid.php
Created July 23, 2014 12:08
ungrid by @chrisnager: the simplest responsive css grid http://chrisnager.github.io/ungrid/
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='utf-8'/>
<meta http-equiv='X-UA-Compatible' content='IE=edge'/>
<meta name='viewport' content='width=device-width, initial-scale=1'/>
<style type='text/css'>
.row {
width: 100%;
display: table;
// PHP.sublime-build for SublimeText 3 on MacOS
{
"cmd": ["php", "$file"],
"selector": "source.php",
"path": "$PATH"
}
// Javascript.sublime-build for SublimeText 3 on MacOS
{
"cmd": ["node", "$file"],
"selector": "source.js",
"path": "$PATH"
}
# main display
osascript -e 'tell application "Finder" to set desktop picture to POSIX file "/path/to/image.jpg"'
# all displays
osascript -e 'tell application "System Events" to set picture of every desktop to "/path/to/image.jpg"'
@widyakumara
widyakumara / line6-software.js
Created October 24, 2017 19:03
get only the latest relevant software download links from http://line6.com/software/index.html
/*
get only the latest relevant software download links from http://line6.com/software/index.html
1. select os
2. select product
3. select software (optional)
4. click go
5. open browser console & paste this code
*/
releases = $$('table');
@widyakumara
widyakumara / copy-feed-links.js
Last active March 7, 2019 10:27
copy feed links in chrome console
@widyakumara
widyakumara / internet negatif
Last active October 14, 2019 23:57
internet negatif
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost