Skip to content

Instantly share code, notes, and snippets.

View kitten's full-sized avatar

Phil Pluckthun kitten

View GitHub Profile
@kitten
kitten / keybase.md
Last active February 26, 2018 07:38

Keybase proof

I hereby claim:

  • I am kitten on github.
  • I am philpl (https://keybase.io/philpl) on keybase.
  • I have a public key whose fingerprint is F846 DACD 264C 2FC5 6588 813B B8BE F6B3 7786 2FDE

To claim this, I am signing this object:

const Header = styled.h1.attrs({
className: '...'
})`
box-shadow: ${p => p.shadow ? '0 2px 2px 0 #aaa' : 'none'};
`
@kitten
kitten / before.js
Last active April 10, 2017 19:57
Spiking Static CSS Extraction for Styled Components (The Babel Plugin)
const Nested = styled.div`
width: 100%;
&:hover {
color: papayawhip;
background: ${p => p.bg};
}
transform: rotate(180deg);
`;
@kitten
kitten / result.js
Created March 15, 2017 01:09
babel-plugin-styled-components test with styled-components.github.io's App.js
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _react = require('react');
@kitten
kitten / cla.md
Last active January 1, 2017 22:38
CC0 CLA

Individual Contributor License Agreement (CLA)

Thank you for submitting your contributions to this project.

By signing this CLA, you agree that the following terms apply to all of your past, present and future contributions to the project.

License.

You hereby represent that all present, past and future contributions are governed by the

@kitten
kitten / data-orchestration-decisions.md
Last active August 11, 2016 10:34
Data Orchestration Decisions: Entities

Data Orchestration Decisions: Entities

Problems we tried to solve with Entities

We need to migrate fragmented parts of code that handle business logic into a centralised, predictable place

Our reasoning behind that is that, at the time, we are writing logic based on our data structures in UI components. Thus no component can act as a smart or dumb component, since every component when needed interprets the data in its own way.

/*
* Modern Reset
* https://gist.github.com/philpl/2bff8f6c9af027649dfd
* v1.0 (8th July 2016)
* License: CC0-1.0
*/
html, body {
height: 100%;
width: 100%;
@kitten
kitten / DraculaUnchained.itermcolors
Last active March 30, 2016 10:29
Setting up OS X systems
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.0</real>
@kitten
kitten / tmux.rb
Created March 29, 2016 20:15
Tmux Homebrew Formula with Truecolor
class Tmux < Formula
desc "Terminal multiplexer"
homepage "https://tmux.github.io/"
stable do
url "https://github.com/tmux/tmux/releases/download/2.1/tmux-2.1.tar.gz"
sha256 "31564e7bf4bcef2defb3cb34b9e596bd43a3937cad9e5438701a81a5a9af6176"
patch do
# This fixes the Tmux 2.1 update that broke the ability to use select-pane [-LDUR]
@kitten
kitten / setup.sh
Created March 13, 2016 21:28
PiTV install script recovered from pitv.pw server
#!/bin/sh
# Setup PiTV
#
# Copyright (C) 2014 Phil Plückthun <phil@plckthn.me>
#
# This work is licensed under the MIT License
if [ `id -u` -ne 0 ]
then
echo "Please start this script with root privileges!"