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
const styles = ['radii', 'borderStyle', 'borderWidth', 'space'] | |
const theme = { | |
radii: [0, 1, 2], | |
borderStyle: ['solid', 'dotted'], | |
borderWidth: [3, 4, 5, 6], | |
space: [0, 2, 4, 8, 16, 32] | |
} | |
const possibilities = styles.reduce((acc, style) => |
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
[ | |
{ | |
borderStyle: "solid", | |
borderWidth: 3, | |
radii: 0, | |
space: 0 | |
}, | |
{ | |
borderStyle: "solid", | |
borderWidth: 3, |
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
import React from 'react' | |
const URL = 'https://api.graph.cool/simple/v1/cj90efsm60hka01721jcnbn53' | |
import { request } from 'graphql-request' | |
import { ThemeProvider } from 'glamorous' | |
import theme from './theme' | |
import { |
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
import React from 'react' | |
const URL = 'https://api.graph.cool/simple/v1/cj90efsm60hka01721jcnbn53' | |
import { request } from 'graphql-request' | |
import { ThemeProvider } from 'glamorous' | |
import theme from './theme' | |
import { |
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
class LoginLink < ApplicationRecord | |
has_secure_token | |
belongs_to :user | |
before_create :assign_secure_phrase_and_expires_at | |
def expired? | |
expires_at < Time.now | |
end |
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
#!/usr/bin/env sh | |
_now=$(date +"%s") | |
heroku pg:backups capture --app $1 | |
curl -o $_now-$1.dump `heroku pg:backups public-url --app $1` |
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
.tropical-rain-forest { color: #118661; } | |
.black { color: #090205; } | |
.bg-tropical-rain-forest { background-color: #118661; } | |
.bg-black { background-color: #090205; } | |
/* /////////////////////////////////////// */ | |
.asparagus { color: #71a253; } | |
.black { color: #35141a; } | |
.bg-asparagus { background-color: #71a253; } |
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
<div class='mw6 center ph2 pv3 pv4-m pv5-l'> | |
<h2><%= @user.stripe_customer_token ? 'Change' : 'Add a' %> credit card</h2> | |
<%= form_tag @user, method: :put, id: 'payment-form' do %> | |
<span class="payment-errors"></span> | |
<div class="mt3"> | |
<label> | |
<span class="b db">Card Number</span> | |
<input type="text" size="20" data-stripe="number" class="pa2 input-reset ba bg-transparent"> |