Skip to content

Instantly share code, notes, and snippets.

Christopher Comella chrisco

Block or report user

Report or block chrisco

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
chrisco /
Created Sep 16, 2016
Linting ES6+Babel+JSX in Atom

Setup ES6+Babel+JSX Linting with Atom

This sets up Atom to properly lint ES6+Babel+JSX using Airbnb's .eslintrc as a starting point.


  1. Download Atom and get these two packages: Linter and [Linter-ESLint)(
  2. Run npm install --save-dev eslint-config-airbnb babel-eslint eslint-plugin-react from your project root.
  3. Add "extends": "eslint-config-airbnb" to your .eslintrc
View merge.js
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);
chrisco /
Created Aug 31, 2016 — forked from berto/
Breadth First Search And Depth First Search

Breadth First Search

Algorithm for searching graph-like data structures, one level at a time.

Step by Step

  • Start a queue
  • Check current node - if false, mark as visited, continue
chrisco /
Created Aug 23, 2016 — forked from CuriousGnu/ - Auction Scraper
import pycurl
import json
import time
from StringIO import StringIO
i = 0
bnums = []
while True :
chrisco /
Created Jun 24, 2016 — forked from Chaser324/
GitHub Standard Fork & Pull Request Workflow

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.

Creating a Fork

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



Today, you're going to build a blog. It will have users, posts and comments. The users will have many posts. The posts will have many comments. The comments will also be associated with users.

General Instructions:

Setup and planning

  1. Come up with a name for your blog
  2. Wireframe each view
chrisco /
Created May 17, 2016 — forked from dannyfritz/
Promise Patterns for Happier Relationships 💍


new Promise()

  • new Promise((resolve, reject) => {})
const getDinosaur = (name) => {
  return new Promise((resolve, reject) => {
View My Machine Learning Meetup Profile
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:
You can’t perform that action at this time.