This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Assumes the database container is named 'db' | |
DOCKER_DB_NAME="$(docker-compose ps -q db)" | |
DB_HOSTNAME=db | |
DB_USER=postgres | |
LOCAL_DUMP_PATH="path/to/local.dump" | |
docker-compose up -d db | |
docker exec -i "${DOCKER_DB_NAME}" pg_restore -C --clean --no-acl --no-owner -U "${DB_USER}" -d "${DB_HOSTNAME}" < "${LOCAL_DUMP_PATH}" | |
docker-compose stop db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run this one-liner from the Sublime Text console if you need to revert all open documents | |
[ view.run_command('revert') for view in sublime.Window.views(sublime.active_window()) ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Generating Innovative / New Business Ideas | |
How to generate new ideas | |
- Inspiration from existing innovations | |
- Follow your personal passion | |
- Annoyances | |
- Decommoditize a Commodity | |
- Attacking underserved Long-Tail Segments | |
- Going Low Touch / down market | |
- Follow social / demographics trends |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Step 1 - Name Generation | |
- develop naming brief & plan, considering target market, desired brand attributes, etc. | |
- Condect name-storming sessions to generate up to 20-50 names | |
Step 2 - Online Search & Shortlist | |
- conduct online trademark & url search on the names generated | |
- evaluate and shortlist 10-12 names based on naming brief and trademark, url availability | |
Step 3 - Name Refinement & Selection | |
- based on search results, fine tune names if required |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Defining the market | |
- what are you? | |
- entering existing market - higher performance | |
- creating new market | |
- re-segment market as low cost player - low end customers | |
you need to have a plan on how to scale | |
- resegment market as niche player - go after core profitable segment | |
Defining your market | |
what are their benefits? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.9.2p290 :022 > Photo.all.count | |
=> 21 | |
1.9.2p290 :023 > Photo.where(orientation: 'portrait').limit(2).count | |
=> 9 | |
1.9.2p290 :024 > Photo.where(orientation: 'portrait').limit(2).count(true) | |
=> 2 | |
1.9.2p290 :025 > |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.9.2p290 :022 > Photo.all.count | |
=> 21 | |
1.9.2p290 :023 > Photo.where(orientation: 'portrait').limit(2).count | |
=> 9 |