Skip to content

Instantly share code, notes, and snippets.

View flexzuu's full-sized avatar

Jonas Faber flexzuu

View GitHub Profile
@flexzuu
flexzuu / transport-loggging.go
Created August 13, 2019 15:46
wrap a transport to log the body
import "github.com/motemen/go-loghttp"
httpClient.Transport = &loghttp.Transport{
Transport: httpClient.Transport,
LogRequest: func(req *http.Request) {
b, _ := httputil.DumpRequestOut(req, true)
log.Printf("out body: %s", string(b))
},
LogResponse: func(resp *http.Response) {
b, _ := httputil.DumpResponse(resp, true)
@flexzuu
flexzuu / apollo.js
Created December 11, 2017 08:13
apollo new hoc
(query, config) => (BaseComponent) => (props) => React.createFactory(graphql(query(props), config(props))(BaseComponent))(props)
@flexzuu
flexzuu / cs.yaml
Last active January 28, 2017 06:36
title: Informatik - Tutorium - 2016
tutoriumData:
- key: '1'
title: Überblick und Historie
link: https://moodle.thm.de/mod/resource/view.php?id=143268
deadline: 10/31/2016
- key: '2'
title: Zahlensysteme und Textkodierung
link: https://moodle.thm.de/mod/resource/view.php?id=143270
deadline: 11/17/2016
{
page: page(url: "http://www.mittelhessen.de/lokales/region-wetzlar_artikel,-21-Jaehrige-bei-Frontalzusammenstoss-lebensgefaehrlich-verletzt-_arid,809009.html") {
content: query(selector: ".article.detail") {
heading: text(selector: "h1.article_headline")
date: text(selector: ".article_date")
category: text(selector: ".article_category")
teaser: text(selector: ".article_teaser")
body: query(selector: ".article_body p"){
text
}
config.resolve.root = path.resolve(__dirname, './src');
# Frameworks and Libs
Style: http://yeticss.com/ ?
Maybe: https://github.com/jxnblk/rebass + https://github.com/jxnblk/reflexbox
Icons: https://github.com/gorangajic/react-icons
Server: apollo server
Client: apollo client, redux
Helper libs
https://github.com/acdlite/recompose
https://github.com/ramda/ramda
@flexzuu
flexzuu / setupDevEnv
Last active May 11, 2016 23:18
Setting up my linux flavor.
#MAC: http://sourabhbajaj.com/mac-setup/index.html
#z shell
sudo apt-get install zsh
#instal git
sudo apt-get install git
#Restart Terminal