Skip to content

Instantly share code, notes, and snippets.

View rdalin82's full-sized avatar
⌨️

Robert Dalin rdalin82

⌨️
View GitHub Profile

Keybase proof

I hereby claim:

  • I am rdalin82 on github.
  • I am rdalin (https://keybase.io/rdalin) on keybase.
  • I have a public key ASA7kiS5nESyw1HN6f6vrwtubADhFjx9aMULo6-KyC12YQo

To claim this, I am signing this object:

@rdalin82
rdalin82 / rails-docker-pg-template.rb
Created January 21, 2018 00:45 — forked from cblunt/rails-docker-pg-template.rb
A simple Rails application configured for PostgreSQL and Docker
generate(:scaffold, "post", "title:string", "body:text")
route "root to: 'posts#index'"
file 'config/database.yml', <<-CODE
default: &default
adapter: postgresql
encoding: unicode
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
host: db
rdalin@rdalin-ThinkPad-T400:~/Dropbox/python_projects/other_proj/Cult-of-the-Snek$ python CultOfTheSnek.py
Welcome to Cult of the Snek.
()
You are a brave warrior entering the jungles of Lustria, lured by tales of wealth
in the ancient Temple of Python. Beware, for this temple is not abandoned.
The deadly Cult of the Snek will protect their treasure.
()
('HP: ', 10, '// Gold: ', 0)
Are you ready to begin? (press <ENTER> to continue)
Traceback (most recent call last):
export default class GoogleMaps extends React.Component {
shouldComponentUpdate(){
return false;
}
componentDidMount(){
this.map = new google.maps.Map(this.refs.map, {
center: {lat: this.props.lat, lng: this.props.lng },
zoom: 12,
})