Skip to content

Instantly share code, notes, and snippets.

@jnnt
jnnt / main.py
Created September 23, 2018 21:13
Test1 created by jnnt - https://repl.it/@jnnt/Test1
class Something(object):
def __init__(self):
self.sth = 'asdf'
o = Something()
print(o.sth)
@jnnt
jnnt / rescuetime_export.py
Created January 5, 2016 20:57
Export script for RescueTime data. Saves user's activity data in a CSV file for every month between START_DATE and END_DATE, with the highest available resolution (minutes).
#!/usr/bin/env python
#-*- coding: utf-8 -*-
# RescueTime Data Export
import os
import requests
from datetime import date, datetime
from dateutil.rrule import rrule, MONTHLY
from dateutil.parser import parse