Skip to content

Instantly share code, notes, and snippets.

@glinesbdev
glinesbdev / rubymine-reset-eval.sh
Created Jan 7, 2020 — forked from vtambourine/rubymine-reset-eval.sh
Reset RubyMine (and other JetBrains products) evaluation period.
View rubymine-reset-eval.sh
#!/usr/bin/env bash
# $ crontab -e
# 0 0 25 * * * ~/rubymine-reset-eval.sh
rm -fr $HOME/Library/Preferences/RubyMine*/eval
rm $HOME/Library/Preferences/jetbrains.rubymine.*.plist
echo "RubyMine evaluation period has been reset. Please, buy it if you like it!"
View 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 Apr 21, 2017 — forked from anonymous/Main.elm
Parse string and replace
View Main.elm
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."
View Main.elm
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."
You can’t perform that action at this time.