The ARTISTS table in the cfartgallery datasource used for examples is an excellent example of how NOT to store passwords. First, they are stored in clear text and the column is limited to only 8 characters.
ARTISTID |
---|
RSpec.configure do |config| | |
config.before(:all, &:silence_output) | |
config.after(:all, &:enable_output) | |
end | |
# Redirects stderr and stdout to /dev/null. | |
def silence_output | |
@orig_stderr = $stderr | |
@orig_stdout = $stdout |
def fizz_buzz_1(max) | |
arr = [] | |
(1..max).each do |n| | |
if ((n % 3 == 0) && (n % 5 == 0)) | |
arr << "FizzBuzz" | |
elsif (n % 3 == 0) | |
arr << "Fizz" | |
elsif (n % 5 == 0) | |
arr << "Buzz" | |
else |
The ARTISTS table in the cfartgallery datasource used for examples is an excellent example of how NOT to store passwords. First, they are stored in clear text and the column is limited to only 8 characters.
ARTISTID |
---|
set t_Co=256 | |
set pastetoggle=<F8> | |
colorscheme wombat256mod | |
set hlsearch | |
set tabstop=4 | |
set softtabstop=4 | |
set shiftwidth=4 | |
let g:indent_guides_auto_colors=0 | |
autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd guibg=red ctermbg=3 | |
autocmd VimEnter,Colorscheme * :hi IndentGuidesEven guibg=green ctermbg=4 |
sudo aptitude update | |
sudo aptitude full-upgrade |
日時: | 2016-01-23 |
---|---|
作: | @voluntas |
バージョン: | 0.1.2 |
url: | https://voluntas.github.io/ |
That is is basically a "fork" of blog article i'm constantly returning to. It seems that the blog is down:
Dave Bass proposed this which I picked up for my implementation (here for an 8-chars token):
module ActiveJobRetryControlable | |
extend ActiveSupport::Concern | |
DEFAULT_RETRY_LIMIT = 5 | |
attr_reader :attempt_number | |
module ClassMethods | |
def retry_limit(retry_limit) | |
@retry_limit = retry_limit |