This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| [ | |
| // jump between block | |
| {"keys": ["alt+k"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": false}}, | |
| {"keys": ["alt+j"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": true}}, | |
| {"keys": ["shift+alt+k"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": false, "extend": true}}, | |
| {"keys": ["shift+alt+j"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": true, "extend": true}}, | |
| // Origami | |
| { "keys": ["super+k", "super+w"], "command": "destroy_pane", "args": {"direction": "self"} }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| // TABS | |
| // ========================================================== | |
| // - Tabset | |
| // ------------------------------------------------------ | |
| { | |
| "class": "tabset_control", | |
| "layer0.texture": "Theme - Afterglow/Afterglow/tab-background.png", | |
| // "layer0.tint": [46, 46, 46], // -00 | |
| "layer0.inner_margin": 0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "auto_complete_commit_on_tab": true, | |
| "auto_complete_delay": 0, | |
| "bold_folder_labels": true, | |
| "caret_extra_width": 5, | |
| "caret_style": "phase", | |
| "color_scheme": "Packages/Material Theme/schemes/Material-Theme-Darker.tmTheme", | |
| "draw_centered": false, | |
| "ensure_newline_at_eof_on_save": true, | |
| "folder_exclude_patterns": |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # set Ctrl-a as the default prefix key combination | |
| # and unbind C-b to free it up | |
| set -g prefix C-k | |
| unbind C-b | |
| #set-window-option -g mode-mouse on | |
| setw -g mode-keys vi | |
| # set window and pane index to 1 (0 by default) | |
| set-option -g base-index 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "auto_complete_commit_on_tab": true, | |
| "auto_complete_delay": 0, | |
| "bold_folder_labels": true, | |
| "caret_extra_width": 0, | |
| "caret_style": "phase", | |
| "color_scheme": "Packages/Material Theme/schemes/Material-Theme-Darker.tmTheme", | |
| "draw_centered": false, | |
| "ensure_newline_at_eof_on_save": true, | |
| "folder_exclude_patterns": |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| // TABS | |
| // ========================================================== | |
| // - Tabset | |
| // ------------------------------------------------------ | |
| { | |
| "class": "tabset_control", | |
| "layer0.texture": "Theme - Afterglow/Afterglow/tab-background.png", | |
| // "layer0.tint": [46, 46, 46], // -00 | |
| "layer0.inner_margin": 0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "auto_complete_commit_on_tab": true, | |
| "auto_complete_delay": 0, | |
| "bold_folder_labels": true, | |
| "caret_extra_width": 4, | |
| "caret_style": "phase", | |
| "color_scheme": "Packages/Material Theme/schemes/Material-Theme-Darker.tmTheme", | |
| "draw_centered": true, | |
| "ensure_newline_at_eof_on_save": true, | |
| "folder_exclude_patterns": |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Apenas com isso... | |
| $resource('/notes/:id', null, | |
| { | |
| 'update': { method:'PUT' } | |
| }); | |
| // Ele te da todas essas funções | |
| { | |
| 'get': {method:'GET'}, | |
| 'save': {method:'POST'}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Came from the comments here: https://gist.github.com/maruf-nc/5625869 | |
| app.filter('titlecase', function() { | |
| return function (input) { | |
| var smallWords = /^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i; | |
| input = input.toLowerCase(); | |
| return input.replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g, function(match, index, title) { | |
| if (index > 0 && index + match.length !== title.length && | |
| match.search(smallWords) > -1 && title.charAt(index - 2) !== ":" && | |
| (title.charAt(index + match.length) !== '-' || title.charAt(index - 1) === '-') && |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class AddHstoreExtension < ActiveRecord::Migration | |
| def up | |
| execute 'CREATE EXTENSION hstore' | |
| end | |
| def down | |
| execute 'DROP EXTENSION hstore' | |
| end | |
| end |