Skip to content

Instantly share code, notes, and snippets.


Daniel Carlsson Carlsson87

  • Sverige
View GitHub Profile
View good-enough.css
body {
color: #212121;
font-family: "Helvetica Neue", "Calibri Light", Roboto, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
letter-spacing: 0.02em;
Carlsson87 / now.js
Last active Nov 1, 2016
Components and such
View now.js
import React from 'react';
export default React.createClass({
* För att testa logiken i denna metoden behöver vi
* en instans av denna komponenten, annars är "this" inte
* bundet till något och varken "props" eller "state" är tillgängliga.
doAllTheThings() {
Carlsson87 / Broadcast.php
Last active Mar 3, 2016
PHP + NodeJS +
View Broadcast.php
use GuzzleHttp\Client;
$client = new Client([
'base_uri' => '',
$client->request('POST', '', [
'body' => 'raw data'

Folder Structure


  • Clear feature ownership
  • Module usage predictibility (refactoring, maintainence, you know what's shared, what's not, prevents accidental regressions, avoids huge directories of not-actually-reusable modules, etc)
Carlsson87 / ImageBlock.js
Last active Aug 29, 2015
Higher Order Component
View ImageBlock.js
var hasResources = require('./hasResources');
var EditableImageBlock = React.createClass({
// bla bla bla ...
module.exports = hasResources(EditableImageBlock);
You can’t perform that action at this time.