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
| import React, { Component } from "react"; | |
| import { render } from "react-dom"; | |
| import Hello from "./Hello"; | |
| import { createStore } from "redux"; | |
| const shallowEqual = require("shallow-equal/objects"); | |
| const store = createStore((oldState={}, action) => { | |
| return Object.assign(oldState, { storeValue: action.storeValue }) | |
| }); |
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
type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
Getting started:
Related tutorials:
| /** | |
| * A collection of helper prototype for everyday DOM traversal, manipulation, | |
| * and event binding. Sort of a minimalist jQuery, mainly for demonstration | |
| * purposes. MIT @ m3g4p0p | |
| */ | |
| window.$ = (function (undefined) { | |
| /** | |
| * Duration constants | |
| * @type {Object} |
| // Get all users | |
| var url = "http://localhost:8080/api/v1/users"; | |
| var xhr = new XMLHttpRequest() | |
| xhr.open('GET', url, true) | |
| xhr.onload = function () { | |
| var users = JSON.parse(xhr.responseText); | |
| if (xhr.readyState == 4 && xhr.status == "200") { | |
| console.table(users); | |
| } else { | |
| console.error(users); |