Skip to content

Instantly share code, notes, and snippets.

Task
====
Table Name: task
Columns
-------
id
title: text
description: text

Keybase proof

I hereby claim:

  • I am joshmaker on github.
  • I am joshmaker (https://keybase.io/joshmaker) on keybase.
  • I have a public key ASC3lZ3xPgI8PBCbksd8sXTEcJV5cgtiah-Ylj_UzXLORgo

To claim this, I am signing this object:

@joshmaker
joshmaker / anaconda.json
Created May 6, 2016 12:48
Sublime anaconda settings
{
"pep8_max_line_length": 100,
"hide_snippets_on_completion": true,
"complete_parameters": true,
"complete_all_parameters": false
}
@joshmaker
joshmaker / user-preferences.json
Created May 6, 2016 12:46
Sublime preferences > settings - user
{
"anaconda_gutter_theme": "Bright",
"anaconda_linter_mark_style": "none",
"anaconda_linter_underlines": true,
"auto_complete_selector": "- source, comment",
"auto_complete_triggers":
[
{
"characters": ".",
"selector": "source.python"
- Package Controll
# Python
- Anaconda
# Javascript
- JSHint Gutter
# Version Controll
- GitGutter
@joshmaker
joshmaker / base_convert.py
Created April 14, 2014 17:52
Simple python utility function for performing base conversions
import string
corpus = string.digits + string.letters
def base_convert(num, base):
if base > len(corpus) or base < 2:
raise Exception('Please pick a base between 2 and %s' % len(corpus))
quotient, remainder = divmod(abs(num), base)
return "".join([
import MySQLdb
import datetime
connection = MySQLdb.connect(host="127.0.0.1", user="root", db="test_db")
date_published = datetime.datetime(year=2001, month=1, day=1)
one_hour = datetime.timedelta(hours=1)
title = "This is a sample title"
content = """