Skip to content

Instantly share code, notes, and snippets.

View ZucchiniZe's full-sized avatar

Alex Bierwagen ZucchiniZe

View GitHub Profile
import logging
import discord
import asyncio
import aiohttp
from discord.ext import commands
DESC = '''A discord bot made specially for the everest discord featuring such
spicy memes as the testing noise, and others.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
scalar Date
scalar File
scalar EncryptedString
interface Node {
id: ID!
}
interface Timestamped {
createdAt: Date!
(def base 65521)
(defn adler32 [data]
(let [a (atom 1)
b (atom 0)
i (atom 0)
l (count data)
m (bit-and @l -4)]
(while (< @i @m)
(let [n (min (+ @i 4096) @m)]
(while (< @i @n)
@ZucchiniZe
ZucchiniZe / list-files-in-dir.clj
Created February 15, 2016 10:00
simple clojure function to recursively list files in directories.
(let [directory (clojure.java.io/file "/path/to/list")
dir? #(.isDirectory %)]
(map #(.getPath %)
(filter (comp not dir?)
(tree-seq dir? #(.listFiles %) directory))))

Keybase proof

I hereby claim:

  • I am zucchinize on github.
  • I am alexb (https://keybase.io/alexb) on keybase.
  • I have a public key ASAFQqL3B5kwEVPTJRBhxmlNc5N71MY4s5zWZm4WnIKH2go

To claim this, I am signing this object:

# Media player controls
bindsym XF86AudioPlay exec dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause
bindsym XF86AudioPause exec dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause
bindsym XF86AudioNext exec dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next
bindsym XF86AudioPrev exec dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous
# Pure
# For my own and others sanity
# git:
# %b => current branch
# %a => current action (rebase/merge)
# prompt:
# %F => color dict
# %f => reset color
# %~ => current path
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script src="http://cdnjs.cloudflare.com/ajax/libs/p5.js/0.4.12/p5.js"></script>
<script src="https://rawgit.com/jonleung/79234327a76b2eb4953e/raw/62bbd37c23950be576afac9d8f78112ec46445a2/p5.play.js"></script>
</body>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script src="http://cdnjs.cloudflare.com/ajax/libs/p5.js/0.4.12/p5.js"></script>
<script src="https://rawgit.com/jonleung/79234327a76b2eb4953e/raw/62bbd37c23950be576afac9d8f78112ec46445a2/p5.play.js"></script>
</body>