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
chrisco / setup-es6-linting.md
Created Sep 16, 2016
Linting ES6+Babel+JSX in Atom
View setup-es6-linting.md

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
View setupSalesforce.md
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
chrisco / bfs_and_dfs.md
Created Aug 31, 2016 — forked from berto/bfs_and_dfs.md
Breadth First Search And Depth First Search
View bfs_and_dfs.md

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 Aug 23, 2016 — forked from CuriousGnu/beezid_scraper.py
Beezid.com - Auction Scraper
View beezid_scraper.py
import pycurl
import json
import time
from StringIO import StringIO
i = 0
bnums = []
while True :
print(str(i))
@chrisco
chrisco / GitHub-Forking.md
Created Jun 24, 2016 — forked from Chaser324/GitHub-Forking.md
GitHub Standard Fork & Pull Request Workflow
View GitHub-Forking.md

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

View CRUD-blog-workshop.md

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 — forked from dannyfritz/Promise_Patterns.md
Promise Patterns for Happier Relationships 💍
View Promise_Patterns.md

Promises

new Promise()

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