Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am twharr on github.
  • I am twharr (https://keybase.io/twharr) on keybase.
  • I have a public key whose fingerprint is B160 1119 1003 244B 98BC 24F8 60CE 2C85 676C D62E

To claim this, I am signing this object:

@TWHarr
TWHarr / gist:2c47a3cc7808af5bb9dc
Last active August 29, 2015 14:25
peewee question
Current table:
https://www.evernote.com/shard/s20/sh/a801d9e3-61d3-4cca-a489-1dccab0933ca/072b3879bca910d2
------
This works:
def get_last():
for item in (macrocsat.select()):
print item.ticket
get_last()
In requirements.json:
{
"ticket_fields": {
"duplicate_macro": {
"type": "checkbox",
"title": "Duplicate Macro Sent"
}
}
}
# -*- coding: utf-8 -*-
import json
import webbrowser
import console
import sys
import os
import datetime
import urllib
console.clear()
@TWHarr
TWHarr / push()
Created December 3, 2013 21:50
push() flash card
// push() is an array method used to add an element or elements to the end of an array
// push() is used with dot notation, and takes arguments for what to add
// SYNTAX
var array = [];
array.push("hi");
console.log(array); //yields ['hi']
array.push(1, "more", "thing");
console.log(array); // yields ['hi', 1, 'more', 'thing']