This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Created on Mon May 09 19:58:56 2016 | |
@author: Allison | |
In SQLite, to select for a certain month, do this: | |
select * from collection where strftime('%m', date) = strftime('%m', julianday('2016-03-01')); | |
select games.name, collection.owned from games join collection on games.bggid = collection.bggid order by owned desc limit 10; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from boardgamegeek import BoardGameGeek | |
import sqlite3, unicodedata | |
##### Functions | |
def numtopgames(usr): | |
### Number of games in top X for specific user | |
print "Top X Games:" | |
top = raw_input() | |
query = """ SELECT games.bggid FROM games |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Created on Mon May 09 19:58:56 2016 | |
@author: Allison | |
In SQLite, to select for a certain month, do this: | |
select * from collection where strftime('%m', date) = strftime('%m', julianday('2016-03-01')); | |
select games.name, collection.owned from games join collection on games.bggid = collection.bggid order by owned desc limit 10; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script generates a list of all of the new games you play in a month with a specific person (your partner). | |
# An example output is available here: https://boardgamegeek.com/geeklist/201514/item/4608920#item4608920 | |
# More information on this script can be found at www.techtrek.io | |
from boardgamegeek import BoardGameGeek | |
from collections import Counter | |
import datetime, unicodedata | |
def strip_accents(s): | |
return ''.join(c for c in unicodedata.normalize('NFD', s) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Created on Thu Apr 21 19:11:44 2016 | |
@author: Allison | |
""" | |
import numpy as np | |
from sklearn.datasets import load_iris | |
from sklearn import tree |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from boardgamegeek import BoardGameGeek | |
from datetime import datetime | |
import sqlite3, re, unicodedata | |
# # # Notes: | |
# This script pulls board game play data from www.boardgamegeek.com and places it in a SQLite database. | |
# To use it: | |
# 1. Save this file as a .py file in the folder where you would like the database to be created | |
# 2. Set the board game geek (BGG) username variable, bgg_username, to be the username of the | |
# BGG profile with which you would like to colect the data. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import glob | |
from PIL import Image, ImageDraw, ImageFont, PdfImagePlugin, _imaging | |
from math import ceil | |
from pyPdf import PdfFileReader,PdfFileWriter | |
import os | |
from datetime import datetime | |
import tkFileDialog | |
startTime = datetime.now() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//****************************************************************************** | |
//Software License Agreement | |
// | |
//The software supplied herewith by Microchip Technology | |
//Incorporated (the "Company") is intended and supplied to you, the | |
//Companyâs customer, for use solely and exclusively on Microchip | |
//products. The software is owned by the Company and/or its supplier, | |
//and is protected under applicable copyright laws. All rights are | |
//reserved. Any use in violation of the foregoing restrictions may | |
//subject the user to criminal sanctions under applicable laws, as |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
import ui | |
from random import shuffle | |
from datetime import datetime | |
global count | |
count = [0] | |
def new_game(sender): | |
global nums, startTime, cards, final |
NewerOlder