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/env python3 | |
import json | |
import os | |
from urllib.request import urlopen | |
URL = 'http://api.openweathermap.org/data/2.5/weather?id=2953398&lang=de' | |
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
# Migrate from sentry-comments to build in notes. | |
# | |
# See also https://github.com/andialbrecht/sentry-comments/issues/11 | |
# Especially when you're upgrading from Sentry 6.3. | |
# | |
# To run this script: | |
# sentry --config=your.conf.py shell | |
# >>> import migratecomments.py | |
# >>> migratecomments.migrate() | |
# |
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
### This happened because Django was imported from my global site-packages (Django 1.6) | |
python tests_v2/main.py | |
make: »uploadv2.pyz« ist bereits aktualisiert. | |
urls_tests.url_map: (ImportError('No module named defaults',), 'Traceback (most recent call last):\n File "tests_v2/main.py", line 85, in TestRunner\n rslt = m()\n File "/home/andi/devel/rietveldv2/tests_v2/support/test.py", line 76, in run\n new = self.test_func(*self.args, **self.kwargs)\n File "/home/andi/devel/rietveldv2/tests_v2/urls_tests.py", line 16, in url_map\n import urls\n File "/home/andi/devel/rietveldv2/urls.py", line 18, in <module>\n from django.conf.urls.defaults import *\nImportError: No module named defaults\n') | |
uploadv2/general_tests.archive_contents: 'OK' | |
cas/default_type_tests.default_map: (ImportError('No module named defaults',), 'Traceback (most recent call last):\n File "tests_v2/main.py", line 85, in TestRunner\n rslt = m()\n File "/home/andi/devel/rietveldv2/tests_v2/support/ |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>SQLFormat API Example</title> | |
<!-- Include JQuery library --> | |
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script> | |
</head> |
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/env python3 | |
# Usage: python3 tonart2spotify.py DATE | |
# ...where DATE is for example '2015-10-30' | |
import sys | |
import requests | |
from bs4 import BeautifulSoup | |
import spotipy |
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
-- Calculates some kind of hammond tuning | |
-- See https://electricdruid.net/technical-aspects-of-the-hammond-organ/ | |
local Ratios = { | |
{85, 104}, | |
{71, 82}, | |
{67, 73}, | |
{105, 108}, | |
{103, 100}, |
OlderNewer