Skip to content

Instantly share code, notes, and snippets.

View thacherhussain's full-sized avatar

Thacher Hussain thacherhussain

View GitHub Profile
@thacherhussain
thacherhussain / data.json
Last active September 13, 2019 22:14
Data for Tidepool GHC OSD Project
{
"info" : [
{
"id": 1,
"name": "Harry Potter",
"school": "Hogwarts",
"house": "Gryffindor",
"role": "Hogwarts Student",
"image_url": "http://i.imgur.com/lX3lE9V.jpg",
"characters_detailed_id": "1",
@thacherhussain
thacherhussain / Contract Killer 3.md
Created August 8, 2017 04:57
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

@thacherhussain
thacherhussain / Translation_Logic.js
Created February 9, 2017 20:27
Translation Logic
//Top array is simulated input
var array = ['at&t', 'ATT', 'att', 'tmobile', 'T-mobile', 'TMobile', 'Tesla'];
var endArray = [];
for(var i = 0; i < array.length; i++) {
switch(array[i]){
case 'at&t':
endArray[i] = 'AT&T';
break;

Java Lesson Plan

Create a lesson plan for a lesson on data types and variables in Java.

You can assume students have seen a “Hello World” application in Java with explanations of “static void main(String[] args)”, how to run a Java program, etc.

Also assume that students have already learned procedural and object-oriented basics in Python, so the lesson should compare/contrast to Python.

This doesn’t need to be a full written-out lesson, just an outline. Though please do include any code examples you would use.

@thacherhussain
thacherhussain / usingTensorFlow_FastStyleTransfer.md
Last active October 12, 2017 09:31
Using TensorFlow for Fast Style Transfer

Using TensorFlow for Fast Style Transfer

Directions for using TensorFlow with the Fast-Style-Transfer repo.

This aritcle assumes that you followed the setup directions found here OR that you have python correctly setup on your machine with an anaconda environment that has TensorFlow installed.

Clone the Fast-Style-Transfer repo: $ git clone https://github.com/lengstrom/fast-style-transfer.git

$ cd fast-style-transfer

@thacherhussain
thacherhussain / devSetup.md
Last active November 24, 2016 05:54
Setting up your Mac OS X Development Environment

Mac OS X for Web Development

Setting up my machine to learn to web development was something I really struggled with before having access to the professional developers that taught my bootcamp program. This guide is based on what they walked us through -- I wish I had had this when I was banging around trying to learn on my own!

This article assumes your computer:

  • Is running Mac OS X 10.12 El Capitan or above
  • Is virus and malware free
  • Uses the latest, stable version of its operating system
  • Has a functioning screen, keyboard, and trackpad
@thacherhussain
thacherhussain / startingWithSurge.md
Created November 12, 2016 04:13
Getting Started with Surge

Using Surge

This article assumes that you have a basic working knowledge of node and that you know how to use the node package manager (npm).

If you are deploying a simple HTML and CSS web page surge is a great (free) option.

First make sure that all your HTML and CSS files are in a single directory and appropriately linked together. Your main HTML page should be called index.html.

From your terminal:

Never use Safari Again

From your iphone

Copy this: javascript:location.href="googlechrome"+location.href.substring(4);

  • Open Safari, at the bottom of the screen select the "export" button and "Add Bookmark" (the actual page you bookmark doesn't matter right now)
  • Open Safari bookmarks, (open-book icon at the bottom of the screen)
  • Select "edit" from the bottom of the screen
  • Find the bookmark you just created
@thacherhussain
thacherhussain / InstallTensorFlow.md
Last active November 24, 2016 21:05
How to install Google's TensorFlow on your Mac

TensorFlow is the Google built open source software library for machine intelliegence.

Per Google: TensorFlow is an open source software library for numerical computation using data flow graphs. Nodes in the graph represent mathematical operations, while the graph edges represent the multidimensional data arrays (tensors) communicated between them.

This article assumes that you have a basic knowledge of the terminal, node, homebrew, and the command line -- and that you are working on a Mac (directions could be adjusted for a PC, but that's not what they're written for). This article also assumes that you do not have a working knowledge of python or anaconda.

Check your version of python:

$ python --version