Skip to content

Instantly share code, notes, and snippets.

Avatar

Christian Martin cmartin81

  • Transponder / Martin Consulting
  • Hvalstad
View GitHub Profile
@staltz
staltz / introrx.md
Last active Sep 25, 2022
The introduction to Reactive Programming you've been missing
View introrx.md
@jeffmo
jeffmo / gist:054df782c05639da2adb
Last active Nov 24, 2020
ES Class Property Declarations
View gist:054df782c05639da2adb
View heroku-prodfix
# Checkout
git tag # List tagged versions
git checkout -b prodfix <version> # Checkout specific version into prodfix branch
# Fix code and commit
# Test in staging (requires compatible database state)
git push staging +HEAD:master # Push to staging
# Put in producton
@larsar
larsar / heroku_deployment_workflow
Created Oct 11, 2012
Heroku deployment workflow
View heroku_deployment_workflow
Gjenskape produksjon:
Backup av staging og prod database:
heroku pgbackups:capture --remote staging
heroku pgbackups:capture --remote production
Clean staging-database:
heroku pg:reset DATABASE_URL --remote staging
@kmile
kmile / xml_parser.rb
Created Feb 15, 2011
A small nokogiri xml reader DSL.
View xml_parser.rb
# A small DSL for helping parsing documents using Nokogiri::XML::Reader. The
# XML Reader is a good way to move a cursor through a (large) XML document fast,
# but is not as cumbersome as writing a full SAX document handler. Read about
# it here: http://nokogiri.org/Nokogiri/XML/Reader.html
#
# Just pass the reader in this parser and specificy the nodes that you are interested
# in in a block. You can just parse every node or only look inside certain nodes.
#
# A small example:
#