Table of Contents generated with DocToc
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
/* | |
2520 is the smallest number that can be divided by | |
each of the numbers from 1 to 10 without any remainder. | |
What is the smallest positive number that is evenly | |
divisible by all of the numbers from 1 to 20? | |
*/ |
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
let csvAtom = Recoil.atom({key: "csvAtom", default: Belt.Map.String.empty}) | |
let headers = ( | |
`codigo`, | |
`descripcion`, | |
`cantidad requerida`, | |
) | |
module CsvButton = { | |
type makeCsvData = {fields: array<string>, data: array<array<string>>} |
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
const If = ({ children, orThis, it }) => { | |
return it ? children : orThis; | |
} | |
// usage example | |
<div> | |
<If it={age > 18} orThis={"🥤"}> 🍺 </If> | |
</div> |
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
module.exports = [ | |
{ | |
_key: 'MEXICAN_TACOS', | |
_id: 'recipes/MEXICAN_TACOS', | |
_rev: '_XTqNHIW--_', | |
name: 'MEXICAN TACOS', | |
Calories: 150, | |
Fat: 5, | |
Carbs: 1, | |
Protein: 23, |
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
const If = ({ children, orThis, it }) => { | |
return it ? children : orThis; | |
} | |
// usage example | |
<div> | |
<If it={age > 18} orThis={"🥤"}> 🍺 </If> | |
</div> |
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
var c = document.getElementById("myCanvas"); | |
var ctx = c.getContext("2d"); | |
var imgs = { | |
"spaceShip" : document.getElementById("space"), | |
"scream" : document.getElementById("scream") | |
} | |
function Scene(context, width, height, images){ | |
this.context = context; | |
this.width = width; |
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
Verifying my Blockstack ID is secured with the address 14eYnieZ5LhYJGU4W6CXnvXdVsBGExJ78S https://explorer.blockstack.org/address/14eYnieZ5LhYJGU4W6CXnvXdVsBGExJ78S |
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
/* | |
euler | |
Each new term in the Fibonacci sequence is generated by adding the previous two terms. | |
By starting with 1 and 2, the first 10 terms will be: | |
1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... | |
By considering the terms in the Fibonacci sequence whose values do not exceed four million, | |
find the sum of the even-valued terms. | |
*/ |
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
"scripts": { | |
"clean": "rm -rf build && mkdir build", | |
"build-css": "node-sass scss/app.scss public/css/app.css", | |
"build-server": "babel -d ./build ./server -s", | |
"build": "npm run clean && npm run build-css && npm run build-server", | |
"lint": "eslint source/ --quiet", | |
"start": "node ./build/index.js", | |
"debug": "node --debug ./build/index.js", | |
"test": "for i in $(ls tests/); do babel-node \"./tests/${i}\" | faucet ; done", | |
"validate": "npm run lint; npm run test && npm outdated --depth 0" |
NewerOlder