Skip to content

Instantly share code, notes, and snippets.

View MattDMo's full-sized avatar

Matt Morrison MattDMo

View GitHub Profile
#fileformat=VCFv4.1
#fileDate=2019-03-01
#source=ClinVar
#reference=GRCh38
#ID=<Description="ClinVar Variation ID">
#INFO=<ID=AF_ESP,Number=1,Type=Float,Description="allele frequencies from GO-ESP">
#INFO=<ID=AF_EXAC,Number=1,Type=Float,Description="allele frequencies from ExAC">
#INFO=<ID=AF_TGP,Number=1,Type=Float,Description="allele frequencies from TGP">
#INFO=<ID=ALLELEID,Number=1,Type=Integer,Description="the ClinVar Allele ID">
#INFO=<ID=CLNDN,Number=.,Type=String,Description="ClinVar's preferred disease name for the concept specified by disease identifiers in CLNDISDB">
@MattDMo
MattDMo / Default.sublime-keymap
Created November 4, 2020 16:26
Sublime Text - Close all open windows
[
{ "keys": ["ctrl+alt+shift+w"], "command": "close_all_windows" },
]
@MattDMo
MattDMo / useful comments.md
Last active October 3, 2020 21:36
Useful comments and stuff for Stack Overflow

Intro

This is a collection of useful links and Markdown-formatted common comments for use on Stack Overflow and potentially other Stack Exchange sites as well. These comments should be used in the following ways:

  1. for questions which are unclear/borderline/irreproducible/no MCVE, to guide the OP to fix those issues
  2. for questions which are off-topic/subjective/too broad, to guide the OP to reformulate them, or at least understand why they're likely to get closed, so OPs know what edits they need to make to get them reopened
  3. for questions which have serious issues and are unfixable, to constructively explain why to the OP
  4. for answers that have problems and should be expanded, edited, or closed/deleted

Useful Links

***************************************************************************
IPython post-mortem report
{'commit_hash': 'c963f6b',
'commit_source': 'installation',
'default_encoding': 'UTF-8',
'ipython_path': '/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/IPython',
'ipython_version': '4.2.0',
'os_name': 'posix',
@MattDMo
MattDMo / Fortran - Modern.tmLanguage
Last active February 11, 2016 22:25
Replacement Fortran - Modern.tmLanguage for Sublime Text 2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>comment</key>
<string>Specificities of Fortran &gt;= 90</string>
<key>fileTypes</key>
<array>
<string>f90</string>
<string>F90</string>
@MattDMo
MattDMo / XML.tmLanguage
Created January 21, 2016 16:47
Unicode-compatible XML syntax definition for Sublime Text 2/3
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>xml</string>
<string>tld</string>
<string>jsp</string>
<string>pt</string>
@MattDMo
MattDMo / Python34.sublime-project
Created October 14, 2015 13:44
Sublime project file with Anaconda
{
"build_systems":
[
{
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"name": "Anaconda Python Builder",
"selector": "source.python",
"shell_cmd": "c:/Python34/python3.exe -u \"$file\""
}
],
@MattDMo
MattDMo / ipy_repl.py
Last active April 3, 2022 23:16
SublimeREPL ipy_repl.py for running IPython/Jupyter in Sublime Text
# from https://gist.github.com/MattDMo/6cb1dfbe8a124e1ca5af
import os
import json
import socket
import threading
activate_this = os.environ.get("SUBLIMEREPL_ACTIVATE_THIS", None)
# turn off pager
@MattDMo
MattDMo / Github Flavored Markdown.tmLanguage
Created August 29, 2014 23:14
Github Flavored Markdown.tmLanguage
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>mdown</string>
<string>markdown</string>
<string>markdn</string>
<string>md</string>
@MattDMo
MattDMo / EDN.tmLanguage
Created December 17, 2013 15:26
EDN (extensible data notation) .tmLanguage file for Sublime Text. Modified from Clojure.tmLanguage by changing suffix to edn, changing name, changing UUID, and adding `#all` to the includes at the beginning so that data do not need to be enclosed in parentheses.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>comment</key>
<string>Symbol pattern : [a-zA-Z+!\-_?0-9*~#@'`/.$=]</string>
<key>fileTypes</key>
<array>
<string>edn</string>
</array>