Skip to content

Instantly share code, notes, and snippets.

@glinesbdev
glinesbdev / card.rb
Last active April 24, 2017 20:25 — forked from camkidman/card.rb
card = Card.first # as an example
card.card_set_id = CardSet.find_by(:name => card.set).id
card.save
# => ActiveRecord::RecordInvalid: Validation failed: Card set must exist
@glinesbdev
glinesbdev / Main.elm
Created April 21, 2017 14:33 — forked from anonymous/Main.elm
Parse string and replace
module Main exposing (..)
import Html exposing (..)
import Html.Attributes exposing (..)
sampleText : String
sampleText =
"As long as Rayquaza has any Grass Energy cards attached to it, ignore the effect of Rayquaza's Lightning Storm attack."
@glinesbdev
glinesbdev / Main.elm
Created April 21, 2017 14:33 — forked from anonymous/Main.elm
Untitled
module Main exposing (..)
import Html exposing (..)
import Html.Attributes exposing (..)
sampleText : String
sampleText =
"As long as Rayquaza has any Grass Energy cards attached to it, ignore the effect of Rayquaza's Lightning Storm attack."