Skip to content

Instantly share code, notes, and snippets.

🚀
Currently committed to urql development

Phil Plückthun kitten

🚀
Currently committed to urql development
Block or report user

Report or block kitten

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kitten
kitten / setup-surfacebook-powertarget.sh
Last active Apr 13, 2019
Add systemd targets and services to set SB2 perf_mode
View setup-surfacebook-powertarget.sh
#!/bin/sh
echo "Creating systemd ac.target."
cat > /etc/systemd/system/ac.target << 'EOF'
[Unit]
Description=On AC power
DefaultDependencies=no
StopWhenUnneeded=yes
EOF
@kitten
kitten / hyper.js
Last active May 30, 2018
hyper-nightowl colours/theme
View hyper.js
module.exports = {
config: {
/* ... */
// font family with optional fallbacks
fontFamily: '"Dank Mono", "Fira Code", monospace',
fontWeight: 'normal',
fontWeightBold: 'normal',
fontSize: 14,
View gist:9668f0b5df29cf045a5fe844498fa81b
const Header = styled.h1.attrs({
className: '...'
})`
box-shadow: ${p => p.shadow ? '0 2px 2px 0 #aaa' : 'none'};
`
@kitten
kitten / reactiveconf-sc-cfp.md
Last active Dec 17, 2018
ReactiveConf 2017 Lightning Talk CFP: With styled-components into the future
View reactiveconf-sc-cfp.md

styled-components Logo

With styled-components into the future

Preprocessing is dead, long live preprocessing!


This is a CFP for ReactiveConf 2017's open call for Lightning talks. If you'd like to see this talk become a reality, please ⭐️ star this gist. #ReactiveConf

@kitten
kitten / before.js
Last active Apr 10, 2017
Spiking Static CSS Extraction for Styled Components (The Babel Plugin)
View before.js
const Nested = styled.div`
width: 100%;
&:hover {
color: papayawhip;
background: ${p => p.bg};
}
transform: rotate(180deg);
`;
@kitten
kitten / result.js
Created Mar 15, 2017
babel-plugin-styled-components test with styled-components.github.io's App.js
View result.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');
View keybase.md

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:

@kitten
kitten / cla.md
Last active Oct 23, 2018
MIT CLA
View cla.md

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

View cla.md

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 Aug 11, 2016
Data Orchestration Decisions: Entities
View data-orchestration-decisions.md

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.

You can’t perform that action at this time.