Skip to content

Instantly share code, notes, and snippets.

View jarkko's full-sized avatar

Jarkko Laine jarkko

View GitHub Profile
irb(main):004:0> a = Event.limit(5)
Event Load (0.4ms) SELECT `events`.* FROM `events` LIMIT 5
=> […]
irb(main):006:0> a.map(&:id)
=> [1, 2, 3, 4, 5]
irb(main):008:0> a.reject!{|i| i.id == 1}
=> […]
irb(main):010:0> a.map(&:id)
=> [2, 3, 4, 5]
irb(main):011:0>
module MetroUi.Widgets.Accordion exposing ( Model
, defaultAccordion
, update
, view )
import Html
import Html.App
import Html.Attributes as Attr
import MetroUi.Widgets.Frame as Frame