Skip to content

Instantly share code, notes, and snippets.

View Get cycles from undirected graph.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@willycs40
willycs40 / buttons.py
Last active Feb 14, 2016
suggested button code
View buttons.py
class Buttons(list):
def __init__(self):
pass
# Add a new button to this list of buttons, but also
# return the new button, so we can capture a handle to it
# in the calling module.
def add(self, name, pin_number):
View api.py
#!/usr/bin/env python
# encoding: utf-8
# This code is borrowed, with edits for python 3, from https://github.com/scraperwiki/zoopla
# License: https://github.com/scraperwiki/zoopla/blob/master/LICENCE
import requests
import requests_cache
from urllib.parse import urlencode
import logging
L = logging.getLogger(__name__)
View eBay Experimentation-Public.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@willycs40
willycs40 / Glastonbury Sampler Playlist.ipynb
Created May 26, 2015
Create Glastonbury Sampler Playlist
View Glastonbury Sampler Playlist.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Photo Manual Merge.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@willycs40
willycs40 / Weather_Effect.ipynb
Last active Aug 29, 2015
Looking at the Effects of Weather
View Weather_Effect.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@willycs40
willycs40 / Simulate GPS Problem 2.ipynb
Last active Aug 29, 2015
Simulate GPS Grid Problems
View Simulate GPS Problem 2.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Get Data From MS SQL.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@willycs40
willycs40 / sessionize.sql
Created Apr 15, 2015
Break Timeseries into Sessions
View sessionize.sql
--Test Data
CREATE TABLE #Log
( UserID int, [Timestamp] datetime)
INSERT INTO #Log
VALUES
(1, '2014-10-26 10:51:18'), (1, '2014-10-26 10:52:18'), (1, '2014-10-26 10:55:18'), (1, '2014-10-26 10:59:18'), (1, '2014-10-26 15:01:18'), (1, '2014-10-26 15:01:21'), (1, '2014-10-27 21:22:19'),
(2, '2014-10-15 12:19:01'), (2, '2014-10-15 12:19:12'), (2, '2014-10-15 12:19:45'), (2, '2014-10-15 12:20:03'), (2, '2014-10-17 14:55:13'), (2, '2014-10-17 14:55:19'),
(3, '2014-10-22 14:55:19')