This file contains hidden or 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
| CREATE MATERIALIZED VIEW users_30m AS | |
| SELECT | |
| a.exchange_id, | |
| COUNT(DISTINCT a.trader_id) as users, | |
| to_timestamp( | |
| floor( | |
| ( | |
| extract( | |
| 'epoch' | |
| from |
This file contains hidden or 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
| /* Copy to ~/Library/Application\ Support/Firefox/Profiles/*.default/chrome/ */ | |
| #TabsToolbar { | |
| visibility: collapse !important; | |
| } | |
| #TabsToolbar, #sidebar-header { | |
| visibility: collapse !important; | |
| } |
This file contains hidden or 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
| #!/bin/python3 | |
| import datetime, re | |
| def datediff(date, diff): | |
| sign = 1 | |
| datere = '((?P<sign>[+-])?)(?:(?P<Y>\d+)Y)?(?:(?P<M>\d+)M)?(?:(?P<D>\d+)D)?(?:(?P<h>\d+)h)?(?:(?P<m>\d+)m)?(?:(?P<s>\d+)s)?' | |
| rx = re.match(datere, diff) | |
| if rx.group('sign') == '-': | |
| sign = -1 | |
| if rx.group('Y'): | |
| date += sign * datetime.timedelta(days = (356 * int(rx.group('Y')))) |
This file contains hidden or 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
| #!/usr/bin/python -u | |
| import sys, os, time | |
| try: | |
| import pylast, taglib | |
| except: | |
| print("Please install python-pylast and python-pytaglib first.", file=sys.stderr) | |
| API_KEY = "b01fb9eac7dc07d6712dee8986af73ce" | |
| API_SECRET = "887363c94049af9f82c1dd9ea76e0c12" |