Skip to content

Instantly share code, notes, and snippets.

View charliewilco's full-sized avatar
🦕
...

Charlie ⚡️ charliewilco

🦕
...
View GitHub Profile
{
"name": "redownwrite",
"version": "0.1.0",
"private": true,
"devDependencies": {
"enzyme": "^2.8.0",
"react-a11y": "^0.3.3",
"react-addons-test-utils": "^15.5.0",
"react-fix-it": "^0.3.3",
"react-scripts": "^0.9.5",
@charliewilco
charliewilco / init.lua
Created April 4, 2017 05:51
Old Hammerspoon Config
local hyper = {"cmd", "alt", "ctrl"}
local hyperS = {"cmd", "alt", "ctrl", "shift"}
local chrome = 72
hs.window.animationDuration = 0
hs.hotkey.bind(hyper, "H", function()
local win = hs.window.focusedWindow()
local f = win:frame()
f.x = f.x - 10
@charliewilco
charliewilco / twttr.js
Created February 27, 2017 07:29
Twitter.js
<Twitter username='tylermcginnis33'>
{(user) => user === null
? <Loading />
: <Badge info={user} />}
</Twitter>
@charliewilco
charliewilco / .hyper.js
Created January 22, 2017 12:19
Hyper config
module.exports = {
config: {
fontSize: 16,
fontFamily: 'Input Mono Condensed',
cursorShape: 'BEAM',
cursorColor: 'rgba(255, 255, 255, .25)',
foregroundColor: '#FFF',
borderColor: 'transparent',
css: '',
bell: false,
const config = {
module: {
loaders: [
{
test: /\.js?$/,
exclude: /node_modules/,
loader: 'babel',
query: {
presets: ['es2015', 'react']
}
@charliewilco
charliewilco / FlyoutMenu.js
Last active November 24, 2016 02:03
Router trouble.
import React from 'react'
import { View, StyleSheet } from 'react-native'
import { List, ListItem } from 'react-native-elements'
import { User } from '../components'
import {
Profile,
Nearby,
Friends,
Explore,
Cities,
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
@charliewilco
charliewilco / SassMeister-input-HTML.html
Last active November 2, 2016 20:03
Ganymede Playground on SassMeister
<div class='Flex'>
<div class="Flex__child bcc gray0"></div>
<div class="Flex__child bcc gray1"></div>
<div class="Flex__child bcc gray2"></div>
<div class="Flex__child bcc gray3"></div>
<div class="Flex__child bcc gray4"></div>
<div class="Flex__child bcc gray5"></div>
<div class="Flex__child bcc gray6"></div>
</div>
<div class='Flex'>
:root {
--UIList-border: #CCCCCC;
--UIList-space: .5rem;
}
.o-UIList {
list-style: inside none;
margin: 0;
padding: 0;
}
class Anchorage {
constructor (cn, options = {}) {
const d = {
linkClass: 'c-anchorage',
headlines: 'h1, h2, h3, h4, h5, h6'
}
this.options = {
linkClass: options.linkClass ? options.linkClass : d.linkClass,
headlines: options.headlines ? options.headlines : d.headlines