Skip to content

Instantly share code, notes, and snippets.

Jordan Brauer jordanbrauer

Block or report user

Report or block jordanbrauer

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
@newhouse
newhouse / mediumUsersFollowedByCount.js
Last active Jul 12, 2019
Medium API: get number of followers for User
View mediumUsersFollowedByCount.js
/**
* Example of how to get the number of followers for a Medium.com User.
*
*
* Related links:
* https://github.com/Medium/medium-api-docs/issues/30#issuecomment-227911763
* https://github.com/Medium/medium-api-docs/issues/73
*/
// LODASH
View mochatutorial.md

Testing Node.JS applications using Mocha

Mocha is a unittest framework for Node. In this document, we explain how you can test your javascript code and also your HTTP servers.

Installing Mocha

Use npm to install Mocha:

npm install mocha
@blech
blech / netflix-genre-crawl.py
Last active Jan 29, 2019
Fetch genre names from Netflix
View netflix-genre-crawl.py
#!/usr/bin/python
# TODO make range command line arguments
import sys, codecs
sys.stdout = codecs.getwriter('utf-8')(sys.stdout) # if your terminal can't do utf-8, well...
import time
import urllib2
import BeautifulSoup
@irazasyed
irazasyed / Install Composer using MAMP's PHP.md
Last active Aug 15, 2019
Instructions on how to change preinstalled Mac OS X PHP to MAMP's PHP Installation and then install Composer Package Management
View Install Composer using MAMP's PHP.md

Change default Mac OS X PHP to MAMP's PHP Installation and Install Composer Package Management


Instructions to Change PHP Installation


First, Lets find out what version of PHP we're running (To find out if it's the default version).

To do that, Within the terminal, Fire this command:

which php
You can’t perform that action at this time.