git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
This means, on your local machine, you haven't made any SSH keys. Not to worry. Here's how to fix:
*nix based command prompt (but not the default Windows Command Prompt!)cd ~/.ssh. This will take you to the root directory for Git (Likely C:\Users\[YOUR-USER-NAME]\.ssh\ on Windows).ssh folder, there should be these two files: id_rsa and id_rsa.pub. These are the files that tell your computer how to communicate with GitHub, BitBucket, or any other Git based service. Type ls to see a directory listing. If those two files don't show up, proceed to the next step. NOTE: Your SSH keys must be named id_rsa and id_rsa.pub in order for Git, GitHub, and BitBucket to recognize them by default.ssh-keygen -t rsa -C "[email protected]". Th| "use strict"; | |
| let looper = (callback) => { | |
| let n = 2000000; | |
| while (n > 0) { | |
| callback(n); | |
| n--; | |
| } | |
| } |
| import * as mongoose from 'mongoose'; | |
| export let Schema = mongoose.Schema; | |
| export let ObjectId = mongoose.Schema.Types.ObjectId; | |
| export let Mixed = mongoose.Schema.Types.Mixed; | |
| export interface IHeroModel extends mongoose.Document { | |
| name: string; | |
| power: string; |
| 'use strict'; | |
| import * as mongoose from 'mongoose'; | |
| import * as Utils from '../../modules/utils'; | |
| export let ReadyState = { | |
| Disconnected: 0, | |
| Connected: 1, | |
| Connecting: 2, |
| "Walking on water and developing software from a specification are easy if both are frozen." | |
| - Edward V Berard | |
| "Computer science education cannot make anybody an expert programmer any more than studying brushes and pigment can make somebody an expert painter." | |
| - Eric S. Raymond | |
| "Talk is cheap. Show me the code." | |
| - Linus Torvalds | |
| "In God we trust. All others must bring data." |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
| Relationship hash name | Like | Dislike | Respect | Hate |
|---|---|---|---|---|
| ARMY | ARMY | COP | ||
| AGGRESSIVE_INVESTIGATE | HATES_PLAYER AGGRESSIVE_INVESTIGATE |
PLAYER | ||
| AMBIENT_GANG_BALLAS | AMBIENT_GANG_BALLAS GUARD_DOG |
|||
| AMBIENT_GANG_CULT | AMBIENT_GANG_CULT GUARD_DOG |
|||
| AMBIENT_GANG_FAMILY | AMBIENT_GANG_FAMILY GUARD_DOG |
|||
| AMBIENT_GANG_LOST | AMBIENT_GANG_LOST GUARD_DOG |
|||
| AMBIENT_GANG_MARABUNTE | AMBIENT_GANG_MARABUNTE GUARD_DOG |
|||
| AMBIENT_GANG_MEXICAN | AMBIENT_GANG_MEXICAN GUARD_DOG |
| interface OperationQueue { | |
| queue: Promise<void>; | |
| } | |
| export function makeOperationQueue(): OperationQueue { | |
| return {queue: Promise.resolve()}; | |
| } | |
| export function queuedOperation(operationQueue: OperationQueue) { | |
| return function(_target: any, _key: string, descriptor: TypedPropertyDescriptor<(...args: any[]) => any>) { |