new Promise((resolve, reject) => {})
const getDinosaur = (name) => {
return new Promise((resolve, reject) => {
resolve({name})
Hi, | |
I just received a bachelor's degree in Software Engineering and Management (on top of my MBA) | |
and am looking to join an agile company where I can contribute and learn. | |
More info: http://bit.ly/my-extended-profile | |
Thanks, | |
Chris | |
--- |
Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, when I started going through the process of forking and issuing pull requests, I had some trouble figuring out the proper method for doing so and made quite a few mistakes along the way. I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.
In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.
Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your
import pycurl | |
import json | |
import time | |
from StringIO import StringIO | |
i = 0 | |
bnums = [] | |
while True : | |
print(str(i)) |
function mergeSort(arr) { | |
// | |
// If your array has a length less than 2, congratulations! It's already sorted. | |
if(arr.length < 2) { | |
return arr; | |
} | |
// Otherwise, cut your array in half, and consider the two sub-arrays separately. | |
var firstLength = arr.length / 2; | |
var firstHalf = arr.slice(0, firstLength); | |
console.log('firstLength', firstLength); |
#Setting Up Salesforce
###Install these!
This sets up Atom to properly lint ES6+Babel+JSX using Airbnb's .eslintrc as a starting point.
npm install --save-dev eslint-config-airbnb babel-eslint eslint-plugin-react
from your project root."extends": "eslint-config-airbnb"
to your .eslintrc