Skip to content

Instantly share code, notes, and snippets.

View chrisco's full-sized avatar

Christopher Comella chrisco

View GitHub Profile
@chrisco
chrisco / setup-es6-linting.md
Created September 16, 2016 03:36
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.

Steps

  1. Download Atom and get these two packages: Linter and [Linter-ESLint)(https://atom.io/packages/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
@chrisco
chrisco / merge.js
Created August 31, 2016 21:36 — forked from w3cj/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
chrisco / bfs_and_dfs.md
Created August 31, 2016 21:00 — forked from bertoort/bfs_and_dfs.md
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
chrisco / beezid_scraper.py
Created August 23, 2016 09:34 — forked from CuriousGnu/beezid_scraper.py
Beezid.com - Auction Scraper
import pycurl
import json
import time
from StringIO import StringIO
i = 0
bnums = []
while True :
print(str(i))
@chrisco
chrisco / GitHub-Forking.md
Created June 24, 2016 03:17 — forked from Chaser324/GitHub-Forking.md
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

CRUD Blog

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
chrisco / Promise_Patterns.md
Created May 17, 2016 21:11 — forked from dannyfritz/Promise_Patterns.md
Promise Patterns for Happier Relationships 💍

Promises

new Promise()

  • 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
---