An introduction to curl
using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
Includes HTTP-Header information in the output
// Port, host and auth token of Redis server might be defined as environment | |
// variables. If not, fall back to defaults. | |
var redisPort = process.env.REDIS_PORT || 6379, | |
redisHost = process.env.REDIS_HOST || '127.0.0.1', | |
redisAuth = process.env.REDIS_AUTH || null, | |
redis = require('redis'); | |
// Since we are waiting for the error event, we don't have to check for errors | |
// individually after each Redis command. | |
var onError = function (error) { |
An introduction to curl
using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
Includes HTTP-Header information in the output
The assignments listed here should take you approximately 60 minutes.
To start this assignment, click the button in the upper right-hand corner that says Fork. This is now your copy of the document. Click the Edit button when you're ready to start adding your answers. To save your work, click the green button in the bottom right-hand corner. You can always come back and re-edit your gist.
Markdown is the format all of your homework gists are written in.
Using this markdown cheatsheet, create a new gist of your own by clicking the New Gist
button in the upper right-hand corner of the screen. Create a "Beginners Guide to data types" documenting your data types knowledge so far using Markdown.