Have a User model with these attributes:
- uid:string
- provider:string
- first_name:string
- last_name:string
- email:string
heroku pg:reset DATABASE --confirm app_name | |
heroku run rake db:gis:setup | |
heroku run rake db:migrate | |
heroku run rake db:seed |
`rails g backbone:scaffold Model #{Model.columns_hash.map { |name, c| "#{name}:#{c.type}" }.join ' '}` |
Researching patterns and components composing a flux architecture, and how they can be integrated current development processes.
Flux is the application architecture that Facebook uses for building client-side web applications. It complements React's composable view components by utilizing a unidirectional data flow.
Hint: Flux is more of an architecture pattern for managing the flow of data throughout a react application, rather than a framework
require 'json' | |
class NodeConnectionGenerator | |
attr_reader :node_count | |
attr_accessor :nodes, :edges | |
def initialize(node_count) | |
@node_count = node_count | |
@nodes = [] | |
@edges = [] |
echo | |
echo "preparing for install" | |
echo | |
brew update | |
echo | |
echo "installing libraries with brew" | |
echo |
rails new [NAME] --skip-turbolinks --skip-test-unit --database=postgresql |
Sen. Rand Paul (KY)...as in the one who’s a libertarian. Drink every time he gets fired up and calls himself a “real conservative.” | |
Former Gov. Mike Huckabee (AR)...as in the former pastor who’s really down with G-O-D. Drink when he mentions his support for a Kentucky clerk who refused to issue same-sex marriage licenses. | |
Sen. Marco Rubio (FL)...as in the one with the hair. Who many think will end up with a VP name tag. Drink when he talks about immigration or his Cuban-American background. | |
Sen. Ted Cruz (TX)...as in the one who likes Tea Parties. Drink every time he mentions the words “defund” and “Planned Parenthood” in the same sentence. | |
Dr. Ben Carson...as in the one who separated conjoined twins. And the only one who’s pulling numbers like The Donald. Drink every time Carson mentions how his lack of political experience sets him apart. |
<html> | |
<head> | |
<title>Your Website Title</title> | |
<!-- You can use open graph tags to customize link previews. | |
Learn more: https://developers.facebook.com/docs/sharing/webmasters --> | |
<meta property="og:url" content="http://www.your-domain.com/your-page.html" /> | |
<meta property="og:type" content="website" /> | |
<meta property="og:title" content="Your Website Title" /> | |
<meta property="og:description" content="Your description" /> | |
<meta property="og:image" content="http://www.your-domain.com/path/image.jpg" /> |
SELECT * | |
FROM posts | |
INNER JOIN category_joins as filter_categories_join | |
ON filter_categories_join.categorizable_id = posts.id | |
AND filter_categories_join.categorizable_type = 'Post' | |
INNER JOIN categories as filter_categories | |
ON filter_categories.id = filter_categories_join.category_id | |
INNER JOIN category_joins as categories_join_1 | |
ON categories_join_1.categorizable_id = posts.id | |
AND categories_join_1.categorizable_type = 'Post' |