- 13" Macbook Pro 3.3 GHz i7 (late 2016)
- Microsoft Surface Book (2016)
- Dell up3216q 32" monitor
1-In the github repo on Settings > Integration & Services, enable | |
2-Go to travisCI page and enable the repo | |
3-Configure the env variables on TravisCI so that it is not necessary to save credentials on github | |
-in the project Settings on TravisCI, add the entry for netlify site id: NETLIFY_SITE_ID - <site_id from .netlify file generated on netlify create> | |
-create a netlify access token for TravisCI | |
-On Netlify Dashboard, Go to Account Settings > OAuth Applications (https://app.netlify.com/account/applications) > Personal access tokens and press New Access Token | |
-Name it anything, but to make it easier the suggestion is name TravisCI. | |
-Generate it and COPY it - you won’t see it again! | |
-in the project Settings on TravisCI, add the entry for netlify personal access token generated for TravisCI: NETLIFY_ACCESS_TOKEN | |
4-Generate a .travis.yml file in the local repo |
{ | |
"name": "Typography", | |
"settings": [ | |
{ | |
"type": "header", | |
"content": "Headings and buttons" | |
}, | |
{ | |
"type": "select", | |
"id": "type_header_family", |
{% if settings.type_base_family contains 'Google' %} | |
{%- assign type_base_parts = settings.type_base_family | split: '_' -%} | |
{% capture baseGoogleUrl %}{{ type_base_parts[1] }}:400,700{% endcapture %} | |
{{ '//fonts.googleapis.com/css?family=' | append: baseGoogleUrl | stylesheet_tag }} | |
{% endif %} | |
{% if settings.type_header_family contains 'Google' %} | |
{% unless settings.type_header_family contains type_base_parts[1] and settings.type_header_family contains '700' %} | |
{%- assign type_header_parts = settings.type_header_family | split: '_' -%} | |
{% capture headerGoogleUrl %}{{ type_header_parts[1] }}:{{ type_header_parts[2] }}{% endcapture %} | |
{{ '//fonts.googleapis.com/css?family=' | append: headerGoogleUrl | stylesheet_tag }} |
// There's two ways to use Tachyons together with styled-components | |
// Both are valid, which one you use depends if you want to always apply a tachyons class when a certain component | |
// is rendered or if you want to apply it for specific instances. | |
// 1. Use .attrs to define classNames that should always be applied to a styled component | |
// Whenever you use <Component /> now it'll have both the styled-components as well as the Tachyons class | |
// See the docs for more info: https://www.styled-components.com/docs/basics#attaching-additional-props | |
const Component = styled.div.attrs({ | |
className: 'bw0-l', | |
})` |
$.getJSON('/search?q=shirt&view=json', function(response) { | |
console.log(response) | |
}); |
{% layout none %} | |
{% paginate search.results by 50 %} | |
{ | |
"results": {{ search.results | json }} | |
} | |
{% endpaginate %} |
<div class="grid"> | |
<div class="grid__item one-half medium-down--one-whole"> | |
<p>One Half<br> | |
One Whole (medium down)</p> | |
</div> | |
<div class="grid__item one-half medium-down--one-whole"> | |
<p>One Half<br> | |
One Whole (medium down)</p> | |
</div> | |
<div class="grid__item one-quarter large--one-half medium-down--one-whole"> |
defmodule Turbolinks do | |
@moduledoc """ | |
in `web.ex` | |
replace `use Phoenix.Controller` with `use Turbolinks` | |
in `router.ex` add a the plug | |
plug Turbolinks | |
""" | |
use Plug.Builder |
I was wrapping up 310 (Robust Production Quality Applications with Rails) after 3 busy weeks and 168 hours of work. I felt very comfortable building modest applications end-to-end and integrating with third party API's like Stripe and Twilio.
I was considering the review project I was going to build (#spaced repetition anyone?) that would encapsulate the course. As I'm reaching this point Gavin McGimpsey (we know him, we love him) posted about Ruby Rampage--a 48 hour hackathon.
Serendipity! It's always nice to outsource motivation for mundane work so you can save a portion of your willpower (AKA glucose/ketones) to stay mentally 'frosty' (we are all cognitive misers, so sayeth Nobel Psychologist Daniel Kahneman).
Plus, it was a chance to compete--iron sharpens iron and all that.
So how did it go? Well, I went into the weekend confident, slipped on the starting line, and failed completely. It was terrific.