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
# from collections import namedtuple | |
# import altair as alt | |
# import math | |
# import pandas as pd | |
import streamlit as st | |
""" | |
# Welcome to Streamlit! | |
""" |
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
# from requirements.txt | |
## Nice PubMed XML file parser; @42c8ccc is at version 0.3.0 | |
#git+git://github.com/titipata/pubmed_parser.git@42c8ccc | |
## library for processing XML and HTML in the Python language, https://lxml.de/ | |
#lxml | |
from info import ArticleInfo | |
from info import AuthorInfo | |
from pprint import pprint |
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 code; code.interact(local=dict(globals(), **locals())) |
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
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
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
line = '1,2,3,4,5,"He said "thanks" to the cashier"' | |
p line | |
# "1,2,3,4,5,\"He said \"thanks\" to the cashier\"" | |
parts = line.split(",", 6) | |
p parts | |
# ["1", "2", "3", "4", "5", "\"He said \"thanks\" to the cashier\""] | |
text = parts[5] | |
p text |
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
package main | |
import ( | |
"bytes" | |
"fmt" | |
"io" | |
"os" | |
) |
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
tf history /collection:http://tfs.molina.mhc:8080/tfs/HSS/ $/HSS /recursive /v:D11/09/2017~D11/09/2018 /noprompt | |
Changeset User Date Comment | |
--------- ----------------- ---------- | |
212041 Pawar, Ganeshrao 11/9/2018 CPL Vendor | |
212040 TFSSERVICE 11/9/2018 Updating file | |
212039 TFSSERVICE 11/9/2018 Updating file | |
212038 TFSSERVICE 11/9/2018 Updating file | |
212037 Kottam, Archana 11/9/2018 added checkpoint to avoid transaction log full error |
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
find . -maxdepth 1 -exec echo {} \; -exec sh -c "find {} | wc -l " \; |
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 python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Tue Aug 8 12:33:35 2017 | |
@author: paul | |
""" | |
from math import * | |
from pylab import plot,show,suptitle,xlabel,ylabel,scatter,grid,legend,title,figure,ylim,xlim,subplots |
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
// Reference: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/ | |
// See also: http://www.paulund.co.uk/change-url-of-git-repository | |
// These are steps for moving a git repo from Bitbucket to TFS | |
// 1. add your SSH keys to the TFS project (google for a guide) | |
// 2. follow the steps below | |
git clone [email protected]:<bitbucket_user>/<repo_name>.git | |
cd repo_name | |
git remote rename origin bitbucket |
NewerOlder