Skip to content

Instantly share code, notes, and snippets.

View DonnieWest's full-sized avatar
🧙‍♂️
Dark Lord of VIM, Destroyer of Servers and Conqueror of the Java Badlands

Donnie West DonnieWest

🧙‍♂️
Dark Lord of VIM, Destroyer of Servers and Conqueror of the Java Badlands
View GitHub Profile
<?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

Keybase proof

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:

// 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>
@DonnieWest
DonnieWest / cm.vim
Last active March 4, 2018 04:21
nvim-completion-manger shim
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
@DonnieWest
DonnieWest / javascript.vim
Last active September 30, 2022 01:43
Some prettier configs
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
@DonnieWest
DonnieWest / README.md
Last active December 5, 2022 23:12
Restraint

Restraint - a minimal terminal

Requires qtermwidget. To build, run:

g++ $(pkg-config --cflags --libs Qt5Widgets qtermwidget5) -fPIC -o restraint restraint.cpp

@DonnieWest
DonnieWest / data.js
Created February 16, 2017 22:06 — forked from ryanflorence/data.js
// routes.js
const routes = [
{
path: '/',
component: Home,
exact: true
},
{
path: '/gists',
component: Gists
{
"compilerOptions": {
"target": "es2017",
"module": "es6",
"jsx": "preserve"
},
"typeAcquisition": {
"enable": true
}
}
@DonnieWest
DonnieWest / fix-infinality.md
Created January 18, 2017 04:30 — forked from cryzed/fix-infinality.md
A set of instructions on how to fix the harfbuzz + Infinality issue and restoring good-looking, Infinality-like font rendering.

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!

Screenshots

Results after following the guide as of 11.01.2017 13:08:

@DonnieWest
DonnieWest / CheckboxWithLabel-test.js
Created November 30, 2016 05:31
enzyme-stolen-sample-code
// __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" />