• Robinhood: Bought beyond from my interdigital sales. Also sold seagate today.
    • Ally: Cleared final holdings, microsoft and tesla. I’ll reup msft in robinhood.
    • Paid rent while the money was moving around.
    • It might be worth getting a stackoverflow account and starting to provide answers. The clout is a good bonus. Even better benefits: paying it forward + open source mentality.
    • Brake fade is due to heat. Over long applications (braking all the way from like 200mph, or going downhill) the braking power decreases. Gas builds up.
    • A strong thought I had today, and have had before: Convenience is the enemy of healthy eating, not flavor. It’s so much easier to grab a granola bar or cereal, a sandwich or snacks. Healthy foods are usually ingredients which require some sort of effort to transform from their raw state into a usual meal. This is what makes good nutrition difficult. We have enough distraction and exhaustion throughout the rest of our days; to add more in a neverending task like meal prep is hard.
      • To fight against this, I do as much prep beforehand.
      • My morning meals have always been a shake. Instead of getting out the teaspoons and measuring 10 different powders every morning, I do it in a batch of 10 jars. Then breakfast is just pouring a jar into water in a bottle.
      • I have a veggie smoothie every day. Instead of cutting and apportioning all the kale and tyogurt and carrots and all every time, I batch it all at once. Then a smoothie is just grabbing 5 items from the fridge, rinsing with water, then throwing in a blender and drinking.
      • Same goes for carrots/beets for juicing.
      • Same goes for bell peppers for hummus/snacks.
    • Abstract route logic into other functions, then have your route definitions (decorations) be as simple as possible. This is called route middleware: http://expressjs.com/2x/guide.html#route-middleware. The middleware can be responsible for looking up a user in the database, requiring that someone is an admin, or much more. Then once the middleware accomplishes what it wants, pass to next().
    • Read through the express 4 api docs.
      • app.use(path, callback)
        • If nothing is passed to the first argument for path, it defaults to the home route /, so applies to everything.
      • This is exactly where you put your middleware logic, and then mount it.
      • Pretty similar to flask all around.
    • Read through the mongoose 5 api docs, the mongo shim for node.
      • All around similar to sqlalchemy. Define the schema, connect to the db, validate against models, etc.
    • Worked with briley for a minute on the hydra angular frontend.
    • npm:
      • sudo chown -R $USER ~/.npm again.
      • -D is the same as –save-dev
    • Webpack:
      • Pip.
      • webpack.config.js provides mores configuration for the package, extending package.json. Both are similar to setup.py. The webpack config allows specification of entry points, resolvers, loaders, much more.
      • Can also be used to build your client app or start development (webpack-dev-server).
      • Defines the main template to load, the js to run on it (react render, etc).
    • Simple MERN blog app:
      • Created the client react app, refreshed on the express/mongo backend and server app. Compiled with webpack dev, almost done.
      • Webpack config has the entry point defined, which is /src/index.js. This is like main. It loads react and all the components + stylesheets.