Skip to content

Instantly share code, notes, and snippets.

View chadfurman's full-sized avatar

Chad Furman chadfurman

View GitHub Profile
@chadfurman
chadfurman / notes2.md
Created January 24, 2017 13:55
meeting notes 2

Meeting Notes:

  • Discussed reviewing meeting notes at the end -- divide and conqueror? Putting together a nice writeup for each day?
  • Talked about note writing techniques
  • let hijacks block-scope -- differences between let and var is "block scope" and "hoisting"
  • let is cool, has some advantages, but is it really useful? Garbage collector? Security? "Hoisting" is important!
  • let-blocks are cool. Too bad they're not actually in JS. let-er is cool, but try/catch work-around is lame.
  • let is cool, but must be used with caution
  • Does let actually increase performance? let might be a bit more performant, due to stricter scope and better garbage collecting
  • Mozilla suggests "use let" with transpilers, even though let isn't supported yet.
  • let "is" hoisted? Just hoisted with a different value -- "undeclared" rather than the value you give it.
@chadfurman
chadfurman / hour2.md
Last active January 24, 2017 04:22
hour2

Scope and Execution Review:

var foo = "bar"; // LHS foo, RHS "bar", foo global scope

function bar() { // remember bar is a declaration in global scope
  var foo = "baz"; // LHS foo, RHS "baz", foo local to bar()
  
  function baz(foo) { // remember `foo` is declared here as local to baz
 foo = "bam";
@chadfurman
chadfurman / p
Created January 22, 2017 03:55
p
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC+nfuAiyRnys5Yphfc8ghmtTCMD8caFn1X8vnS+HbtXLRlfB9twEjFe1WBGf7pafueO5OZN14cLyuHvauC/AXA9jX7HVhEGOTh3eQZHhZLSIUqv0qFiNiPAi6ahpCjITWnpiCNMbDkM6w5oquLw7qiF5Vg5RQWFVdm69f8yoBzmgtWMgMNa1QMQzDbz7zpLCiF451dJnfrKrGTzbKqnrGkgyJ1bkItXMKfrn7rB6MgOd6R49W/rn8w0UzbVkhphHI4GkEF89VuUe5H9EcHN4gEqzNlsduo13SrsqdKf8cMJ2qNb3rLO2INp+AvO6+Z4PytO/jY5I+c2e34API52ad0kkcB/PigGkgAIIRADaHgr0fzvRw4N7TbeIXzwBDKPplFlruSu9jC5fKwrgLF0tEx1l8A20qr9wceXpArFzmiGtYIdo3rYthKKuz6MMqa+IiZVvfO5BTmJaTDHykCTflOQK9WZgRBQjCnzB/c6JQFEEAvhnIUI7ebH0GPFOM/q2Rv3KmnJXax7sT8C3RCy6CLJ4I7LC5fsstgHX5UIP/Y1zcGFsOs4SMomr7WQO6X04ilXKHVv/9k6TWm4OVFpQ6ZAemxmCUkxPqgOSg0gexiC2T+DNRjp8pg3CAdacjH7Xt9VPJ6YIIszcoTJmN+FbnkP7X4zX/CRf8wWDcPJjbfgQ== lotus@Infinity

Speaker Introduction Part 1

  • @getify -- Kyle Simpson -- Teaches JS professionally
    • 50-75% traveling and teaching, rest of time “community building” -- open source / speaking / meet-ups
  • LABjs -- dynamic script loader, 5-years old -- fast, ensure order for dependencies
    • Concatenate everything, why script loader? Seeing a switch to HTTP2. Why is this important? HTTP2 changes the way we optimize page load -- persistent socket protocol. Parallel downlaoding.
  • “Grips” -- templating engine.
    • There are “logicless” templating engines like mustache. Requires a brittle connection between backend and frontend. Lots of data massaging.
    • Alternative -- whole programming language embedded into template. I.E. PHP, Dust, Handlebars. Causes mess of business logic leaked into template due to business pressure.
    • “Grips” is an oppinionated templating engine
@chadfurman
chadfurman / ups
Last active September 30, 2016 10:44
ups
Windsor Locks, CT, United States 09/30/2016 6:14 A.M. Arrival Scan
09/30/2016 5:38 A.M. A late flight has caused a delay. We're adjusting plans and working to deliver your package as quickly as possible. / Your shipment is scheduled to arrive today after the delivery commitment time.
Louisville, KY, United States 09/30/2016 4:24 A.M. Departure Scan
09/30/2016 2:37 A.M. Import Scan
09/30/2016 1:07 A.M. Arrival Scan
Anchorage, AK, United States 09/29/2016 3:06 P.M. Departure Scan
09/29/2016 9:50 A.M. Arrival Scan
Osaka, Japan 09/29/2016 7:44 P.M. Departure Scan
09/29/2016 3:49 A.M. A mechanical failure has delayed delivery. We're adjusting plans to deliver your package as quickly as possible.
Osaka, Japan 09/28/2016 10:30 P.M. Arrival Scan
@chadfurman
chadfurman / package.json
Created August 31, 2016 13:41
package.json
{
"devDependencies": {
"apache-server-configs": "^2.7.1",
"babel-cli": "^6.14.0",
"babel-core": "^6.0.15",
"babel-preset-es2015": "^6.0.15",
"browser-sync": "^2.9.0",
"cucumber-mink": "^1.4.1",
"del": "^2.0.2",
"eslint-config-google": "^0.3.0",
@chadfurman
chadfurman / horse.txt
Last active August 9, 2016 20:28
If your life was a horse
_________________________________________
/ If your life was a horse, you'd have to \
\ shoot it. /
-----------------------------------------
\ \
\ \
\ _\^
\ _- oo\
\---- \______
\ )\
@chadfurman
chadfurman / keybase.md
Created July 26, 2016 21:22
keybase.md

Keybase proof

I hereby claim:

  • I am chadfurman on github.
  • I am chadfurman (https://keybase.io/chadfurman) on keybase.
  • I have a public key whose fingerprint is D75D 8D8E E127 9D06 E4EC B06B 7339 021F 9257 B0CF

To claim this, I am signing this object:

@chadfurman
chadfurman / wp6.sh
Last active June 25, 2016 05:42
wp6.sh with reset option
#!/bin/bash
# WiFi Pineapple Connector for Linux
# EULA https://www.wifipineapple.com/licence/eula.txt
# License https://www.wifipineapple.com/licence/software_licence.txt
wpver=6.4
spineapplenmask=255.255.255.0
spineapplenet=172.16.42.0/24
spineapplelan=eth1
spineapplewan=wlan0
❯ sudo find / -type f -name 'libs3.*'
/home/vagrant/libs3/inc/libs3.h
/home/vagrant/libs3/build/deb-dev/usr/include/libs3.h
/home/vagrant/libs3/build/deb-dev/usr/lib/libs3.a
/home/vagrant/libs3/build/deb/usr/lib/libs3.so.2.0
/home/vagrant/libs3/build/lib/libs3.so.2
/home/vagrant/libs3/build/lib/libs3.a
/home/vagrant/libs3/libs3.spec
/home/vagrant/libs3/mswin/libs3.def
/usr/include/libs3.h