Skip to content

Instantly share code, notes, and snippets.

@curious725
curious725 / rapid.md
Created May 24, 2019 11:17 — forked from eddroid/rapid.md
Rapid Prototyping with Rails

Rapid Prototyping with Rails

At Wyncode we turn people into full-stack web developers in 10 weeks. So we've learned a few tricks to get from 0 to webapp quickly.

Install Ruby and Rails

Generate the app skeleton

bin/rails generate rspec:helper flash_msg -s
804 sudo chown -R $USER:$USER .
805 gs
806 rm -rf spec/
807 gs
808 git checkout add_and_setup_rspec
809 git log
810 gs
811 git rebase -i HEAD~3
812 git log
813 git push -f
# SQLite version 3.x
# gem install sqlite3
#
# Ensure the SQLite 3 gem is defined in your Gemfile
# gem 'sqlite3'
#
default: &default
adapter: sqlite3
pool: 5
timeout: 5000
@curious725
curious725 / database.yml.example mysql2
Created March 27, 2018 19:07 — forked from erichurst/database.yml.example mysql2
Rails 3 database.yml examples
# MySQL. Versions 4.1 and 5.0 are recommended.
#
# Install the MySQL driver:
# gem install mysql2
#
# And be sure to use new-style password hashing:
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
development:
adapter: mysql2
encoding: utf8
Yes, XOR. MySQL XOR operator checks two operands (or expressions) and returns TRUE if one or the other but not both is TRUE.
@curious725
curious725 / pip install specific version (range)
Created January 14, 2018 16:30 — forked from darth-veitcher/pip install specific version (range)
install latest LTS version of Django (version 1.8.x)
# grab latest LTS version of Django (version 1.8.x)
pip install 'django>=1.8,<1.9'
sudo apt-get update
sudo apt-get -y install build-essential checkinstall
sudo apt-get -y install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev
wget https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tgz
tar xzf Python-2.7.13.tgz
cd Python-2.7.13
Emmet
BracketHighlighter
EditorConfig
SideBarEnhancements
SublimeCodeIntel
{
"bold_folder_labels": true,
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"ensure_newline_at_eof_on_save": true,
"fade_fold_buttons": false,
"font_size": 13.5,
"highlight_line": true,
"ignored_packages":
[
],