Name | Version | License | URL |
---|---|---|---|
align-text | 0.1.4 | MIT | git://github.com/jonschlinkert/align-text.git |
amdefine | 1.0.0 | BSD-3-Clause AND MIT | https://github.com/jrburke/amdefine.git |
async | 1.5.2 | MIT | https://github.com/caolan/async.git |
async | 0.2.10 | MIT | https://github.com/caolan/async.git |
balanced-match | 0.4.2 | MIT | git://github.com/juliangruber/balanced-match.git |
brace-expansion | 1.1.6 | MIT | git://github.com/juliangruber/brace-expansion.git |
camelcase | 1.2.1 | MIT |
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
# Deterministic Pseudo-Random Number Generator Seeding | |
# ------------------------------------------------------------------------------ | |
# A helper script for setting a consistent deterministic PRNG seed for third- | |
# party libraries, supporting more reproducible experiment execution. | |
# | |
# Setting a deterministic seed: | |
# | |
# - By an environment variable: `PYTHON_SEED=12345 python script.py` | |
# - By calling `randomness.reseed(12345)` | |
# |
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
def f(x,s): | |
start = 44 | |
a = 0 | |
print(a) | |
if x==1: | |
start = int(s[24:29]) | |
s = list(s[:24]) + list('{:>5d}'.format(start+11)) + list(s[29:start]) + list(' a += 1\n') + list(s[start:]) | |
s = ''.join(s) | |
return s |
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
# Stocks Data Assembly and Preprocessing | |
# ------------------------------------------------------------------------------ | |
import os | |
import csv | |
import time | |
from pathlib import Path | |
from functools import reduce | |
import pandas as pd | |
from alpha_vantage.timeseries import TimeSeries | |
from argparse_prompt import PromptParser |
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
.cpt-rank-stats .cpt-rank-right-circle { | |
background: #bebebe; | |
height: 90px; | |
width : 45px; | |
border-radius: 0 90px 90x 0; | |
margin-left: -4px; | |
overflow: hidden; | |
vertical-align: top; |
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
function parse_git_branch () { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
RED="\[\033[0;31m\]" | |
YELLOW="\[\033[0;33m\]" | |
GREEN="\[\033[0;32m\]" | |
GRAY="\[\033[1;30m\]" | |
LIGHT_GRAY="\[\033[0;37m\]" | |
CYAN="\[\033[0;36m\]" |
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
import numpy as np | |
from scipy.stats import unitary_group | |
def eigenterpolate(U0, U1, s): | |
"""Interpolates between two matrices.""" | |
return U0 * eigenpow(U0.H * U1, s) | |
def eigenpow(M, t): | |
"""Raises a matrix to a power.""" | |
return eigenlift(lambda b: b**t, M) |
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
using UnityEngine; | |
namespace Islands { | |
[ExecuteInEditMode] | |
[RequireComponent(typeof(SpriteRenderer))] | |
public class DynamicDepthSort: MonoBehaviour { | |
/// <summary> | |
/// A reference to the game object’s sprite renderer component. | |
/// </summary> |
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
function twitterify(text) { | |
return text | |
// URLS | |
.replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig, | |
"<a href='$1'>$1</a>") | |
// Hashtags | |
.replace(/\B#([^ ]+)\b/ig, | |
"<a href='http://twitter.com/#!/search?q=%23$1'>#$1</a>") |
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
exports.names = ['JAMES', | |
'JOHN', | |
'ROBERT', | |
'MICHAEL', | |
'WILLIAM', | |
'DAVID', | |
'RICHARD', | |
'CHARLES', | |
'JOSEPH', | |
'THOMAS', |
NewerOlder