As configured in my dotfiles.
start new:
tmux
start new with session name:
# -*- coding: utf-8 -*- | |
# Copied from https://bitbucket.org/woadwarrior/trie/src/0ca6aab259b2/python/tst.py | |
_SENTINEL = () | |
class TST(object) : | |
__slots__ = ('splitchar','l','m','r','v') | |
def __init__( self, ch=None ) : | |
self.splitchar = ch |
As configured in my dotfiles.
start new:
tmux
start new with session name:
from scipy.stats import beta | |
def binom_interval(success, total, confint=0.95): | |
quantile = (1 - confint) / 2. | |
lower = beta.ppf(quantile, success, total - success + 1) | |
upper = beta.ppf(1 - quantile, success + 1, total - success) | |
return (lower, upper) |
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
def splitDataFrameList(df,target_column,separator): | |
''' df = dataframe to split, | |
target_column = the column containing the values to split | |
separator = the symbol used to perform the split | |
returns: a dataframe with each entry for the target column separated, with each element moved into a new row. | |
The values in the other columns are duplicated across the newly divided rows. | |
''' | |
def splitListToRows(row,row_accumulator,target_column,separator): | |
split_row = row[target_column].split(separator) |
""" | |
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
BSD License | |
""" | |
import numpy as np | |
# data I/O | |
data = open('input.txt', 'r').read() # should be simple plain text file | |
chars = list(set(data)) | |
data_size, vocab_size = len(data), len(chars) |
import pygame | |
import random | |
# Define some colors | |
BLACK = (0, 0, 0) | |
WHITE = (255, 255, 255) | |
GREEN = (0, 255, 0) | |
RED = (255, 0, 0) | |
BLUE = (0, 0, 255) |
sudo rm -fr /Library/Java/JavaVirtualMachines/jdk-9.jdk/ | |
sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin | |
sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane | |