Skip to content

Instantly share code, notes, and snippets.

View giopunt's full-sized avatar

Giovanni Puntil giopunt

View GitHub Profile
@giopunt
giopunt / README.md
Last active September 6, 2018 21:31
JS Unit Tests 101

JS UNIT TESTS 101 👍

Create a basic project

Let's start by opening a new console/terminal window from a convenient working directory and type:

$ mkdir js-unit-test-101
$ cd js-unit-test-101
@giopunt
giopunt / index.html
Created July 15, 2017 13:07
REDUX TRANING - APPLY UI // source https://jsbin.com/xareso
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>REDUX TRANING - APPLY UI</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.0.4/redux.js"></script>
<script src="https://unpkg.com/react@0.14.0/dist/react.js"></script>
<script src="https://unpkg.com/react-dom@0.14.0/dist/react-dom.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-redux/4.0.0/react-redux.js"></script>
@giopunt
giopunt / index.html
Created July 14, 2017 13:00
REDUX TRANING - APPLY UI // source https://jsbin.com/xareso
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>REDUX TRANING - APPLY UI</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.0.4/redux.js"></script>
<script src="https://unpkg.com/react@0.14.0/dist/react.js"></script>
<script src="https://unpkg.com/react-dom@0.14.0/dist/react-dom.js"></script>
</head>
@giopunt
giopunt / index.html
Created July 14, 2017 12:56
REDUX TRANING - APPLY UI // source https://jsbin.com/xareso
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>REDUX TRANING - APPLY UI</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.0.4/redux.js"></script>
<script src="https://unpkg.com/react@0.14.0/dist/react.js"></script>
<script src="https://unpkg.com/react-dom@0.14.0/dist/react-dom.js"></script>
</head>
@giopunt
giopunt / index.html
Created July 14, 2017 12:45
REDUX TRANING - APPLY UI // source https://jsbin.com/xareso
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>REDUX TRANING - APPLY UI</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.0.4/redux.js"></script>
<script src="https://unpkg.com/react@0.14.0/dist/react.js"></script>
<script src="https://unpkg.com/react-dom@0.14.0/dist/react-dom.js"></script>
</head>
@giopunt
giopunt / index.html
Created July 14, 2017 11:07
REDUX TRANING - APPLY UI // source https://jsbin.com/xareso
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>REDUX TRANING - APPLY UI</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.0.4/redux.js"></script>
<script src="https://unpkg.com/react@0.14.0/dist/react.js"></script>
<script src="https://unpkg.com/react-dom@0.14.0/dist/react-dom.js"></script>
</head>
@giopunt
giopunt / index.html
Created July 13, 2017 16:00
REDUX TRANING - COMBINE REDUCERS MANUALLY // source https://jsbin.com/xareso
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>REDUX TRANING - COMBINE REDUCERS from scratch</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.0.4/redux.js"></script>
<script src="https://wzrd.in/standalone/expect@latest"></script>
<script src="https://wzrd.in/standalone/deep-freeze@latest"></script>
</head>
@giopunt
giopunt / index.html
Created July 12, 2017 16:35
REDUX TRANING - COMBINE REDUCERS MANUALLY // source https://jsbin.com/xareso
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>REDUX TRANING - COMBINE REDUCERS MANUALLY</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.0.4/redux.js"></script>
<script src="https://wzrd.in/standalone/expect@latest"></script>
<script src="https://wzrd.in/standalone/deep-freeze@latest"></script>
</head>
@giopunt
giopunt / index.html
Created July 12, 2017 15:37
REDUX TRANING - EXPECTATIONS // source https://jsbin.com/xareso
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>REDUX TRANING - EXPECTATIONS</title>
<script src="https://wzrd.in/standalone/expect@latest"></script>
<script src="https://wzrd.in/standalone/deep-freeze@latest"></script>
</head>
<body>
@giopunt
giopunt / index.html
Created July 6, 2017 15:40
REDUX TRANING - EXPECTATIONS // source https://jsbin.com/sovojel
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>REDUX TRANING - EXPECTATIONS</title>
<script src="https://wzrd.in/standalone/expect@latest"></script>
<script src="https://wzrd.in/standalone/deep-freeze@latest"></script>
</head>
<body>