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 / 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" />
@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 / 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()