FridayHug.com http://fridayhug.com
The Smallest Rails App http://thesmallestrailsapp.com
%w(action_controller/railtie coderay).each &method(:require)
FridayHug.com http://fridayhug.com
The Smallest Rails App http://thesmallestrailsapp.com
%w(action_controller/railtie coderay).each &method(:require)
#!/bin/sh | |
:<<'=cut' | |
=head1 NAME | |
git-wrapper - avoid committing as you@invalid | |
=head1 SYNOPSIS |
# .git/hook/pre-commit | |
#!/bin/sh | |
# | |
# Check for ruby style errors | |
red='\033[0;31m' | |
green='\033[0;32m' | |
yellow='\033[0;33m' | |
NC='\033[0m' |
require 'sidekiq/api' | |
# 1. Clear retry set | |
Sidekiq::RetrySet.new.clear | |
# 2. Clear scheduled jobs | |
Sidekiq::ScheduledSet.new.clear |
class Slack::ChannelList | |
def initialize(organization) | |
@client = Slack::Web::Client.new(token: organization.slack_token) | |
end | |
def self.call(organization:) | |
new(organization).call | |
end |
We prefer to use sublime
/VS Code
for development(you can opt for any IDE though, but that will mean no support from seniors for any issues relating it and that might lead to un-neccessary time waste thats why it is highly preferred to not use any other IDEs). You are encouraged to use sublime or VSCode.
Install Sublime3 (google or use this link) Here we will outline some basic configuration for sublime3 we usually use.
i- Settings Tweaks
In sublime go to preferences->settings
and place these in user settings tab along with other settings.
Don't mess with default settings tab
{ | |
"[html]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, | |
"[jsonc]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, | |
"[slim]": { | |
"files.trimTrailingWhitespace": false | |
}, |