I hereby claim:
- I am amcooper on github.
- I am amcooper (https://keybase.io/amcooper) on keybase.
- I have a public key ASCoyzf-i3fIIrA10e4mnJrLC87i4yUHAvj34gz7uZcLdgo
To claim this, I am signing this object:
// Article.jsx | |
import React from "react"; | |
import { createFragmentContainer, graphql } from "react-relay"; | |
import CommentList from "./CommentList.jsx"; | |
class Article extends React.Component { | |
render() { | |
return ( |
/** | |
* | |
* A quick, janky script to generate & colocate Storyshots. Just saving this in case all hell. | |
* | |
*/ | |
const fs = require("fs"); | |
const path = require("path"); | |
const elementsDir = path.join(__dirname, "..", "src", "components", "elements"); | |
const modulesDir = path.join(__dirname, "..", "src", "components", "modules"); |
I hereby claim:
To claim this, I am signing this object:
import React, { Component } from 'react'; | |
import './App.css'; | |
import config from './config.js'; | |
class Form extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
celebrity: '', | |
stalker: '', |
import React, { Component } from 'react'; | |
import './App.css'; | |
import seedTweets from './seeds.js'; | |
class Tweet extends Component { | |
render() { | |
return( | |
<div className="tweet"> | |
<p className="tweetText">{ this.props.text }</p> | |
<p className="tweetMetadata"> |
Lesser Evil (lesser-evil-cli
) is a hosted Ruby gem for the command line which applies a third-party, open-source sentiment analysis tool to collect negative-affect tweets regarding the 2016 U.S. Presidential candidates. The user chooses the candidate ("Trump" or "Clinton") and the negativity threshold ("angry" or "very angry").
The fetch_tweets
method in the Tweet Controller is the primary engine of the application. It performs the following tasks:
get_batch
method which makes GET requests to the Twitter Search API. The request includes search terms, desired number of results, and the maximum ID (i.e., the most recent ID from which to start the search)if
statement of line 36 tests for sentiment negativity and user-specified intensityrails new
rails generate scaffold User email password_digest
rails generate controller Sessions new create destroy
rails generate scaffold Album title user:references artist:references
rails generate scaffold Artist name
rails generate scaffold Song name album:references
rails generate scaffold Favorite user:references artist:references album:references song:references
class Project | |
attr_accessor :title | |
def slug | |
@title.strip.downcase.gsub(/(&|&)/, ' and ').gsub(/[\s\.\/\\]/, '-').gsub(/[^\w-]/, '').gsub(/[-_]{2,}/, '-').gsub(/^[-_]/, '').gsub(/[-_]$/, '') | |
end | |
end |
" Make backspace behave in a sane manner. | |
set backspace=indent,eol,start | |
" Switch syntax highlighting on | |
syntax enable | |
" Enable file type detection and do language-dependent indenting | |
filetype plugin indent on | |
" Show line numbers |