π
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| import logging.config | |
| logging_config = { | |
| 'version': 1, | |
| 'formatters': { | |
| 'standard': { | |
| 'format': '%(asctime)s - %(name)s - %(levelname)s - %(message)s' | |
| } | |
| }, | |
| 'handlers': { |
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
| """ Raymond Hettinger's Structural Pattern Matching Toolkit | |
| Problems Solved | |
| --------------- | |
| 1) Replace case clause constants with named constants. | |
| x == PI |
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
| { | |
| "version": "2.0.0", | |
| "tasks": [ | |
| { | |
| "label": "JupyText Sync", | |
| "type": "shell", | |
| "command": "${command:python.interpreterPath} -m jupytext --sync ${file}", | |
| "group": { | |
| "kind": "build", | |
| "isDefault": true |
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
| https://www.oclc.org/research/activities/oai2page.html |
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
| /* | |
| YOU don't want to run OLS on a log-transformed dependent | |
| variable. After all, you already explained the clear and | |
| well-justified benefits in your methods section. You had | |
| hoped that each reviewer would consider this, but what's | |
| to be done when Reviewer 2 raises their very extra valid | |
| concerns? Modified Park test and GLM be damned, it seems. | |
| Anyway, now Stata just needs to calculate the comparable | |
| marginal effects, because there's no way you're going to |
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
| import numpy as np | |
| from scipy.io.wavfile import write | |
| from math import pi, sin, floor | |
| from fractions import gcd | |
| from UtilityFunctions import * | |
| class SoundGenerator(): | |
| # Constants | |
| def __init__(self, waveType = "Sine", frequency = 500, amplitude = 1.0, duration = 5): | |
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
| -----BEGIN PGP PUBLIC KEY BLOCK----- | |
| mQINBF1cV0gBEACT+wlV7LmXpwO53lqbiD0zRsHsQ/FnG3Pryd5Kl82jrlr8rSwj | |
| 828NfNIA4FRLEZyvvCmRI8mOnHkrulAh7d9SeeKWEuhy6eAQA8xUNng8cAu2ew0+ | |
| /+QcSXGe5jCr9HG0bB1UISUaC4bDG4TTzjOzvZ5H3trQcjTp4y9yyqPLLvllysD8 | |
| O5mHfWCNJ33l2AOygn7Ru3Y5bxvBdkw03fmSQ09IZ3bLKGuvyCrSakQzNAfLU6Wj | |
| yzhmSTkFD829MsgkuIVnerz1RCr7ylwmt5QBD4ZDZByz+srTqDiCu0zdq8kFTEwu | |
| HypRSDQ01oGf4IpmCs+dqJNr4PEyOYCIvhS0sy6Luueu3u8APRF5nyrJvcvp068J | |
| N6fNzdk3XGYEFyzsoSg/icT2EzgkHz5BY/JPymuKJupYdnUYrLNg2CMX39cL33/Z | |
| N/yRXTxpvcAht8nDUSeSxh+SZGOIO4fV/fxqEtRxdSJ4z/ZKxNhE8LZT8pzmSnoW |
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 python | |
| # -*- coding: utf-8 -*- | |
| import os | |
| import csv | |
| import tempfile | |
| import time | |
| import logging | |
| import optparse | |
| import itertools |