Skip to content

Instantly share code, notes, and snippets.

View jacobwallenberg's full-sized avatar

Jacob Wallenberg jacobwallenberg

  • @flip-inc
View GitHub Profile
Title Author
Powerful Patty McCord
The Square and the Tower Niall Ferguson
Why We Sleep Matthew Walker
Principles Ray Dalio
The Art of Doing Science and Engineering Richard W. Hamming
Grit Angela Duckworth
Red Notice Bill Bowder
Troublemakers Leslie Berlin
r = requests.get('https://api.github.com/events', stream=True)
print(r.raw.read(10))
import requests
r = requests.get('https://api.github.com/events')
print(r.text)
import requests
r = requests.get('https://api.github.com/events')
print(r.encoding)
import requests
r = requests.get('https://api.github.com/events')
r.json()
import requests
r = requests.get('https://api.github.com/events')
print(r.content)
r = requests.get('https://api.github.com/events', stream=True)
print(r.raw)
import React from 'react'
import { CSSTransitionGroup } from 'react-transition-group'
import {
BrowserRouter as Router,
Route,
Link,
Redirect
} from 'react-router-dom'
/* you'll need this CSS somewhere
import React from 'react'
import {
BrowserRouter as Router,
Route,
Link
} from 'react-router-dom'
// Each logical "route" has two components, one for
// the sidebar and one for the main area. We want to
// render both of them in different places when the
import React from 'react'
import {
BrowserRouter as Router,
Route,
Link
} from 'react-router-dom'
const PEEPS = [
{ id: 0, name: 'Michelle', friends: [ 1, 2, 3 ] },
{ id: 1, name: 'Sean', friends: [ 0, 3 ] },