Skip to content

Instantly share code, notes, and snippets.

View infinitewarp's full-sized avatar
🐍
making things

Brad Smith infinitewarp

🐍
making things
View GitHub Profile
@infinitewarp
infinitewarp / conical.py
Created April 4, 2016 21:19
quick visualization of coordinates in a conical frustum
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
def get_args():
parser = argparse.ArgumentParser()
@infinitewarp
infinitewarp / bedtime.scpt
Created April 27, 2016 14:57
script runs before going to sleep at night
tell application "System Preferences"
activate
set the current pane to pane id "com.apple.preference.security"
tell application "System Events" to tell process "System Preferences"
repeat until radio button "General" of tab group 1 of window 1 exists
end repeat
click radio button "General" of tab group 1 of window 1
set timeout_menu to pop up button 1 of (tab group 1 of window "Security & Privacy")
@infinitewarp
infinitewarp / wakeup.scpt
Created April 27, 2016 14:58
script runs after waking up in the morning
tell application "System Preferences"
activate
set the current pane to pane id "com.apple.preference.security"
tell application "System Events" to tell process "System Preferences"
repeat until radio button "General" of tab group 1 of window 1 exists
end repeat
click radio button "General" of tab group 1 of window 1
set timeout_menu to pop up button 1 of (tab group 1 of window "Security & Privacy")
@infinitewarp
infinitewarp / Brad_s Sublime.icls
Created May 7, 2016 18:24
colors for pycharm to look more like sublime text's default colors
<scheme name="Brad's Sublime" version="142" parent_scheme="Default">
<option name="LINE_SPACING" value="1.0" />
<option name="EDITOR_FONT_SIZE" value="14" />
<option name="CONSOLE_FONT_NAME" value="Menlo" />
<option name="CONSOLE_FONT_SIZE" value="13" />
<option name="EDITOR_FONT_NAME" value="Menlo" />
<colors>
<option name="ADDED_LINES_COLOR" value="295622" />
<option name="CARET_COLOR" value="bbbbbb" />
<option name="CARET_ROW_COLOR" value="32332a" />
if [ -f /etc/bashrc ]; then
source /etc/bashrc
fi
# shortcus
alias ll='/bin/ls -lahO'
# more default paths
export BREW_PATH="/usr/local/bin:/usr/local/sbin"
export PATH="~/bin:$BREW_PATH:$PATH"
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AppleAntiAliasingThreshold</key>
<integer>1</integer>
<key>AppleScrollAnimationEnabled</key>
<integer>0</integer>
<key>AppleSmoothFixedFontsSizeThreshold</key>
<integer>1</integer>
syntax on
" see also: :e $VIMRUNTIME/colors
colorscheme elflord
" show the cursor position all the time
set ruler
" In many terminal emulators the mouse works just fine, thus enable it.
"if has('mouse')
# This is Git's per-user configuration file.
[user]
name = TODO
email = TODO
[core]
autocrlf = input
[alias]
# I wish default logging was more useful.
glog = "log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all"
# some of this borrowed from
# https://gist.github.com/waingram/10b757b79e5b3a32f11f
# append a slash when autocompleting [symbolic links to] directories
set mark-directories on
set mark-symlinked-directories on
# be more intelligent when autocompleting by also looking at the text after
# the cursor.
set skip-completed-text on