- Try create-react-app to make a simple web app
- Try to deploy it on Netlify and show off :)
This file contains hidden or 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
| <div id="app" /> |
This file contains hidden or 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
| project_name=$1 | |
| project_description=$2 | |
| location=$HOME/code/$project_name | |
| pkg=$location/package.json | |
| readme=$location/readme.md | |
| node_version=$(node --version) | |
| npm_version=$(npm --version) | |
| if [ -z "$project_name" ]; then | |
| echo "Error: a project name must be provided." |
This file contains hidden or 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
| // 2018-06-06/08 | |
| // Following the article http://dominictarr.com/post/149248845122/pull-streams-pull-streams-are-a-very-simple | |
| // values is a source pull-stream | |
| function values(array) { | |
| var i = 0 | |
| return function (abort, cb) { | |
| if(abort) return cb(abort) | |
| // console.log('Hello from closure, i=', i) | |
| return cb(i >= array.length ? true : null, array[i++]) | |
| } |
This file contains hidden or 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
| #!/bin/bash | |
| set -e | |
| echo "This script will move all the files in $PWD" | |
| echo "... into subdirectories with names YYYY-MM-DD" | |
| echo "... corresponding to the file modification dates" | |
| echo "If you wish to continue, type yes:" | |
| read -p "Are you sure? " -r | |
| if [ "$REPLY" != "yes" ]; then | |
| exit | |
| fi |
This file contains hidden or 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
| import { | |
| randomMove, | |
| getDirection, | |
| isVisible, | |
| canKill, | |
| safeRandomMove, | |
| fastGetDirection, | |
| turn, | |
| getDistance | |
| } from '../lib/utils.js' |
This file contains hidden or 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 = (grunt) -> | |
| # configure the tasks | |
| grunt.initConfig | |
| copy: | |
| build: | |
| cwd: "source" | |
| src: [ | |
| "**" | |
| "!**/*.styl" |