Skip to content

Instantly share code, notes, and snippets.

View ms-vague's full-sized avatar

Maria Vatranis ms-vague

  • New Orleans
View GitHub Profile
@ms-vague
ms-vague / stringdrills.txt
Last active December 20, 2016 23:27
String Drills
// wiseperson //
https://jsbin.com/fenidak/2/edit?js,console
// shouter //
https://jsbin.com/dotadi/2/edit?js,console
// text normalizer //
https://jsbin.com/jixipuz/2/edit?js,console
@ms-vague
ms-vague / numberdrills
Created December 21, 2016 00:11
Number Drills
// square area //
https://jsbin.com/gazofe/2/edit?js,console
// temperature conversion //
https://jsbin.com/loqavi/2/edit?js,console
// is divisible //
https://jsbin.com/seracim/2/edit?js,console
@ms-vague
ms-vague / logicdrills
Created December 22, 2016 02:46
Logic Drills
// traffic lights //
https://jsbin.com/tusitar/2/edit?js,console,output
// error alert //
https://jsbin.com/figuciv/1/edit?js,output
@ms-vague
ms-vague / arraydrills
Created December 22, 2016 17:56
Array basic drills
// creating arrays //
https://jsbin.com/wotofe/2/edit?js,console
// adding array items //
https://jsbin.com/yekunax/2/edit?js,console
// accessing array items //
https://jsbin.com/zuseqib/2/edit?js,console
@ms-vague
ms-vague / arraysloopsdrills
Created December 22, 2016 22:49
Arrays and Loop Drills
// max and min //
https://jsbin.com/jotujal/2/edit?js,console
// compute the average //
https://jsbin.com/haviqox/1/edit?js,console
// fizzbuzz //
https://jsbin.com/qokujif/4/edit?js,console
@ms-vague
ms-vague / challenge
Last active December 26, 2016 21:17
Challenge: Scope, Side Effects, and Hoisting
// What is scope? //
Scope refers where and when variables are accesible. There are two types of scope, Global and local (aka function scope).
Understanding how scope works cuts down on bugs in your program.
Global scope is accessible outside of a Function. They are available everywhere.
e.g.
var x = 'foo';
function doSomething() {
console.log(x);
} // foo (available in Global Scope)
@ms-vague
ms-vague / objectbasicdrills
Created December 28, 2016 00:31
Object Basic Drills
https://jsbin.com/tilive/2/edit?js,console
https://jsbin.com/foveho/2/edit?js,console
https://jsbin.com/xegowal/2/edit?js,console
https://jsbin.com/kibexoh/2/edit?js,console
@ms-vague
ms-vague / advobjectsdrills
Last active December 29, 2016 05:01
Advanced Objects Drills
// frequent word //
https://jsbin.com/mahije/2/edit?js,console
// data merge //
https://jsbin.com/mapiqoy/edit?js,console
(Why do the first and second key start with underscores? 'results[key][_key] = otherData[_key];')
// receipe factory //
https://jsbin.com/nekuhu/1/edit?js,output
@ms-vague
ms-vague / eventlistdrills
Last active January 7, 2017 22:56
Event Listener Drills
// lightbulb toggle //
https://jsbin.com/wagafa/1/edit?html,js,output
@ms-vague
ms-vague / capstone
Last active February 7, 2017 23:46
API Hack Capstone
I want to do something that incorporates my interest in pop culture.
I love movies. Preferably bad movies.
So, for my capstone I want to share my love of bad movies. I was thinking of making a random bad movie generator.
I will use the Vimeo API that will filter only B grade movies:
https://vimeo.com/tag:b+movie
It will also filter by user ‘likes’:
The more likes it has, a better quality bad movie.
https://vimeo.com/tag:b+movie/sort:likes