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
# USAGE: .\multidir.ps1 --dirs "directory1,...,directoryn" | |
# Execute a sequence of commands sequentially in each of the directories | |
param ( | |
[string]$dirs = "" | |
) | |
$dirlist = $dirs.Split(",") | |
While (($cmd = Read-Host -Prompt "multidir> ") -ne "exit") { |
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 Control.Exception | |
import Control.Monad.Cont | |
import Control.Monad.Identity | |
import Control.Monad.Reader | |
import Control.Monad.State.Lazy | |
import Control.Monad.Writer.Lazy | |
import System.IO | |
import System.Process |
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
<?xml version="1.0"?> | |
<!DOCTYPE resume SYSTEM "../resume.dtd"> | |
<resume> | |
<identity> | |
<name>Franklin Pezzuti Dyer</name> | |
<pronouns>He/him</pronouns> | |
</identity> | |
<contact> |
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
module Lib | |
( someFunc | |
) where | |
import Brick | |
import Brick (Widget, simpleMain, (<+>), str, withBorderStyle, joinBorders) | |
import Brick.Widgets.Center (center) | |
import Brick.Widgets.Border (borderWithLabel, vBorder) | |
import Brick.Widgets.Border.Style (unicode) |
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
<head> | |
<style> | |
#main-container { | |
margin: auto; | |
width: 80%; | |
} | |
div.annotated-code { | |
font-family: Courier; | |
background-color: #dddddd; |
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 time | |
import random | |
from threading import Thread | |
from multiprocessing.pool import ThreadPool | |
def print_ten(c): | |
for i in range(10): | |
time.sleep(0.1) | |
print(c, end="", flush=True) | |
print("") |
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
/* | |
***** BEGIN LICENSE BLOCK ***** | |
Copyright © 2022 YOUR_NAME <- TODO | |
This file is part of Zotero. | |
Zotero is free software: you can redistribute it and/or modify | |
it under the terms of the GNU Affero General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or |
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
// Karabiner complex ruleset for convenient balanced delimiter mapping (macOS). | |
// To install, follow these steps: | |
// 1. Install Karabiner and give it permission to capture from your keyboard in System Preferences. | |
// 2. Go to "complex modifications" and click on "add your own rule". | |
// 3. Paste the below JSON configuration into the text box that opens, and click "save". | |
// Here are all of the mappings that it defines: | |
// - Map Ctrl+9 to (), placing cursor between parens | |
// - Map Ctrl+[ to [], placing cursor between brackets | |
// - Map Ctrl+] to {}, placing cursor between parens | |
// - Map Ctrl+4 to $$, placing cursor between dollar signs (for LaTeX) |
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
<head> | |
<style> | |
div.repl { | |
background-color: black; | |
color: white; | |
font-family: Courier; | |
overflow-y: scroll; | |
height: 200px; | |
padding: 5px; | |
margin: 5px; |
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
// Utility for crawling (small) websites and detecting dead links | |
// Enter the URL of the homepage, or the desired starting page of the crawl. | |
// The bot will check validity of links to other domains, but will not recurse over them. | |
// Problematic links are printed to STDOUT. | |
// Progress info (# pending requests) is printed to STDERR. | |
import Queue from 'queue'; | |
import request from 'request'; | |
import follow_redirects from 'follow-redirects'; | |
const https = follow_redirects.https; |
NewerOlder