- Webpack wrap up (15 mins)
- Working with variables in global scope / Google API call and callback function
initAutocomplete
- Import LESS / CSS files inline for deploy
require(second.less/css)
-- relative to build or src dir?
- Working with variables in global scope / Google API call and callback function
- Closures -- Need more practice (15 mins)
- When are closures used? When should I look for using?
- Side Question: if
let
variable declared in global, can it be changed from insind function? - Pair Program? Node.js OR Meal Calc (20 mins)
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
'use static'; | |
const express = require('express'); | |
const mongoose = require('mongoose'); | |
const config = require('./config'); | |
const bodyParser = require('body-parser'); | |
const ghRobot = require('./ghRobot'); | |
const request = require('request'); | |
const bcrypt = require('bcryptjs'); | |
const passport = require('passport'); |
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
module.exports = { | |
config: { | |
// default font size in pixels for all tabs | |
fontSize: 12, | |
// font family with optional fallbacks | |
fontFamily: 'Menlo, "DejaVu Sans Mono", "Lucida Console", monospace', | |
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk) | |
cursorColor: 'rgba(248,28,229,0.8)', |
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
export const ADD_REPO = 'ADD_REPO'; | |
export const addRepo = repository => ({ | |
type: ADD_REPO, | |
repository | |
}); | |
export const RATE_REPO = 'RATE_REPO'; | |
export const rateRepo = (repository, rating) => ({ | |
type: RATE_REPO, | |
repository, |
Localfy aims to help people discover artists local to areas where they live using the Last.fm API.
- LastFM API
- Github Repository -- Active in 'development' branch
TODO:
- API Selection -- Last.fm
- Make simple API request to test
_Inspired by the Jerry Sienfeld technique, GitChain offers the metaphor of a chain to serve as a cue to stay motivated programming. Commit code each day. Build your chain. Don't break it.
- Watch for GitHub commits
- Monitor 'streaks'
- Authenticate with Github
- Set current goal to display front and center
A responsive clientside React-Redux based pomodoro web app
- Basic pomodoro timer, customizable time to user preference
- Manage and assign pomodoro sessions to user activities / categories
- Each session can be assigned to a particular activity. Total sessions in each activity can be tracked.
- Pull media / news from external API(s) for between sessions
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/python | |
from selenium import webdriver | |
from datetime import datetime | |
import time | |
import urllib | |
url = "http://stackoverflow.com" | |
everyXHours = 6 | |
refreshrate = 60 * 60 * everyXHours # Refresh every hour | |
browser = webdriver.Firefox() |
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
// props to @rosszurowski for this: | |
// https://gist.github.com/rosszurowski/67f04465c424a9bc0dae | |
function lerpColor(a, b, amount) { | |
let ah = parseInt(a.replace(/#/g, ''), 16), | |
ar = ah >> 16, ag = ah >> 8 & 0xff, ab = ah & 0xff, | |
bh = parseInt(b.replace(/#/g, ''), 16), | |
br = bh >> 16, bg = bh >> 8 & 0xff, bb = bh & 0xff, | |
rr = ar + amount * (br - ar), | |
rg = ag + amount * (bg - ag), |