Skip to content

Instantly share code, notes, and snippets.

Avatar

Matt Morrison MattDMo

View GitHub Profile
@MattDMo
MattDMo / Default.sublime-keymap
Created Nov 4, 2020
Sublime Text - Close all open windows
View Default.sublime-keymap
[
{ "keys": ["ctrl+alt+shift+w"], "command": "close_all_windows" },
]
@MattDMo
MattDMo / useful comments.md
Last active Oct 3, 2020
Useful comments and stuff for Stack Overflow
View useful comments.md

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

View IPython Crash Report 20160530.txt
***************************************************************************
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 Feb 11, 2016
Replacement Fortran - Modern.tmLanguage for Sublime Text 2
View Fortran - Modern.tmLanguage
<?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 Jan 21, 2016
Unicode-compatible XML syntax definition for Sublime Text 2/3
View XML.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>xml</string>
<string>tld</string>
<string>jsp</string>
<string>pt</string>
@MattDMo
MattDMo / Python34.sublime-project
Created Oct 14, 2015
Sublime project file with Anaconda
View Python34.sublime-project
{
"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 Dec 12, 2020
SublimeREPL ipy_repl.py for running IPython 4/Jupyter in Sublime Text
View ipy_repl.py
import os
import json
import socket
import threading
activate_this = os.environ.get("SUBLIMEREPL_ACTIVATE_THIS", None)
# turn off pager
os.environ["TERM"] = "emacs"
@MattDMo
MattDMo / Github Flavored Markdown.tmLanguage
Created Aug 29, 2014
Github Flavored Markdown.tmLanguage
View 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 Dec 17, 2013
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.
View EDN.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>comment</key>
<string>Symbol pattern : [a-zA-Z+!\-_?0-9*~#@'`/.$=]</string>
<key>fileTypes</key>
<array>
<string>edn</string>
</array>
@MattDMo
MattDMo / Ruby2.tmLanguage
Last active Dec 30, 2015
`Ruby.tmLanguage` from Sublime Text 3 Build 3056, modified to support `%i` literal notation. I changed the UUID (line 2852) so it can coexist along with the default version and changed the name on line 102 to Ruby2 so it can be easily selected from the syntax menu. Check the revisions to see where I made the changes. I don't know enough about Ru…
View Ruby2.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>comment</key>
<string>
TODO: unresolved issues
text:
"p &lt;&lt; end