View dragonfly_tasks.rake
# This will move all images and other Dragonfly assets from your local server file system to Amazon S3. | |
namespace :dragonfly do | |
task :migrate_to_s3 => :environment do | |
# Adjust this line to meet your needs: | |
{ Product => [:image_uid, :other_uid], Page => :image_uid }.each do |klass, col| | |
puts "Migrating #{klass.table_name}..." | |
Array(col).each do |col| | |
klass.where("#{col} != ''").find_each do |instance| | |
begin |
View console.txt
Loading development environment (Rails 4.1.1) | |
irb(main):001:0> Rails.application.secrets | |
=> {:new_setting=>"test", :secret_key_base=>"bc3c450a6ba3b8cf93e714a8628960249114648516ca3fdffd9f19ba4b29689116a038cf611e3756b850a1f5399ea99935fe720e0d6d0f61d349293c70d244ec"} |
View tinymce.yml
mode: "textareas" | |
theme: "advanced" | |
#skin: "o2k7" | |
#skin_variant: "silver" | |
editor_selector: "mceEditor" | |
language: "tr" | |
#content_css : "/stylesheets/tinymce.css" | |
plugins: | |
- inlinepopups | |
- preview |
View Kredi Kartı BIN Listesi - CSV
bin,banka_kodu,banka_adi,type,sub_type,virtual,prepaid | |
413226,10,T.C. ZİRAAT BANKASI A.Ş.,VISA,PLATINUM | |
444676,10,T.C. ZİRAAT BANKASI A.Ş.,VISA,CLASSIC | |
444677,10,T.C. ZİRAAT BANKASI A.Ş.,VISA,GOLD | |
444678,10,T.C. ZİRAAT BANKASI A.Ş.,VISA,PLATINUM | |
453955,10,T.C. ZİRAAT BANKASI A.Ş.,VISA, CLASSIC | |
453956,10,T.C. ZİRAAT BANKASI A.Ş.,VISA, GOLD | |
454671,10,T.C. ZİRAAT BANKASI A.Ş.,VISA, CLASSIC | |
454672,10,T.C. ZİRAAT BANKASI A.Ş.,VISA, CLASSIC | |
454673,10,T.C. ZİRAAT BANKASI A.Ş.,VISA, BUSINESS |
View devise.tr.yml
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n | |
tr: | |
devise: | |
confirmations: | |
confirmed: "Eposta adresiniz başırılı bir şekilde onaylandı." | |
send_instructions: "Bir kaç dakika içerisinde eposta adresinizi nasıl onaylayacağınız hakkında bir eposta alacaksınız." | |
send_paranoid_instructions: "Eğer eposta adresinizi veritabanımızda kayıtlı ise bir kaç dakika içerisinde eposta adresinizi nasıl onaylayacağınız hakkında bir eposta alacaksınız." | |
failure: | |
already_authenticated: "Zaten giriş yaptınız." |
View rspec-syntax-cheat-sheet.rb
# RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com | |
# defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below) | |
module Player | |
describe MovieList, "with optional description" do | |
it "is pending example, so that you can write ones quickly" | |
it "is already working example that we want to suspend from failing temporarily" do | |
pending("working on another feature that temporarily breaks this one") |
View capybara cheat sheet
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |