Skip to content

Instantly share code, notes, and snippets.

@puzzledqs
Last active August 29, 2015 13:56
Show Gist options
  • Save puzzledqs/635ce150414ebed0cad0 to your computer and use it in GitHub Desktop.
Save puzzledqs/635ce150414ebed0cad0 to your computer and use it in GitHub Desktop.

Some useful infomation

  1. How to use markdown

    https://github.com/adam-p/markdown-here/wiki/Markdown-Here-Cheatsheet

  2. Setup Sublime Text 2 (Ubuntu: http://www.technoreply.com/how-to-install-sublime-text-2-on-ubuntu-12-04-unity/)

  3. Binding file extensions in Sublime Text

    Go to Packages -> [Language](e.g. Matlab) -> .tmLanguage -> fileTypes

  4. Setting python path for SublimeREPL

    Go to /Packages/SublimeREPL/config/Python/Main.sublime-menu, modify the following code as needed,

    {"command": "repl_open",
     "caption": "Python - RUN current file",
     "id": "repl_python_run",
     "mnemonic": "d",
     "args": {
        "type": "subprocess",
        "encoding": "utf8",
        "cmd": ["C:\\Users\\Andy\\Documents\\_Main\\M-Stick Backups\\08.07.13\\Computing\\Python Portable\\Portable Python 2.7.3.1\\App\\python.exe", "-u", "$file_basename"],
        "cwd": "$file_path",
        "syntax": "Packages/Python/Python.tmLanguage",
        "external_id": "python",
        "extend_env": {"PYTHONIOENCODING": "utf-8"}
        }

    Alternatively, Go to Settings -> Package Settings -> SublimeREPL -> Settings - User, and add the following entry,

    {
    "default_extend_env": {"PATH": "[YOUR PYTHON PATH]:{PATH}"}
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment