Skip to content

Instantly share code, notes, and snippets.

View LeetCodes's full-sized avatar
🎱
Choppin' caine rain, hail, sleet, or snow

LeetCodes

🎱
Choppin' caine rain, hail, sleet, or snow
View GitHub Profile
@LeetCodes
LeetCodes / index.html
Created September 2, 2018 13:11
Responsive HTML5 Audio Spectrum EQ Player
<html >
<head>
<meta charset="UTF-8">
<title>Responsive HTML5 Audio Spectrum EQ Player</title>
<script type="text/javascript">
var audio = new Audio();
audio.src = "https://s3.us-east-2.amazonaws.com/leetcodes/assets/My_House_-_Flo_Rida_Jack_Dyer_Bootleg.mp3";
audio.crossOrigin = "anonymous";
audio.controls = false;
@LeetCodes
LeetCodes / index.html
Created September 2, 2018 14:22
Wormhole JAM
<div>
<canvas id="testCanvas" width="550" height="500" tabIndex="1"></canvas>
</div>
@LeetCodes
LeetCodes / canvas-and-audio-animation.markdown
Created September 17, 2018 07:09
Canvas and Audio Animation

Canvas and Audio Animation

Playing with Web Audio API AudioContext- the adjustments I made were mostly visual- using the canvas element to draw more complex shapes, changing colors, and using my friend @sudara's music delivered on cloudfront.

Built on the shoulders of Giants: Forked from Justin Windle's Pen Simple Audio Visualisation.

A Pen by Leetcodes on CodePen.

License.

@LeetCodes
LeetCodes / html5-text-editor.markdown
Created October 25, 2018 03:48
HTML5 Text Editor
@LeetCodes
LeetCodes / gogs
Created October 28, 2018 05:00
gogs init.d service script for Debian
#! /bin/sh
### BEGIN INIT INFO
# Provides: gogs
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Git repository manager Gogs
# Description: Starts and stops the self-hosted git repository manager Gogs
### END INIT INFO
<!doctype html>
<head>
<script src="lib/codemirror.js"></script>
<link rel="stylesheet" href="lib/codemirror.css">
<script src="mode/javascript/javascript.js"></script>
<style>
body {
background-color: #eee;
}
@LeetCodes
LeetCodes / parallel-install-automake1.12.sh
Last active November 6, 2018 22:52
Create a .deb for automake-1.12 and install parallel to automake
cd
wget https://ftp.gnu.org/gnu/automake/automake-1.12.tar.gz
tar xf automake-1.12.tar.gz
cd automake-1.12
./configure --prefix=/usr/local
make
sudo checkinstall
# configure [2] -> automake1.12
# configure any other variables as needed and continue
W = 490
H = 475
def setup
srand 333
frame_rate 10
end
def draw
if frame_count == 1
@LeetCodes
LeetCodes / markdown-discord.md
Created November 13, 2018 23:47
Discord Markdown Guide

Markdown Discord Text

Give your text a twist using markdown, syntax highlighting, formats in Discord.

Styles

Italics *italics* or _italics_

Underline italics __*underline italics*__

@LeetCodes
LeetCodes / storagespaces.ps1
Created November 19, 2018 21:37
Win10 Storage Spaces info
# List all disks that can be pooled and output in table format (format-table)
Get-PhysicalDisk -CanPool $True | Format-Table -Property FriendlyName, OperationalStatus, Size, MediaType
# Store all physical disks that can be pooled into a variable, $pd
$pd = (Get-PhysicalDisk -CanPool $True | Where-Object -FilterScript {$_.MediaType -NE 'UnSpecified'})
# Create a new Storage Pool using the disks in variable $pd with a name of My Storage Pool
New-StoragePool -PhysicalDisks $pd –StorageSubSystemFriendlyName "Storage Spaces*" -FriendlyName "My Storage Pool"
#View the disks in the Storage Pool just created
Get-StoragePool -FriendlyName "My Storage Pool" | Get-PhysicalDisk | Select-Object -Property FriendlyName, MediaType