- Install VVV: https://github.com/Varying-Vagrant-Vagrants/VVV
- Install VV: https://github.com/bradp/vv
- Add plain theme like https://github.com/digisavvy/some-like-it-neat or http://underscores.me/
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
<% if current_user %> | |
heap.identify({email: "<%= current_user.email %>", name: "<%= current_user.full_name %>"}); | |
<% 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
var getTourStatus = function() { | |
var tourStatus = ""; | |
$.ajax({ | |
type: "GET", | |
url: "/users/" + userId + ".json", | |
dataType: "json", | |
data: { get_param: 'finished_tour' }, | |
success: function(data) { | |
var tourStatus = data.finished_tour; | |
if(!tourStatus) { |
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
onShow: function() { | |
$('.record a').click(function(){ | |
var link = $(this).attr('href'); | |
alert(link); | |
}); | |
} |
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
{ | |
"caret_extra_width": 1, | |
"caret_style": "phase", | |
"close_windows_when_empty": false, | |
"color_scheme": "Packages/User/predawn (SL).tmTheme", | |
"copy_with_empty_selection": false, | |
"drag_text": false, | |
"enable_tab_scrolling": false, | |
"file_exclude_patterns": | |
[ |
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
namespace :heroku do | |
desc 'Pull most recent DB from Heroku and dump into local' | |
task :db_pull => :environment do | |
heroku_app = "my-app-name" | |
local_db = "local-db_dev" | |
system "heroku pgbackups:capture --expire --app #{heroku_app}" | |
system "curl -o latest.dump `heroku pgbackups:url --app #{heroku_app}`" | |
system "pg_restore --verbose --clean --no-acl --no-owner -h localhost -d #{local_db} latest.dump" | |
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
// Angular | |
app.factory("User", ['$resource', function($resource){ | |
return $resource('/companies/:company_id/members/:id', { company_id: '@company_id', id: '@id' }); | |
}]); | |
app.factory("Group", ['$resource', function($resource){ | |
return $resource('/companies/:company_id/groups/:id.json', { company_id: '@company_id', id: '@id' }); | |
}]); | |
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
[alias] | |
co = checkout | |
br = branch | |
ci = commit | |
st = status | |
pom = pull origin master |
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
config.generators do |g| | |
g.test_framework :rspec, | |
fixtures: true, | |
view_specs: false, | |
helper_specs: false, | |
controller_specs: false, | |
routing_specs: false | |
g.factory_girl true | |
end |
NewerOlder