Skip to content

Instantly share code, notes, and snippets.

View cblunt's full-sized avatar
👨‍💻
Coding

Chris Blunt cblunt

👨‍💻
Coding
View GitHub Profile
@gabrielemariotti
gabrielemariotti / build.gradle
Last active October 30, 2025 03:09
Use signing.properties file which controls which keystore to use to sign the APK with gradle.
android {
signingConfigs {
release
}
buildTypes {
release {
signingConfig signingConfigs.release
}
@ungoldman
ungoldman / config.rb
Last active December 25, 2015 05:29
middleman instance variables that are collections of pages
# ...
def get_pages
# get an array of pages whose source filename contains .html
@pages = sitemap.resources.find_all { |page| page.source_file.match(/\.html/) }
# sort them by an arbitrary YAML frontmatter property called 'order'
@pages.sort! { |a,b| a.data['order'].to_i <=> b.data['order'].to_i }
end
@alexbrinkman
alexbrinkman / Capybara Cheat Sheet.md
Last active November 25, 2024 15:47
A List of Methods for Capybara

Navigating

visit "/projects"
visit post_comments_path(post)

Clicking links and buttons

click_link "id-of-link"
click_link "Link Text"