Skip to content

Instantly share code, notes, and snippets.

@k26dr
k26dr / student-picker.html
Last active November 17, 2015 17:27 — forked from jim-clark/student-picker.html
WDI-04 Student Picker
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Pick-A-Student</title>
<style>
html, body {
font-family: helvetica;
font-weight: lighter;
font-size: 20px;
@k26dr
k26dr / angular-services.md
Last active August 11, 2016 20:38
Angular Services

Angular Services


Learning Objectives

SWBAT:

  • Use Angualar's built in services in controllers
  • Create a custom service using the .factory method
@k26dr
k26dr / js-context-scope.md
Last active June 14, 2016 19:07
Javascript context and scope

Context and Scope in JS


Review

  1. What is variable hoisting?
  2. What are the rules of lexical scoping?
  3. What is the value of this in an event handler?
@k26dr
k26dr / data-science-challenge.ipynb
Last active April 25, 2016 23:45
Data Science code challenge for General Assembly teaching position
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Moving through the Space-Time Continuum of Code

Intro to Git and GitHub

Learning Objectives: SWBAT (Students Will Be Able To…)
Use git init to create a repo
@k26dr
k26dr / heartbeat-lcd.js
Created August 8, 2016 18:29
Linking a Johnny 5 Tessel kit LCD screen up to the heart rate sensor
var five = require("johnny-five");
var Tessel = require("tessel-io");
var tessel = require('tessel');
var board = new five.Board({
io: new Tessel()
});
var pin = tessel.port.B.pin[2];
var startTime = new Date().getTime()
var high = true
@k26dr
k26dr / chromebook-chroot-basics.sh
Last active August 14, 2016 23:50
Install basic programs I want in all my Chromebook chroots
#!/bin/bash
# Install a bunch of programs that I want on every chroot
sudo apt-get update
sudo apt-get install git -y
git config --global user.email "kedarmail@gmail.com"
git config --global user.name "Kedar Iyer"
git config --global push.default simple
sudo apt-get install vim -y
sudo apt-get install python3-pip -y
@k26dr
k26dr / behavioral-cloning-alexnet-modified.py
Last active February 13, 2017 23:38
Modified CNN based off AlexNet for Behavioral Cloning CarND project
model = Sequential()
# Output = 55 x 55
model.add(Lambda(lambda x: x / 255 - 0.5, input_shape=(227, 227, 3)))
model.add(Convolution2D(48, 11, 11, subsample=(4,4)))
model.add(Activation('relu'))
# Output = 27 x 27
model.add(MaxPooling2D((3,3), strides=(2,2)))
model.add(Convolution2D(128, 5, 5, border_mode='same'))
@k26dr
k26dr / rinkeby-faucet
Last active September 8, 2017 18:11
Ethereum Testnet Rinkeby Faucet Gist
0x2fbd98e03bd62996b68cc90dd874c570a1f94dcc
@k26dr
k26dr / transaction-relay.md
Last active March 7, 2018 21:39
Relaying Transactions from Ethereum to EOS
<script> document.getElementById('ga-logo').innerHTML = `

Everipedia `; document.getElementById('ga-logo').style.display = "flex"; document.getElementById('logo-image').style.width = "50px"; document.getElementById('logo-image').style.margin = "0 5px"; document.getElementById('logo-text').style.fontWeight = "bold"; document.getElementById('logo-text').style.color = "white";