Skip to content

Instantly share code, notes, and snippets.

@jeffreysbrother
Last active November 8, 2016 19:38
Show Gist options
  • Select an option

  • Save jeffreysbrother/e2cf080e66b99c61b87357b8c2fd2e78 to your computer and use it in GitHub Desktop.

Select an option

Save jeffreysbrother/e2cf080e66b99c61b87357b8c2fd2e78 to your computer and use it in GitHub Desktop.

Revisions

  1. jeffreysbrother revised this gist Nov 8, 2016. 1 changed file with 35 additions and 0 deletions.
    35 changes: 35 additions & 0 deletions Preferences.sublime-settings-2
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,35 @@
    {
    "always_show_minimap_viewport": true,
    "color_scheme": "Packages/Boxy Theme/schemes/Boxy Tomorrow.tmTheme",
    "font_face": "Fira Code",
    "font_size": 11,
    "hot_exit": false,
    "ignored_packages":
    [
    "Vintage"
    ],
    "indent_guide_options":
    [
    "draw_normal",
    "draw_active"
    ],
    "line_padding_bottom": 3,
    "line_padding_top": 3,
    "material_theme_accent_scrollbars": true,
    "material_theme_arrow_folders": true,
    "material_theme_big_fileicons": true,
    "material_theme_bright_scrollbars": true,
    "material_theme_bullet_tree_indicator": true,
    "material_theme_compact_sidebar": true,
    "material_theme_contrast_mode": true,
    "material_theme_disable_folder_animation": true,
    "material_theme_panel_separator": true,
    "material_theme_small_statusbar": true,
    "material_theme_small_tab": true,
    "material_theme_tabs_separator": true,
    "overlay_scroll_bars": "enabled",
    "remember_open_files": false,
    "theme": "Boxy Tomorrow.sublime-theme",
    "use_simple_full_screen": true,
    "word_wrap": "true"
    }
  2. jeffreysbrother revised this gist Nov 4, 2016. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions Preferences.sublime-settings
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    {
    "always_show_minimap_viewport": true,
    "color_scheme": "Packages/Colorsublime - Themes/Afterglow.tmTheme",
    "color_scheme": "Packages/Colorsublime - Themes/Boron.tmTheme",
    "font_face": "Fira Code",
    "font_size": 15,
    "font_size": 11,
    "hot_exit": false,
    "ignored_packages":
    [
  3. jeffreysbrother revised this gist Nov 4, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions sublime.md
    Original file line number Diff line number Diff line change
    @@ -7,6 +7,7 @@
    * Install PackageResourceViewer (with package control). I think this allows us to extract the source code of some installed package so that subsequent updates to the package will not override our customizations.
    * Install [AdvancedNewFile](https://github.com/skuroda/Sublime-AdvancedNewFile) using package control. Key bindings can be configured by going here: Preferences > Package Settings > AdvancedNewFile > Key Bindings -- User
    * Install a blade syntax highlighter
    * Install GitGutter (not sure if I like this yet)

    ###Sublime Text 3 Shortcuts

  4. jeffreysbrother revised this gist Nov 3, 2016. 1 changed file with 11 additions and 11 deletions.
    22 changes: 11 additions & 11 deletions Preferences.sublime-settings
    Original file line number Diff line number Diff line change
    @@ -1,16 +1,9 @@
    {
    "color_scheme": "Packages/Colorsublime - Themes/Boron.tmTheme",
    "theme": "Material-Theme.sublime-theme",
    "font_face": "Fira Code",
    "font_size": 12,
    "line_padding_bottom": 3,
    "line_padding_top": 3,
    "word_wrap": "true",
    "always_show_minimap_viewport": true,
    "color_scheme": "Packages/Colorsublime - Themes/Afterglow.tmTheme",
    "font_face": "Fira Code",
    "font_size": 15,
    "hot_exit": false,
    "overlay_scroll_bars": "enabled",
    "remember_open_files": false,
    "use_simple_full_screen": true,
    "ignored_packages":
    [
    "Vintage"
    @@ -19,5 +12,12 @@
    [
    "draw_normal",
    "draw_active"
    ]
    ],
    "line_padding_bottom": 3,
    "line_padding_top": 3,
    "overlay_scroll_bars": "enabled",
    "remember_open_files": false,
    "theme": "Material-Theme.sublime-theme",
    "use_simple_full_screen": true,
    "word_wrap": "true"
    }
  5. jeffreysbrother revised this gist Nov 3, 2016. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion sublime.md
    Original file line number Diff line number Diff line change
    @@ -2,10 +2,11 @@

    * install [package control](https://packagecontrol.io/installation) (by running the code in Sublime Text's console). This functionality can be accessed by typing ctrl+shift+p ... and by typing in "install", we will see an option that says "Package Control: Install Package". Selecting this option will give us the ability to install packages.
    * install [Material Theme](https://github.com/equinusocio/material-theme) using package control, then add the required and recommended JSON parameters to Sublime's user settings.
    * install ColorSublime package using package control. We can then use ColorSublime to install a theme, perhaps the Facebook theme by mbixby.
    * install ColorSublime package using package control. We can then use ColorSublime to install a colorscheme. So far I enjoy these themes the best: 1337, Acai, Facebook, Afterglow, and Boron. I have not tried *every* colorscheme.
    * download [Fira Code](https://github.com/tonsky/FiraCode) and update font_face in Sublime's user settings
    * Install PackageResourceViewer (with package control). I think this allows us to extract the source code of some installed package so that subsequent updates to the package will not override our customizations.
    * Install [AdvancedNewFile](https://github.com/skuroda/Sublime-AdvancedNewFile) using package control. Key bindings can be configured by going here: Preferences > Package Settings > AdvancedNewFile > Key Bindings -- User
    * Install a blade syntax highlighter

    ###Sublime Text 3 Shortcuts

  6. jeffreysbrother revised this gist Nov 2, 2016. 1 changed file with 9 additions and 9 deletions.
    18 changes: 9 additions & 9 deletions Preferences.sublime-settings
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,16 @@
    {
    "always_show_minimap_viewport": true,
    // "bold_folder_labels": true,
    "color_scheme": "Packages/Colorsublime - Themes/Boron.tmTheme",
    "theme": "Material-Theme.sublime-theme",
    "font_face": "Fira Code",
    "font_size": 12,
    "line_padding_bottom": 3,
    "line_padding_top": 3,
    "word_wrap": "true",
    "always_show_minimap_viewport": true,
    "hot_exit": false,
    "overlay_scroll_bars": "enabled",
    "remember_open_files": false,
    "use_simple_full_screen": true,
    "ignored_packages":
    [
    "Vintage"
    @@ -13,11 +19,5 @@
    [
    "draw_normal",
    "draw_active"
    ],
    "line_padding_bottom": 3,
    "line_padding_top": 3,
    "overlay_scroll_bars": "enabled",
    "remember_open_files": false,
    "theme": "Material-Theme.sublime-theme",
    "use_simple_full_screen": true
    ]
    }
  7. jeffreysbrother revised this gist Nov 2, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion sql.md
    Original file line number Diff line number Diff line change
    @@ -33,7 +33,7 @@ log in as root user: `mysql -u root -p` (this will then prompt you for a passwor
    ```php
    //when we are manually connecting to PDO, we want to wrap it in a try/catch block
    try {
    $pdo = new PDO('mysql:host=127.0.0.1;dbname=<database-name>', '<username>', '<password>');
    $pdo = new PDO('mysql:host=127.0.0.1;dbname=<database-name>', '<username>', '<password>');
    } catch (PDOException $e) {
    die('Could not connect.');
    }
  8. jeffreysbrother revised this gist Nov 2, 2016. 1 changed file with 1 addition and 3 deletions.
    4 changes: 1 addition & 3 deletions sql.md
    Original file line number Diff line number Diff line change
    @@ -30,10 +30,8 @@ log in as root user: `mysql -u root -p` (this will then prompt you for a passwor

    * we can start up a PHP server by typing `php -S localhost:4000` (any port)
    * we can use an existing PHP class to fetch data from a MySQL database: PDO (PHP Data Objects)
    * `$pdo = new PDO('mysql:host=127.0.0.1;dbname=<database-name>', '<username>', '<password>')`;
    * keep in mind that the username might be *root*
    ```php
    //actually, when we are manually connecting to PDO, we want to wrap it in a try/catch block
    //when we are manually connecting to PDO, we want to wrap it in a try/catch block
    try {
    $pdo = new PDO('mysql:host=127.0.0.1;dbname=<database-name>', '<username>', '<password>');
    } catch (PDOException $e) {
  9. jeffreysbrother revised this gist Nov 2, 2016. 1 changed file with 9 additions and 1 deletion.
    10 changes: 9 additions & 1 deletion sql.md
    Original file line number Diff line number Diff line change
    @@ -31,4 +31,12 @@ log in as root user: `mysql -u root -p` (this will then prompt you for a passwor
    * we can start up a PHP server by typing `php -S localhost:4000` (any port)
    * we can use an existing PHP class to fetch data from a MySQL database: PDO (PHP Data Objects)
    * `$pdo = new PDO('mysql:host=127.0.0.1;dbname=<database-name>', '<username>', '<password>')`;
    * keep in mind that the username might be *root*
    * keep in mind that the username might be *root*
    ```php
    //actually, when we are manually connecting to PDO, we want to wrap it in a try/catch block
    try {
    $pdo = new PDO('mysql:host=127.0.0.1;dbname=<database-name>', '<username>', '<password>');
    } catch (PDOException $e) {
    die('Could not connect.');
    }
    ```
  10. jeffreysbrother revised this gist Nov 2, 2016. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion sql.md
    Original file line number Diff line number Diff line change
    @@ -30,4 +30,5 @@ log in as root user: `mysql -u root -p` (this will then prompt you for a passwor

    * we can start up a PHP server by typing `php -S localhost:4000` (any port)
    * we can use an existing PHP class to fetch data from a MySQL database: PDO (PHP Data Objects)
    * `$pdo = new PDO('mysql:host=127.0.0.1;dbname=<database-name>', 'root', '<password-here>');`
    * `$pdo = new PDO('mysql:host=127.0.0.1;dbname=<database-name>', '<username>', '<password>')`;
    * keep in mind that the username might be *root*
  11. jeffreysbrother revised this gist Nov 2, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion sql.md
    Original file line number Diff line number Diff line change
    @@ -30,4 +30,4 @@ log in as root user: `mysql -u root -p` (this will then prompt you for a passwor

    * we can start up a PHP server by typing `php -S localhost:4000` (any port)
    * we can use an existing PHP class to fetch data from a MySQL database: PDO (PHP Data Objects)
    `$pdo = new PDO('mysql:host=127.0.0.1;dbname=<database-name>', 'root', '<password-here>');`
    * `$pdo = new PDO('mysql:host=127.0.0.1;dbname=<database-name>', 'root', '<password-here>');`
  12. jeffreysbrother revised this gist Nov 2, 2016. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion sql.md
    Original file line number Diff line number Diff line change
    @@ -29,4 +29,5 @@ log in as root user: `mysql -u root -p` (this will then prompt you for a passwor
    ###PHP stuff that might be related to MySQL

    * we can start up a PHP server by typing `php -S localhost:4000` (any port)
    * we can use an existing PHP class to fetch data from a MySQL database: PDO (PHP Data Objects)
    * we can use an existing PHP class to fetch data from a MySQL database: PDO (PHP Data Objects)
    `$pdo = new PDO('mysql:host=127.0.0.1;dbname=<database-name>', 'root', '<password-here>');`
  13. jeffreysbrother revised this gist Nov 2, 2016. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion sql.md
    Original file line number Diff line number Diff line change
    @@ -24,4 +24,9 @@ log in as root user: `mysql -u root -p` (this will then prompt you for a passwor

    `select * from <table-name> where id = 1;`

    > all of these things can be done from a GUI program such as Sequel Pro
    > all of these things can be done from a GUI program such as Sequel Pro
    ###PHP stuff that might be related to MySQL

    * we can start up a PHP server by typing `php -S localhost:4000` (any port)
    * we can use an existing PHP class to fetch data from a MySQL database: PDO (PHP Data Objects)
  14. jeffreysbrother revised this gist Nov 2, 2016. 1 changed file with 6 additions and 7 deletions.
    13 changes: 6 additions & 7 deletions Preferences.sublime-settings
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,10 @@
    {
    "always_show_minimap_viewport": true,
    "bold_folder_labels": true,
    "color_scheme": "Packages/Colorsublime - Themes/Facebook.tmTheme",
    "font_size": 12,
    // "bold_folder_labels": true,
    "color_scheme": "Packages/Colorsublime - Themes/Boron.tmTheme",
    "font_face": "Fira Code",
    "font_size": 12,
    "hot_exit": false,
    "ignored_packages":
    [
    "Vintage"
    @@ -16,9 +17,7 @@
    "line_padding_bottom": 3,
    "line_padding_top": 3,
    "overlay_scroll_bars": "enabled",
    "remember_open_files": false,
    "theme": "Material-Theme.sublime-theme",
    "use_simple_full_screen": true,
    //hot_exit and remember_open_files might not be necessary on a Mac. Had to add this to my work computer.
    "hot_exit": false,
    "remember_open_files": false
    "use_simple_full_screen": true
    }
  15. jeffreysbrother revised this gist Nov 2, 2016. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion sql.md
    Original file line number Diff line number Diff line change
    @@ -20,6 +20,8 @@ log in as root user: `mysql -u root -p` (this will then prompt you for a passwor

    `insert into <table-name> (<columnA>, <columnB>) values('Go to the store', false);`

    `select * from todos;`
    `select * from <table-name>;`

    `select * from <table-name> where id = 1;`

    > all of these things can be done from a GUI program such as Sequel Pro
  16. jeffreysbrother revised this gist Nov 2, 2016. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion sql.md
    Original file line number Diff line number Diff line change
    @@ -18,4 +18,8 @@ log in as root user: `mysql -u root -p` (this will then prompt you for a passwor

    `drop table <table-name>;`

    `insert into <table-name> (<columnA>, <columnB>) values('Go to the store', false);`
    `insert into <table-name> (<columnA>, <columnB>) values('Go to the store', false);`

    `select * from todos;`

    > all of these things can be done from a GUI program such as Sequel Pro
  17. jeffreysbrother revised this gist Nov 2, 2016. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion sql.md
    Original file line number Diff line number Diff line change
    @@ -16,4 +16,6 @@ log in as root user: `mysql -u root -p` (this will then prompt you for a passwor

    `describe <table-name>;`

    `drop table <table-name>;`
    `drop table <table-name>;`

    `insert into <table-name> (<columnA>, <columnB>) values('Go to the store', false);`
  18. jeffreysbrother revised this gist Nov 2, 2016. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions sql.md
    Original file line number Diff line number Diff line change
    @@ -6,9 +6,9 @@ log in as root user: `mysql -u root -p` (this will then prompt you for a passwor
    `show databases;`

    `create datbase <database-name>;`
    `create database <database-name>;`

    `use <databse-name>;`
    `use <database-name>;`

    `show tables;`

  19. jeffreysbrother revised this gist Nov 2, 2016. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions sql.md
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,8 @@

    log in as root user: `mysql -u root -p` (this will then prompt you for a password)

    > note: if running a command in the mysql prompt produces a **->** this probably means that we have failed to insert a semicolon at the end of the line.
    `show databases;`

    `create datbase <database-name>;`
  20. jeffreysbrother revised this gist Nov 2, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion sql.md
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,7 @@ log in as root user: `mysql -u root -p` (this will then prompt you for a passwor

    `show tables;`

    `create table <table-name> (id integer PRIMARY KEY AUTO_INCREMENT, description text NOT NULL, completed boolean NOT NULL);` (basic formatting here is **column name** **type** **modifiers**, **column name** **type** **modifiers**, etc)
    `create table <table-name> (id integer PRIMARY KEY AUTO_INCREMENT, description text NOT NULL, completed boolean NOT NULL);` (basic formatting here is **column_name** **type** **modifiers**, **column_name** **type** **modifiers**, etc)

    `describe <table-name>;`

  21. jeffreysbrother revised this gist Nov 2, 2016. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion sql.md
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,8 @@ log in as root user: `mysql -u root -p` (this will then prompt you for a passwor

    `show tables;`

    `create table <table-name> (description text, completed boolean);`
    `create table <table-name> (id integer PRIMARY KEY AUTO_INCREMENT, description text NOT NULL, completed boolean NOT NULL);` (basic formatting here is **column name** **type** **modifiers**, **column name** **type** **modifiers**, etc)

    `describe <table-name>;`

    `drop table <table-name>;`
  22. jeffreysbrother revised this gist Nov 2, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions sublime.md
    Original file line number Diff line number Diff line change
    @@ -9,5 +9,6 @@

    ###Sublime Text 3 Shortcuts

    * **ctrl+shift+p** ... open command palette
    * **ctrl+p** ... browse files
    * **ctrl+r** ... go to symbol (this allows us to jump to class and function definitions)
  23. jeffreysbrother revised this gist Nov 2, 2016. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion sql.md
    Original file line number Diff line number Diff line change
    @@ -10,4 +10,7 @@ log in as root user: `mysql -u root -p` (this will then prompt you for a passwor

    `show tables;`

    `create table <table-name> (description text, completed boolean);`
    `create table <table-name> (description text, completed boolean);`

    `describe <table-name>;`

  24. jeffreysbrother revised this gist Nov 2, 2016. 1 changed file with 10 additions and 2 deletions.
    12 changes: 10 additions & 2 deletions sql.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,13 @@
    ###MySQL Stuff

    log in as root user: `mysql -u root -p`
    This will then prompt you for the password.
    log in as root user: `mysql -u root -p` (this will then prompt you for a password)

    `show databases;`

    `create datbase <database-name>;`

    `use <databse-name>;`

    `show tables;`

    `create table <table-name> (description text, completed boolean);`
  25. jeffreysbrother revised this gist Nov 2, 2016. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions sql.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    ###MySQL Stuff

    log in as root user: `mysql -u root -p`
    This will then prompt you for the password.

  26. jeffreysbrother revised this gist Nov 2, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions sublime.md
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,7 @@
    * install ColorSublime package using package control. We can then use ColorSublime to install a theme, perhaps the Facebook theme by mbixby.
    * download [Fira Code](https://github.com/tonsky/FiraCode) and update font_face in Sublime's user settings
    * Install PackageResourceViewer (with package control). I think this allows us to extract the source code of some installed package so that subsequent updates to the package will not override our customizations.
    * Install [AdvancedNewFile](https://github.com/skuroda/Sublime-AdvancedNewFile) using package control. Key bindings can be configured by going here: Preferences > Package Settings > AdvancedNewFile > Key Bindings -- User

    ###Sublime Text 3 Shortcuts

  27. jeffreysbrother revised this gist Nov 2, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion sublime.md
    Original file line number Diff line number Diff line change
    @@ -9,4 +9,4 @@
    ###Sublime Text 3 Shortcuts

    * **ctrl+p** ... browse files
    * **ctrl+r** ... go to symbol (not sure how to use this, LOL)
    * **ctrl+r** ... go to symbol (this allows us to jump to class and function definitions)
  28. jeffreysbrother revised this gist Nov 2, 2016. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions sublime.md
    Original file line number Diff line number Diff line change
    @@ -5,3 +5,8 @@
    * install ColorSublime package using package control. We can then use ColorSublime to install a theme, perhaps the Facebook theme by mbixby.
    * download [Fira Code](https://github.com/tonsky/FiraCode) and update font_face in Sublime's user settings
    * Install PackageResourceViewer (with package control). I think this allows us to extract the source code of some installed package so that subsequent updates to the package will not override our customizations.

    ###Sublime Text 3 Shortcuts

    * **ctrl+p** ... browse files
    * **ctrl+r** ... go to symbol (not sure how to use this, LOL)
  29. jeffreysbrother revised this gist Nov 2, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Preferences.sublime-settings
    Original file line number Diff line number Diff line change
    @@ -18,6 +18,7 @@
    "overlay_scroll_bars": "enabled",
    "theme": "Material-Theme.sublime-theme",
    "use_simple_full_screen": true,
    //hot_exit and remember_open_files might not be necessary on a Mac. Had to add this to my work computer.
    "hot_exit": false,
    "remember_open_files": false
    }
  30. jeffreysbrother revised this gist Nov 2, 2016. No changes.