I hereby claim:
- I am jameslafa on github.
- I am jameslafa (https://keybase.io/jameslafa) on keybase.
- I have a public key ASAWFkLVBvndTyh-TtPTyARV9zAKQI_CuebhX1xJkPJXnQo
To claim this, I am signing this object:
| desc "switch rails logger to stdout" | |
| task :verbose => [:environment] do | |
| Rails.logger = Logger.new(STDOUT) | |
| end | |
| desc "switch rails logger log level to debug" | |
| task :debug => [:environment, :verbose] do | |
| Rails.logger.level = Logger::DEBUG | |
| end |
| ActiveAdmin.register Project do | |
| # Don't forget to add the image attribute (here thumbnails) to permitted_params | |
| controller do | |
| def permitted_params | |
| params.permit project: [:title, :summary, :description, :thumbnail, :date, :url, :client_list, :technology_list, :type_list] | |
| end | |
| end | |
| form do |f| |
| #!/usr/bin/env ruby | |
| # Place in your project .git/hooks/pre-commit | |
| # Heavily inspired by https://raw.githubusercontent.com/balabhadra/githooks/master/pre-commit, so thank you to him | |
| ############# CONFIGURATION | |
| # The two sections of regular expressions below ("forbidden" and "warning") | |
| # will trigger a commit failure, *if* they are found on an added or edited line. |
| group :development do | |
| gem 'quiet_assets' # Remove useless logs | |
| # Debugging in the browser | |
| gem 'better_errors' | |
| gem 'binding_of_caller' | |
| gem 'meta_request' | |
| gem 'guard-livereload' | |
| gem 'seed_dump' |
| #!/bin/bash | |
| for dir in */ ; do | |
| # Check if there are images in the folder before moving forward | |
| if [[ $(find $dir -maxdepth 1 -type f -name "*.jpg"| wc -l) -ge 1 ]]; then | |
| # If there is already an instagram folder in this folder, I skip. | |
| if [[ ! -d "$dir"instagram ]]; then | |
| mkdir "$dir"instagram | |
| fi | |
| for file in "$dir"*.jpg ; do |
| ActiveAdmin.register Project do | |
| controller do | |
| def permitted_params | |
| params.permit project: [:title, :summary, :description, :thumbnail, :date, :url, :client_list, :technology_list, :type_list, :images_attributes => [:picture, :id, :_destroy]] | |
| # to add unlimited :image, you need to permit :images_attributes => [:picture, :id, :_destroy] | |
| # - picture for the image | |
| # - id to avoid duplicates | |
| # - _destroy if you want to allow image delete | |
| end | |
| end |
| #app/models/event.rb | |
| class Event < ActiveRecord::Base | |
| translates :title, :description, :summary | |
| has_many :event_translations | |
| accepts_nested_attributes_for :event_translations, :allow_destroy => true | |
| end |
I hereby claim:
To claim this, I am signing this object:
In case Redis is down, the job will be perform synchronously instead of crashing.
On your job, use perform_later_with_failover instead of perform_later.
Take this into account:
| Wordlist ver 0.732 - EXPECT INCOMPATIBLE CHANGES; | |
| acrobat africa alaska albert albino album | |
| alcohol alex alpha amadeus amanda amazon | |
| america analog animal antenna antonio apollo | |
| april aroma artist aspirin athlete atlas | |
| banana bandit banjo bikini bingo bonus | |
| camera canada carbon casino catalog cinema | |
| citizen cobra comet compact complex context | |
| credit critic crystal culture david delta | |
| dialog diploma doctor domino dragon drama |