Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save Gamblt/a7f89e3458fb951eb295a1206da606ee to your computer and use it in GitHub Desktop.

Select an option

Save Gamblt/a7f89e3458fb951eb295a1206da606ee to your computer and use it in GitHub Desktop.

Revisions

  1. @dwmkerr dwmkerr revised this gist Apr 26, 2016. 1 changed file with 9 additions and 1 deletion.
    10 changes: 9 additions & 1 deletion setup-sublime3-for-angular2.md
    Original file line number Diff line number Diff line change
    @@ -20,4 +20,12 @@ import urllib.request,os,hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc5
    - Cmd+P
    - Install Package
    - `TypeScript`
    - Restart
    - Restart

    ## Step 5: Configure TypeScript tabs
    - Preferences > Settings > Syntax Specific (User)
    ```json
    {
    "tab_size": 2,
    "translate_tabs_to_spaces": true
    }
  2. @dwmkerr dwmkerr revised this gist Apr 25, 2016. 1 changed file with 8 additions and 4 deletions.
    12 changes: 8 additions & 4 deletions setup-sublime3-for-angular2.md
    Original file line number Diff line number Diff line change
    @@ -1,18 +1,22 @@
    # Step 1: Download Sublime Text 3
    # Quick Setup for Sublime Text 3 for Angular 2

    Easy to remember, easy to forget.

    ## Step 1: Download Sublime Text 3
    [Sublime Text 3 Download](https://www.sublimetext.com/3)

    # Step 2: Create a bash shortcut
    ## Step 2: Create a bash shortcut
    It's nice to be able to run `subl` in a terminal.
    ```
    ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime
    ```

    # Step 3: Install Package Manager
    ## Step 3: Install Package Manager
    Hit Ctrl+` to open the terminal and execute the python code below:
    ```python
    import urllib.request,os,hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc59f460fa1548d1514676163dafc88'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)
    ```
    # Step 4: Add the Typescript Package
    ## Step 4: Add the Typescript Package
    - Cmd+P
    - Install Package
    - `TypeScript`
  3. @dwmkerr dwmkerr revised this gist Apr 25, 2016. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion setup-sublime3-for-angular2.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,8 @@
    # Step 1: Download Sublime Text 3
    [Sublime Text 3 Download](https://www.sublimetext.com/3)

    # Step 2: Make a shortcut to the app so you can run 'subl' in a terminal
    # Step 2: Create a bash shortcut
    It's nice to be able to run `subl` in a terminal.
    ```
    ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime
    ```
  4. @dwmkerr dwmkerr renamed this gist Apr 25, 2016. 1 changed file with 11 additions and 5 deletions.
    16 changes: 11 additions & 5 deletions gistfile1.txt → setup-sublime3-for-angular2.md
    Original file line number Diff line number Diff line change
    @@ -1,12 +1,18 @@
    # Step 1: Download Sublime Text 3
    https://www.sublimetext.com/3
    [Sublime Text 3 Download](https://www.sublimetext.com/3)

    # Step 2: Make a shortcut to the app so you can run 'subl' in a terminal
    ```
    ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime
    ```

    # Step 3: If you haven't done so already, make sure you have package manager installed.
    # Step 3: Install Package Manager
    Hit Ctrl+` to open the terminal and execute the python code below:
    ```python
    import urllib.request,os,hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc59f460fa1548d1514676163dafc88'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)

    # Step 4: To get setup with TypeScipt, use Package Control to install:
    TypeScript
    ```
    # Step 4: Add the Typescript Package
    - Cmd+P
    - Install Package
    - `TypeScript`
    - Restart
  5. @dwmkerr dwmkerr revised this gist Apr 25, 2016. 2 changed files with 12 additions and 12 deletions.
    12 changes: 12 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    # Step 1: Download Sublime Text 3
    https://www.sublimetext.com/3

    # Step 2: Make a shortcut to the app so you can run 'subl' in a terminal
    ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime

    # Step 3: If you haven't done so already, make sure you have package manager installed.
    Hit Ctrl+` to open the terminal and execute the python code below:
    import urllib.request,os,hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc59f460fa1548d1514676163dafc88'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)

    # Step 4: To get setup with TypeScipt, use Package Control to install:
    TypeScript
    12 changes: 0 additions & 12 deletions setup-sublime.sh
    Original file line number Diff line number Diff line change
    @@ -1,12 +0,0 @@
    # Step 1: Download Sublime Text 3
    # https://www.sublimetext.com/3

    # Step 2: Make a shortcut to the app so you can run 'subl' in a terminal
    ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime

    # Step 3: If you haven't done so already, make sure you have package manager installed.
    # Hit Ctrl+` to open the terminal and execute the python code below:
    # import urllib.request,os,hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc59f460fa1548d1514676163dafc88'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)

    # Step 4: To get setup with TypeScipt, use Package Control to install:
    # TypeScript
  6. @dwmkerr dwmkerr created this gist Apr 25, 2016.
    12 changes: 12 additions & 0 deletions setup-sublime.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    # Step 1: Download Sublime Text 3
    # https://www.sublimetext.com/3

    # Step 2: Make a shortcut to the app so you can run 'subl' in a terminal
    ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime

    # Step 3: If you haven't done so already, make sure you have package manager installed.
    # Hit Ctrl+` to open the terminal and execute the python code below:
    # import urllib.request,os,hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc59f460fa1548d1514676163dafc88'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)

    # Step 4: To get setup with TypeScipt, use Package Control to install:
    # TypeScript