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 November 20, 2018 03:50
Sound Visualizer
<div id="wrap"></div>
@LeetCodes
LeetCodes / rockem-sockem.go
Created November 21, 2018 01:31
Socks5 server in single Go file
package main
import (
"log"
"net"
"strconv"
)
type connection interface {
Bind(conn net.Conn)
@LeetCodes
LeetCodes / spotify_keybindings
Created December 18, 2018 12:32 — forked from jbonney/spotify_keybindings
Spotify - Linux key bindings. From XFCE / Ubuntu keyboard shortcuts configuration, assign the control command to their key. http://shkspr.mobi/blog/2011/12/linux-spotify-keybindings/
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause" XF86AudioPlay
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop" XF86AudioStop
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next" XF86AudioNext
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous" XF86AudioPrevious
@LeetCodes
LeetCodes / index.html
Created December 29, 2018 15:42
xmLoWy
<pre class="hidden-xs" align="center"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAiAAAAC4CAYAAADaI1cbAAA0h0lEQVR4AezdA5AlPx7A8Zxt27Z9r5PB2SidWTqbr26S9Hr/tm3btu3723eDJD3r15ec17vzXr+Z6f5O1WeNntJ8q5NfIvhY/aPVLh/96Xb5xMG5o08bWtB50rt2Kh8jyvIRkQCAHgHQlE80hYQc8W9S1n1Z5uGXyobtlPXHZtZflGl/W6bDeGbdKmVDuW5uSXSftOHq6AypwwHK+DnKFj+UeRhuzS1e3OBQAQCAAGm3y0em2JA2fF9av4cy7srMumUpJCqlw2h0pjJhsbTui8r650VidQAAoDafyOC84oUyD99WNhycQiAFwUyQ6XBT/H6r9Jbk41t1HheJpgMAYFY//ODcyZcq63+RllG6j4XqZdqH+P3+yhSf+Uq7fGwkmggAgFn3wGmDqDThG5kOZ1ccDNUv19iwlbLujZFoEgAAZs2DtvLxVysTtk6bRZUNZa3ocKbMi8+mvSuR2DgAwLsP/FLZIwL9N+MfUOqJD0rjj1DadZQNZZ1lOlyX3u6kUeBIrAcAoKoAAQEykE9+INPhZGVD2Tg63JAZ96X1jfUCAHocICBABkfcG9L5HMqGsvGMv3AgL94TidUAAAiQ3iBABvKJZ0kTts20W0l8/B/tOtL4XVtt9+xI/AsAgADpCgGSlhn+PdXyN4JjA3R4SBn/lUjAAwABMnUEyMCcJa+UNpxCYGw6acIh6W1RJACgyQgQAmSqbz2+o2zwUbl5kFl3z4D2WSQAoKEIEAJkKns9/BGERJf+NZb854aeHQIABMimI0Bapni3su4OAqJ3pPHHtNpjT48EADQIAbJpCBBlwvcqu5EWN0o9/qpIAEBDECAbRoB85eDyUel6eiKhWmmKaFC7D0cCABqAAFk/AmRoQedJyvijCIT+yLRbmu6UiQQA1BwBsm
@LeetCodes
LeetCodes / waterfall1.rb
Created January 7, 2019 03:08 — forked from szeryf/waterfall1.rb
Waterfall One, the source of
# Waterfall One
# http://low-sugar-eye-candy.tumblr.com/post/164374908068/waterfall-one
#
# requires jruby_art gem and Processing3 to run
# run with: k9 run --nojruby forest.rb
W = 500
H = 801
def setup
# requires jruby_art gem and Processing3 to run
# run with: k9 run --nojruby forest.rb
def setup
@images = Dir.glob("resized-*.jpg").map { |file| load_image(file) }
@pixels = @images.map { |i| i.load_pixels; i.pixels }
noise_seed 130
end
def draw
@LeetCodes
LeetCodes / custom-svg-cursor.markdown
Created February 8, 2019 05:06
Custom SVG Cursor

Custom SVG Cursor

An interesting solution for cursor custom on SVG & JS. Add a little animation and your cursor will delight your visitors.

A Pen by Leetcodes on CodePen.

License.

@LeetCodes
LeetCodes / SharedClipboard.md
Last active February 19, 2019 01:32
Shared Clipboard with a shell-only VirtualBox (hack to fix no guest addition support for clipboard)

Shared Clipboard

It is possible to get “Host to Guest” clipboard sharing to work in server/console mode. The “Guest to Host” sharing is not working at the moment, probably due to an issue between the VBoxClient and Xvfb.

Install Xvfb

    yum install Xvfb

Install VBoxClient