Skip to content

Instantly share code, notes, and snippets.

@echohtp
echohtp / twitter_update_username_w_followers.py
Created July 9, 2020 16:48
Easy update twitter username w/ followers count
import os
import tweepy
from flask import Flask
# Authenticate to Twitter
auth = tweepy.OAuthHandler("API KEY", "API SECRET")
auth.set_access_token("TOKEN", "SECRET")
# Create API object
@echohtp
echohtp / App.js
Created June 3, 2020 20:27
Easy React.JS Boilerplate with Auth from Google Cloud Platform
import React, { Component } from 'react';
import withFirebaseAuth from 'react-with-firebase-auth'
import * as firebase from 'firebase/app';
import 'firebase/auth';
import 'firebase/database';
import 'firebase/firestore';
import ProtectedApp from './components/ProtectedApp'
const firebaseConfig = {
apiKey: process.env.REACT_APP_API_KEY,
Command name argument expected.
Available command groups for gcloud:
AI and Machine Learning
ai-platform Manage AI Platform jobs and models.
ml Use Google Cloud machine learning capabilities.
ml-engine Manage AI Platform jobs and models.
API Platform and Ecosystems

Keybase proof

I hereby claim:

  • I am echohtp on github.
  • I am jasonschorr (https://keybase.io/jasonschorr) on keybase.
  • I have a public key whose fingerprint is F3CF F75B 79C9 5D8F 136D 9FD0 8B3B DBC5 7800 0A39

To claim this, I am signing this object:

@echohtp
echohtp / gist:058b0385d5b6240490ff
Created March 1, 2015 22:06
node.js + hapi for modulus.io deployment.
var Hapi = require(‘hapi’);
var sOptions = { host: '0.0.0.0', port: parseInt(process.env.PORT, 10) || 3000};
var server = new Hapi.Server();
server.connection(sOptions);
server.start()