Skip to content

Instantly share code, notes, and snippets.

View jasperkennis's full-sized avatar
💨
CODING

Jasper Kennis jasperkennis

💨
CODING
View GitHub Profile
# config/initializers/active_admin.rb
ActiveAdmin.setup do |config|
# All the ActiveAdmin config stuf
end
Dir[ File.join(Rails.root, "lib", "active_admin_extentions", "*.rb") ].each {|l| require l }
@jasperkennis
jasperkennis / readme.md
Last active August 29, 2015 14:20
Homerun CSS Rules

Purpose of this document:

Our CSS is a mess and needs to improve. Let's have some rules for that.

Style classes not elements

Our habit to style elements makes it easy to swap elements without affecting style.

Generalise styles

@jasperkennis
jasperkennis / dictkeys
Created September 3, 2014 08:04
Python object types as dict key demo
return {
Country: self.fetch_country(city),
Region: self.fetch_region(city),
City: self.fetch_city(city),
None: None
}[type(location)]
getFormattedDate = ->
date = new Date()
date.getMonth() + "/" + date.getDate() + "/" + date.getFullYear() + " " + date.getHours() + ":" + date.getMinutes()
resetPullHeader = ->
actInd.hide()
imageArrow.transform = Ti.UI.create2DMatrix()
if refreshCount < 2
imageArrow.show()
labelStatus.text = "Pull down to refresh..."
labelLastUpdated.text = "Last Updated: " + getFormattedDate()
@jasperkennis
jasperkennis / testplan.md
Last active August 28, 2015 09:02
A testplan for Fontanel Jobs and the integration with FreeAgent