This file contains 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
[ | |
{"keys": ["alt+up"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": false}}, | |
{"keys": ["alt+down"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": true}}, | |
{"keys": ["shift+alt+up"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": false, "extend": true}}, | |
{"keys": ["shift+alt+down"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": true, "extend": true}}, | |
{"keys": ["shift+ctrl+["], "command": "focus_group", "args": { "group": 0 } }, | |
{"keys": ["shift+ctrl+]"], "command": "focus_group", "args": { "group": 1 } }, | |
{"keys": ["ctrl+super+shift+["], "command": "move_to_group", "args": { "group": 0 } }, | |
{"keys": ["ctrl+super+shift+]"], "command": "move_to_group", "args": { "group": 1 } }, | |
] |
This file contains 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
module.factory( 'Resource', [ '$resource', function( $resource ) { | |
return function( url, params, methods ) { | |
var defaults = { | |
update: { method: 'put', isArray: false }, | |
create: { method: 'post' } | |
}; | |
methods = angular.extend( defaults, methods ); | |
var resource = $resource( url, params, methods ); |
This file contains 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
<?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>author</key> | |
<string>Chris Kempson (http://chriskempson.com)</string> | |
<key>name</key> | |
<string>Base16 Eighties Dark</string> | |
<key>semanticClass</key> | |
<string>base16.eighties.dark</string> |
This file contains 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
Open your theme file located at Packages/Color Scheme - Default/*.tmTheme | |
find <dict> tag containing <string>Tag attribute</string> and add section after | |
<dict> | |
<key>name</key> | |
<string>Tag ng attribute</string> | |
<key>scope</key> | |
<string>entity.other.attribute-name.ng</string> | |
<key>settings</key> | |
<dict> | |
<key>fontStyle</key> |
This file contains 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
<?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>author</key> | |
<string>Chris Kempson (http://chriskempson.com)</string> | |
<key>name</key> | |
<string>Base16 Eighties Dark</string> | |
<key>semanticClass</key> | |
<string>base16.eighties.dark</string> |
This file contains 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
<?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>html</string> | |
<string>htm</string> | |
<string>shtml</string> | |
<string>xhtml</string> |
This file contains 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
module Matching | |
extend ActiveSupport::Concern | |
def run_matching trainee | |
self.trainee = trainee | |
self.matching = {rate: 0} | |
self.weight_of_exact = { city: 19.3, course: 13.9, semester: 19.3, languages: 17.4, other_courses: 21.3 } | |
self.run | |
end |
This file contains 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
/*Filter styles*/ | |
.saturate {-webkit-filter: saturate(3);} | |
.grayscale {-webkit-filter: grayscale(100%);} | |
.contrast {-webkit-filter: contrast(160%);} | |
.brightness {-webkit-filter: brightness(0.25);} | |
.blur {-webkit-filter: blur(3px);} | |
.invert {-webkit-filter: invert(100%);} | |
.sepia {-webkit-filter: sepia(100%);} | |
.huerotate {-webkit-filter: hue-rotate(180deg);} | |
.rss.opacity {-webkit-filter: opacity(50%);} |
This file contains 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
source 'https://rubygems.org' | |
gem 'rails', '4.2.3' | |
gem 'active_model_serializers' # Serialize json response | |
gem 'delayed_job_active_record' # Asynchronous priority queue system | |
gem 'figaro' # For setting environment variables | |
gem 'kaminari' # for pagination | |
gem 'newrelic_rpm' # Monitor | |
gem 'pg' # Posgrees Database |
This file contains 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
The default Postgresql installation on Mac OS X using homebrew includes a single extension - plpgsql (PL/pgSQL procedural language) but there are a number of them available in the lib directory (/usr/local/Cellar/postgresql/9.2.1/lib on my machine) | |
To install an extension into the database, the easiest way I found was to open a database console using the 'rails db' command and then create it directly. I have seen mention of doing this in a Rails migration but this did not work for me. | |
Note that an extension is installed in a specific database, rather than being added to all databases. | |
The command to list the installed extensions is '\dx' | |
$ rails db | |
psql (9.2.1) |
OlderNewer