Skip to content

Instantly share code, notes, and snippets.

TL;DR: Star 🌟 this gist. (You might need to request the desktop version)

such meta

After buying the tickets for ReactiveConf I discovered the call for Lightning Talks and decided it's time to leave the attendee seat and hold my first public talk. To calculate the odds I wrote a script to get the current ranks of all Lightning Talks. This script is the topic of my talk:

Getting a Lightning Talk slot for ReactiveConf 2017 with FP

@DamirSvrtan
DamirSvrtan / app_template.rb
Last active August 29, 2015 14:05
Rails application generator template
### Rails app generator template. Run it:
### rails new _app_name_ -m https://gist.githubusercontent.com/DamirSvrtan/28a28e50d639b9445bbc/raw/app_template.rb
remove_file "README.rdoc"
create_file "README.md", "Development: run ./bin/setup"
run 'mv app/assets/stylesheets/application.css app/assets/stylesheets/application.scss'
database_type = ask("Do you want to use postgres or mysql?", limited_to: ["pg", "mysql"])
adapter = if database_type == 'pg'