Reach UI is an accessible foundation for React applications and design systems.
The three equally important goals are to be:
- Accessible
- Composable
- Stylable
By default, ZSH hook chpwd
is not triggered on shell startup. The tutorial here provides some ideas to fix this.
We can use a trick to define a function run only once on precmd
and destruct itself automatically.
function _self_destruct_hook {
local f
for f in ${chpwd_functions}; do
"$f"
https://twitter.com/snookca/status/1073299331262889984?s=21
Happy to chat about this. There’s an obvious disclaimer that there’s a cost to css-in-js solutions, but that cost is paid specifically for the benefits it brings; as such it’s useful for some usecases, and not meant as a replacement for all workflows.
(These conversations always get heated on twitter, so please believe that I’m here to converse, not to convince. In return, I promise to listen to you too and change my opinions; I’ve had mad respect for you for years and would consider your feedback a gift. Also, some of the stuff I’m writing might seem obvious to you; I’m not trying to tell you if all people of some of the details, but it might be useful to someone else who bumps into this who doesn’t have context)
So the big deal about css-in-js (cij) is selectors.
#!/usr/bin/env node | |
/* | |
Generate a markdown links list from iCloud tabs, on macOS | |
Usage: | |
./icloudtabs2md.js > icloudtabs.md | |
./icloudtabs2md.js | pbcopy | |
Require: |
<h1>Standardisation</h1> | |
There was not a lot of discussion of this at <a href=Introduction.html>ECHT90</a>, but there seem to be two leads: | |
<ol> | |
<li><a href=People.html#newcombe>Steve newcombe's</a> and Goldfarber's "Hytime" committee | |
looking into SGML, and | |
<li>An ISO working group known as MHEG, "Multimedia/HyperText Expert Group". | |
led by one Francis Kretz (Thompsa SA? Rennes?). | |
</lo> |
// NOTE: the '#form-id' selector below will most certainly be different | |
// for whatever page you're on. Remember to change it in both instances! | |
// run this in the terminal to save the state of your form | |
// in your browser's LocalStorage: | |
[].forEach.call(document.querySelector('#form-id').elements, function(el) { | |
localStorage.setItem(el.name, el.value); | |
}); | |
// then refresh the page and run this to restore your form values: |
// ------------ | |
// counterStore.js | |
// ------------ | |
import { | |
INCREMENT_COUNTER, | |
DECREMENT_COUNTER | |
} from '../constants/ActionTypes'; | |
const initialState = { counter: 0 }; |
I fell in love with CoffeeScript a couple of years ago. Javascript has always seemed something of an interesting curiosity to me and I was happy to see the meteoric rise of Node.js, but coming from a background of Python I really preferred a cleaner syntax.
In any fast moving community it is inevitable that things will change, and so today we see a big shift toward ES6, the new version of Javascript. It incorporates a handful of the nicer features from CoffeeScript and is usable today through tools like Babel. Here are some of my thoughts and issues on moving away from CoffeeScript in favor of ES6.
While reading I suggest keeping open a tab to Babel's learning ES6 page. The examples there are great.
Holy punctuation, Batman! Say goodbye to your whitespace and hello to parenthesis, curly braces, and semicolons again. Even with the advanced ES6 syntax you'll find yourself writing a lot more punctuatio
A mega FAQ about GraphQL/Relay:
https://gist.github.com/wincent/598fa75e22bdfa44cf47
A series of posts by Huey Petersen on GraphQL and ClojureScript:
http://hueypetersen.com/posts/2015/02/02/first-thoughts-on-graph-ql/ http://hueypetersen.com/posts/2015/02/08/modeling-queries-graph-ql-like/
/* @flow */ | |
var React = require("react") | |
var Immutable = require("immutable") | |
// In order to use any type as props, including Immutable objects, we | |
// wrap our prop type as the sole "data" key passed as props. | |
type Component<P> = ReactClass<{},{ data: P },{}> | |
type Element = ReactElement<any, any, any> |