View install.sh
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
#!/usr/bin/env bash | |
# many settings from https://raw.githubusercontent.com/mathiasbynens/dotfiles/master/.macos | |
# many settings from https://raw.githubusercontent.com/thoughtbot/laptop/master/mac | |
# instructions on finding the default you've changed: https://pawelgrzybek.com/change-macos-user-preferences-via-command-line/ | |
# previous install notes at: | |
# https://gist.github.com/llimllib/ee591266e05bd880629a4e7511a61bb3 | |
# https://gist.github.com/llimllib/e864a92da94ceb1ef0da2e06fd1f8d70 | |
# https://gist.github.com/llimllib/3fc4fefcfc0152dad8c58201246d8802 | |
fancy_echo() { |
View dabeaz_stb.c
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
#include <stdio.h> | |
#include <stdarg.h> | |
// https://github.com/nothings/stb | |
#define STB_DS_IMPLEMENTATION | |
#include "stb_ds.h" | |
// compile with: gcc -Wall -I . dabeaz_stb.c -o a && ./a | |
typedef struct datum datum; |
View log.txt
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
$ raco pkg install scribble | |
Resolving "scribble" via https://download.racket-lang.org/releases/8.5/catalog/ | |
Downloading https://download.racket-lang.org/releases/8.5/pkgs/scribble.zip | |
The following uninstalled packages are listed as dependencies of scribble: | |
scribble-lib | |
scribble-doc | |
Would you like to install these dependencies? [Y/n/a/c/?] | |
00: Resolving "scribble-lib" via https://download.racket-lang.org/releases/8.5/catalog/ | |
Resolving "scribble-doc" via https://download.racket-lang.org/releases/8.5/catalog/ |
View gist:85c5f3e7cbe59d455df0670b96a83a40
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
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim' | |
if empty(glob(data_dir . '/autoload/plug.vim')) | |
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' | |
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC | |
endif | |
call plug#begin() | |
Plug 'neovim/nvim-lspconfig' | |
Plug 'hrsh7th/cmp-nvim-lsp' | |
Plug 'hrsh7th/cmp-buffer' |
View photo_gallery_in_27_lines.py
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 glob | |
import os | |
page = """ | |
<!DOCTYPE html> | |
<html><head><title>Zealand Falls Trip</title> | |
<style> | |
img { | |
padding: 5px; | |
} |
View example
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
$ echo '{"a":{"b":"quoted \" } {{{"}}{"c":{"d":2}}{"e":{"f":3}}' | go run firstobject.go | |
{"a":{"b":"quoted \" } {{{"}} |
View gist:c0f82d23d6f44501733b21cdd2e9f8d7
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
default 20:39:37.686798-0400 Finder bundle 0x4ff8 is launch-disabled and needs to be set trusted | |
default 20:39:37.688071-0400 lsd *** Registration warnings for <private>: | |
default 20:39:37.688087-0400 lsd Missing iTunes metadata | |
error 20:39:37.693434-0400 lsd LSStringLocalizer development region English not found in localizations available for bundle <private> | |
default 20:39:37.694953-0400 lsd Non-fatal error enumerating at <private>, continuing: Error Domain=NSCocoaErrorDomain Code=260 "The file “PlugIns” couldn’t be opened because there is no such file." UserInfo={NSURL=PlugIns/ -- file:///Applications/Firefox.app/Contents/, NSFilePath=/Applications/Firefox.app/Contents/PlugIns, NSUnderlyingError=0x1267223d0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}} | |
default 20:39:37.695065-0400 lsd - 45683955: Checking whether application is managed at file:///Applications/Firefox.app//org.mozilla.firefox | |
default 20:39:37.695185-0400 lsd (null):5:4:1:0:_LSServerRegisterItemInfo begin | |
default 20 |
View allowed_answers.txt
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
cigar | |
rebut | |
sissy | |
humph | |
awake | |
blush | |
focal | |
evade | |
naval | |
serve |
View oldest.py
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
#!/usr/bin/env python | |
import re | |
import requests | |
import sys | |
import time | |
if len(sys.argv) < 2: | |
print("usage: python oldest.py <username>") | |
sys.exit(1) |
NewerOlder