Skip to content

Instantly share code, notes, and snippets.

@ElDeveloper
ElDeveloper / gist:4206016
Last active October 13, 2015 13:57
Current git branch in your bash prompt

Show the time, the current folder where you are working and the current branch if working on a git repository. Output looks like 19:41:40 Documents@master$ . If using an xterm-256 terminal emulator, hour should be green, cwd white and the branch red.

function egit (){                                                               
    function get_git_branch () {                                                
        command git rev-parse --abbrev-ref HEAD 2> /dev/null                    
    }                                                                           
    # git specific usage for branching                                          
    function branch_separator () {                                              
        if [[ -n $(get_git_branch) ]]                                           
@ElDeveloper
ElDeveloper / core_diversity_analyses
Created February 18, 2013 16:58
compy output core diversity analyses.
yova1074:~$ cat TEST_CORE0.*
E...E
======================================================================
ERROR: test_run_core_diversity_analyses (__main__.CoreDiversityAnalysesTests)
run_core_diversity_analyses functions with categories
----------------------------------------------------------------------
Traceback (most recent call last):
File "test_core_diversity_analyses.py", line 128, in test_run_core_diversity_analyses
status_update_callback=no_status_updates)
File "/Users/yova1074/qiime_software/qiime/qiime/core_diversity_analyses.py", line 296, in run_core_diversity_analyses
@ElDeveloper
ElDeveloper / gist:5577772
Created May 14, 2013 17:23
QIIME 1.7.0 stats.

Github stats

GitHub stats (generated with Matplotlib's github_stats.py) for 2012/12/18 - 2013/05/14 (tag: 1.6.0)

These lists are automatically generated, and may be incomplete or contain duplicates.

The following 21 authors contributed 988 commits.

  • Adam Robbins-Pianka
LOG ======= File Transfer statistics =======
LOG ------- Source statistics -------
LOG Source argument scans attempted : 917
LOG - Source argument scans completed : 917
LOG Source path scans attempted : 917
LOG - Source path scans failed : 0
LOG - Source path scans skipped since irregular : 0
LOG - Source path scans excluded : 0
LOG - Source directory scans completed : 0
LOG - Source file scans completed : 917
@ElDeveloper
ElDeveloper / Emperor 0.9.1
Created October 22, 2013 05:21
Pull requests and issues closed in the development cycle for emperor between 0.9.0 and 0.9.1.
.. _github-stats:
Github stats
============
GitHub stats for 2013/05/14 - 2013/10/21 (tag: 0.9.0)
These lists are automatically generated, and may be incomplete or contain duplicates.
The following 4 authors contributed 220 commits.
# qiime_config
# WARNING: DO NOT EDIT OR DELETE Qiime/qiime/support_files/qiime_config
# To overwrite defaults, copy this file to $HOME/.qiime_config or a full path
# specified by $QIIME_CONFIG_FP and edit that copy of the file.
# Find details on this file at http://qiime.org/install/qiime_config.html
cluster_jobs_fp
python_exe_fp python
working_dir
blastmat_dir
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
>>> from skbio.core.tree import TreeNode
>>> tr = TreeNode.from_newick("(((A:.1,B:1.2)C:.6,(D:.9,E:.6)F:.9)"
... "G:2.4,(H:.4,I:.5)J:1.3)K;")
>>> tdbl = tr.descending_branchlength()
>>> sdbl = tr.descending_branchlength(['A','E'])
>>> print tdbl, sdbl
8.9 4.6
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ElDeveloper
ElDeveloper / bell_labs.md
Last active August 29, 2015 14:03
The idea factory bell labs and the great age of american innovation - Jon Gertner

Notes from: The Idea Factory: Bell Labs and the Great Age of American Innovation

Theres is always a larger volume of work that is worth doing than can be done currently - Mervin Kelly.

"One policy, one system, universal service." Theodore Vail.

And so Townes sat on the Mexico City train in third class in the summer of 1939, "on slatted wood benches that were non too comfortable, and played a Nazi's accordion and sang songs with Mexican fruit pickers on their way home from the fields in the United States." He felt nervous about eating the local food at the stops--mostly he was afraid of dysentery--and for two days he lived on bottled beer.

"Science had no true owners, only partcipants and contributors" - Mervin Kelly.