Skip to content

Instantly share code, notes, and snippets.

@timwco
timwco / index.js
Created August 15, 2016 17:23
Resolve A List of Promises
'use strict';
let promise1 = $.getJSON('http://www.omdbapi.com/?i=tt1285016');
let promise2 = $.getJSON('http://www.omdbapi.com/?i=tt0111161');
let promise3 = $.getJSON('http://www.omdbapi.com/?i=tt0109830');
let promise4 = $.getJSON('http://www.omdbapi.com/?i=tt0068646');
let promise5 = $.getJSON('http://www.omdbapi.com/?i=tt0114369');
let promises = [promise1, promise2, promise3, promise4, promise5];
@timwco
timwco / timeline.md
Created July 14, 2016 18:56
FEE Sprint Course Timeline (4 Week)

Prerequisites

  • HTML/CSS Understanding
  • Strong Computer/Typing Skills
  • Knowledge of Version Control

Week 1

  • Intro to JavaScript (Syntax, Operators & Types)
  • Functions & Conditionals
@timwco
timwco / add-item.html
Created April 16, 2016 02:41
AngularJS Workshop Templates - April 16th, 2016
<h3>Add A Product</h3>
<hr>
<form ng-submit="addProduct(product)">
<div class="form-group">
<input type="text" class="form-control" ng-model="product.name" placeholder="Product Name">
</div>
<div class="form-group">
<input type="text" class="form-control" ng-model="product.image" placeholder="ex: images/01.jpg">
</div>
<div class="input-group">
@timwco
timwco / welcome.md
Last active April 16, 2016 02:45
AngularJS Workshop - April 16th, 2016
@timwco
timwco / topics.md
Last active October 19, 2015 19:43
Review
  • Overall Goals

HTML/CSS

  • CSS Style Resource
  • HTML - benefits of tags (elepsisdfsasdfa)
  • Whitespace in HTML/CSS
  • Proper nesting in SASS/CSS (how far)

Git / Tools

@timwco
timwco / st3.sh
Created October 15, 2015 02:33
Sublime Text 3 - From Command Line
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
@timwco
timwco / prework.md
Created May 24, 2015 22:33
Pre Work

Welcome

Below is part of the information that we usually send out a few weeks befor class starts. Let me know if you have any questions.

Your Workstation

Other than your brain, the most important tool you will use is your workstation. Making sure it is properly set up is extremely important. This is the reason we do the install party. Here are some things you'll need to make sure you have.

  • Macbook Air or Pro running the latest OSX
  • Clean up your machine. Those of you who have not started with a new machine, take some time to clean up your desktop and even your file system if possible.
@timwco
timwco / index.html
Last active August 29, 2015 14:21
Calculator Exercise
<!DOCTYPE html>
<html>
<head>
<title>Calculator</title>
<style type="text/css">
.container { width: 300px; margin: 15px auto;}
</style>
</head>
<body>
@timwco
timwco / ghregex.js
Last active December 9, 2016 20:52
Github to GH Pages to Github Bookmarklet
/*
Takes you from a Github Repo URL to the GH Pages version on github.io
*/
javascript: (function() {
var s = location.href;
var r = /^((http[s]?|ftp):\/)?\/?([^:\/\s]+)((\/\w+)*\/)([\w\-\.]+[^#?\s]+)(.*)?(#[\w\-]+)?$/g;
location.href = s.replace(r, "http:/$5.github.io/$6");
})();
// URL Encoded Version (for use as a bookmarklet)
@timwco
timwco / bookmarklet.js
Created November 20, 2014 03:02
Github Repo to Github Pages Website - JavaScript Regex - Bookmarklet
javascript:(function()%7Bvar s%3Dlocation.href%3Bvar r%3D/%5E((http%5Bs%5D%3F%7Cftp):%5C/)%3F%5C/%3F(%5B%5E:%5C/%5Cs%5D%2B)((%5C/%5Cw%2B)*%5C/)(%5B%5Cw%5C-%5C.%5D%2B%5B%5E%23%3F%5Cs%5D%2B)(.*)%3F(%23%5B%5Cw%5C-%5D%2B)%3F%24/g%3Blocation.href%3Ds.replace(r,"http:/%245.github.io/%246")%3B%7D)()%3B