This file contains hidden or 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
| { | |
| "data": { | |
| "conversionRates": { | |
| "types": [ | |
| { | |
| "rates": [ | |
| { | |
| "baseBuyRate": "1.394154", | |
| "baseSellRate": "1.382767", | |
| "buyRate": "1.415385", |
This file contains hidden or 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
| Accepted Value | Normalized Value | |
|---|---|---|
| JA | JANUARY | |
| JAN | JANUARY | |
| JANU | JANUARY | |
| JANUA | JANUARY | |
| JANUAR | JANUARY | |
| JANUARY | JANUARY | |
| F | FEBRUARY | |
| FE | FEBRUARY | |
| FEB | FEBRUARY |
This file contains hidden or 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
| require 'maintenance' | |
| maintenance = DatabaseMaintainer.new() | |
| maintenance.destroy_duplicate_articles if options["destroy_duplicate_articles"] | |
| maintenance.destroy_duplicate_logs if options["destroy_duplicate_logs"] | |
| maintenance.fix_reading_logs_counter | |
| users = User.where("reading_logs_count > ? AND claimed_profile = ?", 0, true) | |
| reading_log_count_array = users.pluck(:reading_logs_count) | |
| average_per_user = reading_log_count_array.inject{ |sum, el| sum + el }.to_f / reading_log_count_array.size |
This file contains hidden or 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
| // Go to menue: | |
| // find->find in files | |
| // Switch on reg_ex button | |
| // Find: | |
| ^(.*)$ | |
| // Where: | |
| c:\your_folder\,*.php,*.phtml,*.js,*.inc,*.html, -*/folder_to_exclude/* | |
| // Then click on the find button | |
| // Be careful to not click on Replace!!! |