This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Poking fun at how recursion is taught as the holy grail in entry-level CS. | |
* This forks a process for each recursive computation and uses the return | |
* status as the return value. | |
* | |
* Running this might be a really bad idea! | |
*/ | |
#include <unistd.h> | |
#include <stdlib.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Jot | |
" Author: Kate Hart | |
" | |
" Colors: | |
" Background: #f9ffff | |
" Normal: #262626 | |
" Light: #b6b6b6 | |
" Highlight: #0c9cf0 | |
" Light: #e4ecf0 | |
" Dark: #0e5591 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
checkpw() { | |
local pw sha shortsha suffixsha breachcount | |
read -srp '> ' pw | |
sha="$(echo -n "$pw" | sha1sum | cut -d' ' -f1)" | |
shortsha="$(echo -n "$sha" | cut -c-5)" | |
suffixsha="${sha#$shortsha}" | |
breachcount="$(curl -s https://api.pwnedpasswords.com/range/$shortsha | grep -i $suffixsha | cut -d':' -f2)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyglet | |
def draw_rect(x, y, width, height): | |
pyglet.graphics.draw(4, pyglet.gl.GL_QUADS, | |
('v2f', [x, y, x + width, y, x + width, y + height, x, y + height])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Moon(object): | |
"""Graphical moon object""" | |
PHASES = ('new', 'waxing-crescent', 'first-quarter', 'waxing-gibbous', | |
'full', 'waning-gibbous', 'third-quarter', 'waning-crescent') | |
def __init__(self, x, y): | |
"""Creates a new moon at the coordinates""" | |
self._x, self._y = x, y | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmd2svg() { | |
name="$1" | |
shift | |
dest="$2" | |
shift | |
termtosvg -s "$dest" -g 80x20 -t gjm8 -c "$*" | |
mv "$dest"/termtosvg_00000.svg /mnt/"$name" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
❄️✊🏾✊🏿🌹🌹🌹🌹🌹🌹🌹 | |
🌸❄️✊🏾✊🏿🔥🔥🔥🔥🔥🔥 | |
☁️🌸❄️✊🏾✊🏿☘️☘️☘️☘️☘️ | |
🌸❄️✊🏾✊🏿💧💧💧💧💧💧 | |
❄️✊🏾✊🏿☂️☂️☂️☂️☂️☂️☂️ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
╔═══*.·:·.☽✧ ✦ ✧☾.·:·.*═══╗ | |
black lives matter | |
╚═══*.·:·.☽✧ ✦ ✧☾.·:·.*═══╝ |