Skip to content

Instantly share code, notes, and snippets.

View jpr71's full-sized avatar

Joshua Roberts jpr71

View GitHub Profile
import datetime
current_time = datetime.datetime.now()
def nine_to_five_weekday(time):
if time.weekday() in range(0,5) and time.hour in range(9,17):
return 20
else:
return 80
@jpr71
jpr71 / Region db
Last active November 24, 2015 19:59
import gzip
import os.path
from peewee import *
from subprocess import check_output
from collections import OrderedDict
import re
build = "WS245"
@jpr71
jpr71 / Preferences.sublime-settings
Created November 11, 2015 17:12
Sublime Settings
{
"auto_complete_commit_on_tab": true,
"caret_style": "solid",
"color_scheme": "Packages/Colorsublime - Themes/Abyss.tmTheme",
"draw_white_space": "all",
"enable_tab_scrolling": false,
"ensure_newline_at_eof_on_save": false,
"file_exclude_patterns":
[
"*.pyc",