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
pragma solidity ^0.4.0; | |
contract Election_basic { | |
mapping (string => uint) votes; | |
function vote (string candidate) public { | |
votes[candidate]++; | |
} | |
function getVotes (string candidate) public view returns (uint) { |
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
/* | |
Video Guide: https://youtu.be/1q7EEd6Huf0 | |
*/ | |
function Vector (magnitude, angle) { | |
var m, a; | |
this.getX = function () { | |
return m * Math.cos(a); | |
}; |
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
/* | |
Video Guide: https://youtu.be/amXSWXQssww | |
*/ | |
body { | |
margin: 0; | |
} | |
.top-bar { | |
display: flex; |
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
<!-- | |
Video Guide: https://youtu.be/39b_FstkhSM | |
--> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Toggle Switches</title> | |
<link rel="stylesheet" href="toggle-switches.css"> |
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
<!-- | |
Video Guide: https://youtu.be/fF-vtP3sjPc | |
--> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Stopwatch</title> | |
<link rel="stylesheet" href="stopwatch.css"> |
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
/* | |
Video Guide: https://youtu.be/eqhEq9_uVas | |
*/ | |
var menus = document.getElementsByClassName('hamburger-menu'); | |
[].forEach.call(menus, function (m) { | |
m.addEventListener('click', function () { | |
m.classList.toggle('open'); | |
}); |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>CSS Basics</title> | |
<link rel="stylesheet" href="styles.css"> | |
</head> | |
<body> | |
<main> | |
<h1>Blog</h1> |
NewerOlder