Skip to content

Instantly share code, notes, and snippets.

import datetime
tdt = datetime.datetime.strptime('2:30.00', '%M:%S.%f')
total = 60 * tdt.minute + (tdt.second + (tdt.microsecond / 1000000.0))
done = False
count = 0
times = []
splits = []
while not done:
split = input('split: ')
import datetime
done = False
count = 0
times = []
splits = []
while not done:
split = input('split: ')
if split == '':
done = True
@jdkato
jdkato / pypi-release-checklist.md
Created November 16, 2016 13:59 — forked from audreyfeldroy/pypi-release-checklist.md
My PyPI Release Checklist
  • Update HISTORY.rst
  • Commit the changes:
git add HISTORY.rst
git commit -m "Changelog for upcoming release 0.1.1."
  • Update version number (can also be minor or major)
bumpversion patch
var walk = require('walk')
var fs = require('fs')
var detectLang = require('lang-detector')
var supported = [
'javascript', 'c', 'c++', 'python', 'java', 'html', 'css', 'ruby', 'go', 'php'
]
var ext2Lang = {
'csharp': 'C#', 'gcc': 'C', 'gpp': 'C++', 'ghc': 'Haskell', 'jruby': 'Ruby',
'python3': 'Python', 'hack': 'PHP', 'yarv': 'Ruby', 'C-sharp': 'C#'
}
import time
import subprocess
import os
supported = [
'haskell', 'python', 'ruby', 'java', 'c#', 'c++', 'javascript', 'scala',
'pascal', 'go', 'c', 'php', 'perl', 'matlab', 'clojure', 'visual basic'
]
folder = '' # path to benchmark data (https://github.com/nbraud/benchmarksgame/tree/master/bench)
name2ext = {
#Copyright (c) 2011 David Klein and Simon Weber
#Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
import sys
from identifytraits import *
import commentIdentify
#gets a list of all the languages known so far
def getLanguages():
import time
import os
from cypher import identify
from dev import LANG_INFO
supported = [s.lower() for s in LANG_INFO.keys()]
data = '' # path to benchmark data (https://github.com/nbraud/benchmarksgame/tree/master/bench)
name2ext = {
'csharp': 'C#', 'gcc': 'C', 'gpp': 'C++', 'ghc': 'Haskell',