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
-- 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}, |
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
#!/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 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 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 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 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 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 -*- | |
"""Set up an interactive interpreter to have a underlying tulip loop. | |
The setup() function replaces the default loop policy, that starts a loop only | |
for the main thread, by a policy that has a single global loop available in any | |
thread. | |
The loop will be started when calling setup() in a background thread so that | |
the main thread could still be used by the interactive shell. |
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
application: your-app-id | |
version: 1 | |
runtime: python27 | |
api_version: 1 | |
threadsafe: true | |
handlers: | |
- url: /.* | |
script: demo.application |
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
#!/usr/bin/env python3 | |
# This script demonstrates a custom TreeModel (known as | |
# GenericTreeModel in PyGtk 2). | |
# | |
# Note: This script requires python-gi (pygobject) >= 3.4. | |
from gi.repository import GObject, Gtk | |
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
#!/bin/bash | |
# A hacky command for a common task: | |
# - stash away all changes in working branch | |
# - update master from SVN | |
# - rebase working branch on master | |
# - flush all committed changes from working branch to master | |
# - push them to SVN | |
# - update working branch again | |
# - patch in changes |
NewerOlder