I hereby claim:
- I am donniewest on github.
- I am donniewest (https://keybase.io/donniewest) on keybase.
- I have a public key ASDyfcJgEGej-6Ej28efWT_R0STci6AFfp0bT8iDjI5qYgo
To claim this, I am signing this object:
<?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>ANSIBlackColor</key> | |
<data> | |
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS | |
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw | |
LjA2Mjc0NTA5ODAgMC4wNjI3NDUwOTgwIDAuMDYyNzQ1MDk4MAAQAYAC0hAREhNaJGNs | |
YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp |
I hereby claim:
To claim this, I am signing this object:
// Adds a lovely fade in of the modal | |
// and a gentle slide-down of the modal content | |
class Demo extends React.Component { | |
state = { showDialog: false }; | |
render() { | |
return ( | |
<div> | |
<button onClick={() => this.setState({ showDialog: true })}> | |
Show Dialog | |
</button> |
if exists('*matchstrpos') | |
function! s:matchstrpos(expr, pattern) abort | |
return matchstrpos(a:expr, a:pattern) | |
endfunction | |
else | |
function! s:matchstrpos(expr, pattern) abort | |
return [matchstr(a:expr, a:pattern), match(a:expr, a:pattern), matchend(a:expr, a:pattern)] | |
endfunction | |
endif |
let s:formatprg = findfile('node_modules/.bin/prettier-eslint', '.;') | |
if !executable(s:formatprg) | |
let s:formatprg = findfile('node_modules/.bin/prettier', '.;') | |
endif | |
if !executable(s:formatprg) | |
let s:formatprg = exepath('prettier-eslint') | |
endif |
// routes.js | |
const routes = [ | |
{ | |
path: '/', | |
component: Home, | |
exact: true | |
}, | |
{ | |
path: '/gists', | |
component: Gists |
{ | |
"compilerOptions": { | |
"target": "es2017", | |
"module": "es6", | |
"jsx": "preserve" | |
}, | |
"typeAcquisition": { | |
"enable": true | |
} | |
} |
Disclaimer: Please follow this guide being aware of the fact that I'm not an expert regarding the things outlined below, however I made my best attempt. A few people in IRC confirmed it worked for them and the results looked acceptable.
Attention: After following all the steps run gdk-pixbuf-query-loaders --update-cache
as root, this prevents various gdk-related bugs that have been reported in the last few hours. Symptoms are varied, and for Cinnamon the DE fails to start entirely while for XFCE the icon theme seemingly can't be changed anymore etc.
Check the gist's comments for any further tips and instructions, especially if you are running into problems!
Results after following the guide as of 11.01.2017 13:08:
// __tests__/CheckboxWithLabel-test.js | |
import React from 'react'; | |
import {shallow} from 'enzyme'; | |
import CheckboxWithLabel from '../CheckboxWithLabel'; | |
it('CheckboxWithLabel changes the text after click', () => { | |
// Render a checkbox with label in the document | |
const checkbox = shallow( | |
<CheckboxWithLabel labelOn="On" labelOff="Off" /> |