Skip to content

Instantly share code, notes, and snippets.

@wktdev
wktdev / bloc_answer.md
Last active November 18, 2016 07:51
bloc_answers

JavaScript Fundamentals

The reason this code does not work is because only one event listener is created and it is being assigned a selector of getElementById('btn-3')

You can see this yourself in the following example:

var prizes = ['A Unicorn!', 'A Hug!', 'Fresh Laundry!'];

for (var btnNum = 0; btnNum < prizes.length; btnNum++) {

Checkpoint:
```
git checkout -b branch-name
git status (use often as needed)
git add .
git commit -m "Description"
git checkout master
git merge branch-name
@wktdev
wktdev / wiktionarylookup.html
Created January 2, 2018 04:35 — forked from nichtich/wiktionarylookup.html
Look up a word in Wiktionary via MediaWiki API and show the Wiktionary page
<html>
<head>
<script type="text/javascript" src="./jquery-1.4.3.min.js"></script>
<script type="text/javascript">
var baseURL = 'http://en.wiktionary.org';
function showPage(page,text) {
var sourceurl = baseURL + '/wiki/' + page;
$('#pagetitle').text(page);
$('#wikiInfo').html(text);
$('#sourceurl').attr('href',sourceurl);
@wktdev
wktdev / waveforms.html
Created January 26, 2018 11:21 — forked from httnn/waveforms.html
Drawing waveforms with the Web Audio API
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Waveform drawer</title>
</head>
<body>
<input type="file" /><br />
<svg preserveAspectRatio="none" width="2000" height="100" style="width:900px;height:50px;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<linearGradient id="Gradient" x1="0" x2="0" y1="0" y2="1">
# ECMAScript 6 (ES6)
The technical name of the JavaScript language is ECMAScript. ECMA stands for the European Computer Manufacturers Association. This is the organization that oversees the standardization process of the JavaScript language.ECMAScript version 6 (ES6 for short) is a newer version of JavaScript. In this module, you will learn about some of the features of ES6 including:
* Imports/Exports
* Default function arguments
* The let and const keywords
* Template literals
* The rest parameter
# ECMAScript 6 (ES6)
The technical name of the JavaScript language is ECMAScript. ECMA stands for the European Computer Manufacturers Association. This is the organization that oversees the standardization process of the JavaScript language.ECMAScript version 6 (ES6 for short) is a newer version of JavaScript. In this module, you will learn about some of the features of ES6 including:
* Imports/Exports
* Default function arguments
* The let and const keywords
* Template literals
* The rest parameter

ECMAScript 6 (ES6)

The technical name of the JavaScript language is ECMAScript. ECMA stands for the European Computer Manufacturers Association. This is the organization that oversees the standardization process of the JavaScript language.ECMAScript version 6 (ES6 for short) is a newer version of JavaScript. In this module, you will learn about some of the features of ES6 including:

  • Imports/Exports
  • Default function arguments
  • The let and const keywords
  • Template literals
  • The rest parameter
Assignment
You've been recruited by a young startup called ExpressFood. ExpressFood delivers their own high-quality meals to residences in less than 20 minutes with their team of delivery bikers. 🚲
ExpressFood vous livre à domicile en moins de 20 minutes !
ExpressFood delivers food to you in less than 20 minutes!
Every day, ExpressFood creates 2 main dishes and 2 desserts at its headquarters with the help of its experienced chefs. These 2 main dishes are stored in a cold setting and then given to delivery people who bike to the food to the residence that requested it...in less than 20 minutes!
On its website, ExpressFood allows clients to order one or multiple dishes and desserts. There are no fees for delivery. Menu items change every day.
Once a client submits their order, they see a page displaying if the order has gone out for delivery yet, as well as an estimate for their meal's arrival time.
@wktdev
wktdev / react.md
Last active September 23, 2019 07:54

React Tutorial

These notes attempt to distil the totality of the React library down to a collection of foundational concepts that you need to build basic React applications. The provided code examples and explanations are intended to be as minimalistic as possible.

  • What is React?
  • Setup (non-Node.JS)
  • Components
  • Nesting Components
  • Component Specific CSS

SQL databases come in different "flavors". This cheatsheet references MYSQL commands.

A database is composed of tables that contain rows of data.

A table acts as a template for real-world data.