Skip to content

Instantly share code, notes, and snippets.

View cwndrws's full-sized avatar

Charlie Andrews cwndrws

  • GitHub
  • RVA
View GitHub Profile
@cwndrws
cwndrws / userChrome.css
Created March 13, 2022 13:15
Firefox user chrome css to hide tab bar and style tab tree
#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] #sidebar-header {
display: none;
}
#main-window[tabsintitlebar="true"]:not([extradragspace="true"]) #TabsToolbar > .toolbar-items {
opacity: 0;
pointer-events: none;
}
#main-window:not([tabsintitlebar="true"]) #TabsToolbar {
visibility: collapse !important;
}
@cwndrws
cwndrws / hammerspoon_init.lua
Created January 12, 2022 15:26
My hammerspoon setup
-- Fullscreen current window
hs.hotkey.bind({"ctrl", "cmd", "alt"}, "F", function()
local win = hs.window.focusedWindow()
local f = win:frame()
local screen = win:screen()
local max = screen:frame()
f.x = max.x
f.y = max.y
f.w = max.w
@cwndrws
cwndrws / fraidycat.json
Last active June 2, 2020 18:36
Fraidycat Config
{"follows":{"theradavist.com-4c03b609":{"url":"https://theradavist.com/feed/","importance":7,"tags":["🚲"],"editedAt":"2020-03-29T21:51:14.639Z"},"jvns.ca-da97fe2e":{"url":"https://jvns.ca/atom.xml","importance":0,"tags":["💻"],"editedAt":"2020-03-29T21:52:31.793Z"},"dtrace.org-999b1395":{"url":"http://dtrace.org/blogs/bmc/feed/atom/","importance":0,"tags":["💻"],"editedAt":"2020-03-29T21:54:46.605Z"},"vox.com-f0567ab5":{"url":"https://www.vox.com/rss/index.xml","importance":7,"editedAt":"2020-03-29T22:06:33.583Z"},"lwn.net-2bf6669f":{"url":"https://lwn.net/headlines/newrss","importance":7,"tags":["💻"],"editedAt":"2020-03-29T22:03:58.182Z"},"feeds.arstechnica.com-e85e8f90":{"url":"http://feeds.arstechnica.com/arstechnica/index/","importance":30,"tags":["💻"],"editedAt":"2020-03-29T22:04:29.970Z"},"news.ycombinator.com-5a6c17b0":{"url":"https://news.ycombinator.com/rss","importance":7,"tags":["💻"],"editedAt":"2020-03-29T22:04:42.138Z"},"austinchronicle.com-ce10dc2d":{"url":"https://www.austinchronicle.com/gyrobase
@cwndrws
cwndrws / parse_pro_cycling_stats.py
Created March 8, 2017 04:48
Pro cycling average heights by nationality
from bs4 import BeautifulSoup
import requests
base_url = 'http://www.procyclingstats.com/'
team_path = 'teams'
def teams(team_page_path):
page_text = requests.get(base_url + team_page_path).text
soup = BeautifulSoup(page_text, 'html.parser')

Keybase proof

I hereby claim:

  • I am cwndrws on github.
  • I am cwndrws (https://keybase.io/cwndrws) on keybase.
  • I have a public key whose fingerprint is 6F74 B169 15BE F862 8C5A D135 45B2 A6C6 48E9 90FC

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am cwandrews on github.
* I am cwndrws (https://keybase.io/cwndrws) on keybase.
* I have a public key whose fingerprint is 6F74 B169 15BE F862 8C5A D135 45B2 A6C6 48E9 90FC
To claim this, I am signing this object:
#include "keymap_common.h"
const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = KEYMAP( /* Charlie workman */
ESC, Q, D, R, W, B, J, F, U, P, SCLN, BSLS,
LCTL, A, S, H, T, G, Y, N, E, O, I, BSPC,
LSFT, Z, X, M, C, V, K, L, COMM, DOT, SLSH, ENT,
RSFT, LALT, LGUI, RCTL, FN2, SPC, FN1, LEFT, DOWN, UP, RGHT),
[1] = KEYMAP( /* Charlie RAISE */
TAB, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, BSPC,
(setq custom-file "~/.emacs-custom.el")
(load custom-file)
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
("marmalade" . "http://marmalade-repo.org/packages/")
("melpa" . "http://melpa.milkbox.net/packages/")
("e6h" . "http://www.e6h.org/packages/")))
(package-initialize)
(setq
backup-by-copying t ; don't clobber symlinks
package GoSDK
import (
"errors"
"fmt"
"log"
"strings"
)
type System struct {
@cwndrws
cwndrws / gobTest.go
Created September 25, 2014 16:01
test for memory problems in gob
package main
import (
"encoding/gob"
"log"
"net"
"net/rpc"
"time"
)