Skip to content

Instantly share code, notes, and snippets.

View machal's full-sized avatar

Martin Michálek machal

View GitHub Profile
@machal
machal / gist:4568
Created August 8, 2008 13:39 — forked from karmi/gist:4567
def test_proper_localization_for_czech
falsify_today
hostname 'www.application.cz'
get :index
assert_tag :tag => 'h1', :content => 'Program Květen/Červen 2008'
assert_select '#topMenu a', :text => 'English'
assert_select '#headMenu strong', :text => 'Program'
assert_select '#program_item_2008-05-30 .day a', :text => 'pátek 30/05'
end
We couldn’t find that file to show.
# Delete/Move Rails default files
log 'moving', 'Rails default files'
run "mv README doc/README_FOR_RAILS"
run "rm public/index.html"
# Copy database.yml
log "copying", "database.yml"
run "cp config/database.yml config/database.example.yml"
# Set up .gitignore files
@machal
machal / perf-diagnostics.css
Last active June 8, 2021 13:12 — forked from tkadlec/perf-diagnostics.css
CSS used to highlight potential performance issues
:root {
--violation-color: red; /* used for clear issues */
--warning-color: orange; /* used for potential issues we should look into */
}
/* IMAGES */
/*
* Lazy-Loaded Images Check
* ====