Giter Club home page Giter Club logo

learning's Introduction

Useful things

iTerm commands

# change directory
cd [path]
eg: cd ./testingNode

# view directory contents
ls [path] (path is optional, defaults to .)
eg. ls
useful flags: -l (list), -a (all)
eg. ls -al ./testingNode

# run file in node
node ./testingNode/index.js

Git

Committing changes

# view list of files changed since last commit
git status

# view changes
git diff

# add file to be committed
git add [path]
eg: git add testingNode/index.js

# remove a deleted file from git (and save that it was deleted in a commit)
git rm [path]

# remove an accidentally added (git add) file
git reset [path to accidentally added file]
eg. git reset .gitignore

# commit files and changes added, then push to GitHub
git commit -m "This is the commit message"
git push

# pull files from github
git pull

# stage all modified files for commit and add commit message
git commit -am ""

Reverting changes

# revert changes in a file
git checkout [path]
eg: git checkout testingNode/index.js

# reset all changes since last commit (no way back)
git reset --hard

# go back to previous commit (but be careful when committing changes at this point)
git checkout [commit id]

Working with branches

# checking out an existing branch
git checkout [branch_name]
eg: git checkout feature/someCoolFeature

OBS checkout checks out branches not files, no .js


# create new branches (from current branch)
git checkout -b [branch_name]
eg: git checkout -b features

Note: Remember to:

  • git pull on existing branch before branching
  • You will have to write git --set-upstream origin [branch_name] or git push -u origin [branch_name] for short

Clone a repository

git clone [url]
eg: git clone [email protected]:ErlendS/learning.git

Node Package Manager -- npm

# install
npm install [package_name]
eg: npm install lodash

# install and save to dependencies
npm install [package_name] --save

# run scripts
npm run [file_name]
eg: npm run test

Javascript resources

learning's People

Contributors

erlends avatar sseppola avatar

Forkers

sseppola

learning's Issues

Write player reducer

Make the reducer accept:

  • Make move action
  • Test make move action (face up, down, and hand)
  • Receive cards action
  • Test receive cards action (face up, down and hand)

And remember to take consideration of face up, face down, and hand sets.

test

shit is broken yo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.