AWS Remote Git Setup
Get a local git repo up on an EC2 Instance.
Add youself to SSH Authentication:
Add yourself to the ssh auth agent, if you haven't already.
####david.antaramian in @elixir-lang slack, #beginners [2:11 PM]
Just in case you need it for reference in the future, this is the problem we normally see people run into: People will sometimes have called the environment variable during a module attribute assignment. Like the following:
defmodule MyAPP.APIClient do @api_key System.get_env("API_KEY") end
Itching to write Elixir? Are you not allowed, don't want to use homebrew? Too lazy to compile from source? Here's step-by step instructions to get Elixir and Erlang up and running on your mac, using precompiled binaries.
erlin your terminal to test that erlang has been appropriately added to your path.
I'm working on a little app that crowdsources the answer to "was that gunshots? or were those fireworks?", roughly 2-5 minutes after the sound was heard.
It's hard to tell in the city sometimes.
Anyway, it does this by checking the public call logs for all St. Louis Metro Police department "calls for service" (so 911 calls, non-emergency calls, etc). The call logs can be found here: http://www.slmpd.org/cfs.aspx
It runs this check every two minutes, and parses the result. After a little data padding (geocoding results and intersections, ISO formatting timestamps, etc), it adds it to a MapSet, so there's exactly one record per result.
|So the above file here is my Full page react file. I do a couple things here:|
|- In the head, I inject my important CSS inline.|
|- In the body, I link to my commons chunk (with react, react-router, and anything that's going to be on every single page).|
|- Beneath that is the app entry file.|
|- Beneath that is a dynamically generated chunkfile, based on the current route.|
|Each of these are cachebusted with a hash, pulled from the webpack stats file.|
So this is roughly how I handle CSS these days. As much as I'd like to use CSSModules for everything, I work on a lot of different projects, for a lot of different clients. They can't all be a SPA.
Some of this seems blindingly obvious. But until I stop cleaning up messy, repetitive CSS, I figure it all merits being said.
I use one file to style HTML. This creates a baseline for the body, defines my box model, sets global typography rules, etc. If I need to style an HTML element, I style it globally. Otherwise, I give an element a class, and only style that class.