docss() {
docker-machine restart default
docs
}
docs() {
echo "loading docker machine env"
eval $(docker-machine env default)
export DB_PORT_5432_TCP_ADDR=$(docker-machine ip default)
I hereby claim:
- I am seanwash on github.
- I am seanwashbot (https://keybase.io/seanwashbot) on keybase.
- I have a public key ASAzIYr4x-q_0Grt50K__uBnyeHXIDjAK9pSw7_7ZZxz0wo
To claim this, I am signing this object:
This file contains hidden or 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
| # lib/tasks/db.rake | |
| namespace :db do | |
| desc "Dumps the database to db/APP_NAME.dump" | |
| task :dump => :environment do | |
| cmd = nil | |
| with_config do |app, host, db, user| | |
| cmd = "pg_dump --host #{host} --username #{user} --verbose --clean --no-owner --no-acl --format=c #{db} > #{Rails.root}/db/#{app}.dump" | |
| end | |
| puts cmd |
This file contains hidden or 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
| <?php // custom query loop ?> | |
| <?php $counter = 0; $loop = new WP_Query(array('post_type' => 'capability', 'posts_per_page' => -1)); ?> | |
| <?php while ($loop->have_posts()) : $loop->the_post(); ?> | |
| <div> | |
| <?php the_title(); ?> | |
| </div> | |
| <?php endwhile; wp_reset_query(); ?> | |
- keep everything package related at the lowest level, package, readme etc.
- everything else goes in something like /lib, for example: lib/ routes, actions, models, utils, etc
- within those, and index file that gathers each main space and exports it. so i can require(‘./routes’) and use routes.difficulties.get()
- package.json
- server.js - Kicks off server
- app/routes - Contains all app routes (exercises/index.js, exercises/show.js)
- app/views - any server side views (exercise/index.jade, exercises/show.jade)
- models - Contains sequelize models
- seeders - model seeds
- config - config vars & such
- public - Static assets
This file contains hidden or 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
| module.exports = { | |
| // See http://brunch.io for documentation. | |
| files: { | |
| javascripts: {joinTo: 'app.js'}, | |
| stylesheets: { | |
| joinTo: 'app.css', | |
| order: { | |
| before: [ | |
| 'node_modules/basscss/css/basscss.css', | |
| 'node_modules/basscss-responsive-padding/css/responsive-padding.css', |
This file contains hidden or 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
| › whois gethub.com | |
| Whois Server Version 2.0 | |
| Domain names in the .com and .net domains can now be registered | |
| with many different competing registrars. Go to http://www.internic.net | |
| for detailed information. | |
| Domain Name: GETHUB.COM | |
| Registrar: INAMES CO., LTD. |
This file contains hidden or 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
| # This command will make sure the process persists | |
| # even after you log out of a session | |
| node server.js >/dev/null 2>&1 & |
| title | JavaScript - The Land of Opportunity |
|---|---|
| date | 2016-10-05 13:11:53 -0700 |
| tags |
JavaScript Fatigue - Everyone's talking about it and most of us have felt it in one way or another. While it often feels good to blow off some steam by writing satirical articles about the current state of the JavaScript ecosystem, dwelling on it too much in that light can become frustrating and discouraging for both yourself and for others. Although I'm not the first, I'd like to try to talk about JavaScript Fatigue in a different light.