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
require 'thor' | |
require 'twitter' | |
require 'httparty' | |
TWITTER_APP_KEY="rzlJX...." | |
TWITTER_APP_SECRET="euF5bI...." | |
TWITTER_ACCESS_TOKEN="17827...." | |
TWITTER_ACCESS_TOKEN_SECRET="7NSXm..." | |
def print_user_info( u ) |
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 ruby | |
require 'httparty' | |
require 'nokogiri' | |
require 'dnsruby' | |
require 'whois' | |
require 'whois/record/parser/blank' | |
require 'whois/record/contact' | |
url = ARGV[0] || "http://www.fastcolabs.com/3038014/product-bootcamp-week-six-worth-it" |
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 ruby -KU | |
# | |
# This code has been adapted from | |
# https://github.com/google/google-api-ruby-client-samples/tree/master/drive | |
# | |
require 'thor' | |
require 'hirb' | |
require 'google/api_client' | |
require 'google/api_client/client_secrets' |
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
require "upmark" | |
require 'csv' | |
require 'fileutils' | |
user = "wschenk" | |
workingdir = "medium" | |
outputdir = "articles" | |
def url( dest, source ) | |
file dest do |
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'; | |
import ReactDOM from 'react-dom'; | |
import './index.css'; | |
import App from './App'; | |
import registerServiceWorker from './registerServiceWorker'; | |
import 'material-components-web/dist/material-components-web.css' | |
import WebFont from 'webfontloader' | |
WebFont.load({ | |
google: { |
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, {Component} from 'react' | |
import { TextField, Dialog } from 'rmwc'; | |
class Login extends Component { | |
state = {email: "", password: ""} | |
handleChange = (val) => (evt) => { this.setState( {...this.state, [val]: evt.target.value} ) } | |
loginForm = () => { | |
return ( | |
<div> |
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, {Component} from 'react'; | |
import {PersistentDrawer, PersistentDrawerHeader, PersistentDrawerContent, ListItem, ListItemText } from 'rmwc'; | |
export default class Drawer extends Component { | |
render() { | |
return ( | |
<PersistentDrawer open={this.props.opened}> | |
<PersistentDrawerHeader style={{ backgroundColor: '#f6f6f6' }}> | |
PersistentDrawerHeader | |
</PersistentDrawerHeader> |
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, {Component} from 'react' | |
import { | |
GridList, | |
GridTile, | |
GridTilePrimary, | |
GridTilePrimaryContent, | |
GridTileSecondary, | |
GridTileTitle } from 'rmwc' | |
class Grid extends Component { |
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, { Component } from 'react' | |
import Navbar from './navbar' | |
import Drawer from './drawer' | |
import Login from './login' | |
import Grid from './grid' | |
class App extends Component { | |
state = { drawer: false, login: false } | |
drawerToggle = () => { this.setState( { ...this.state, drawer: !this.state.drawer } ) } |
OlderNewer