Skip to content

Instantly share code, notes, and snippets.

View derekclair's full-sized avatar
:octocat:
git commit'n

Derek Clair derekclair

:octocat:
git commit'n
View GitHub Profile
<link rel="import" href="../google-map/google-map.html">
<link rel="import" href="../notification-elements/notification-alert.html">
<link rel="import" href="../topeka-elements/category-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
<polymer-element name="my-element">
<template>
<style>
:host {
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
@derekclair
derekclair / .eslintrc
Created June 21, 2017 21:28
Test Drive: ESLint Config
{
"env": {
"browser": true,
"es6": true,
"mocha": true,
"node": true
},
"sourceType": "module",
"parser": "babel-eslint",
"parserOptions": {
@derekclair
derekclair / .eslintrc.js
Last active October 25, 2017 03:25
Proposed: ESLint Config
const OFF = 0;
const WARN = 1;
const ERROR = 2;
module.exports = {
'env': {
'browser': true,
'es6': true,
'node': true,
@derekclair
derekclair / PostPreview.js
Created May 31, 2018 07:52 — forked from keatz55/PostPreview.js
Context API - Simple Session Example
import React from 'react';
import Paper from 'material-ui/Paper';
import withSession from '../hocs/withSession';
class PostPreview extends React.PureComponent {
render() {
const { session } = this.props;
return (
<Paper square elevation={1}>
@derekclair
derekclair / Editor.js
Created May 31, 2018 07:52 — forked from keatz55/Editor.js
Context API - Simple Tree Structure Example
import React from 'react';
import Paper from '@material-ui/core/Paper';
import uuidv4 from 'uuid/v4';
import TreeContext from './contexts/TreeContext';
import Node from './components/Node';
import NodeEditor from './components/NodeEditor';
class Editor extends React.Component {
@derekclair
derekclair / settings.json
Last active November 13, 2020 17:09
VS Code `settings.json`
{
// "editor.disableTranslate3d": true,
// _________________________________________________________________________ [language]
"[elixir]": {
"editor.formatOnSave": true,
"editor.quickSuggestions": {
"other": true,
"comments": false,
"strings": false
}
#!/bin/bash
# Instructions!
# cd ~
# wget https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/adafruit-pitft.sh
# chmod +x adafruit-pitft.sh
# sudo ./adafruit-pitft.sh
if [ $(id -u) -ne 0 ]; then
echo "Installer must be run as root."
@derekclair
derekclair / .vimrc
Last active September 8, 2019 00:37
My "current" `.vimrc`
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Maintainer:
" Amir Salihefendic — @amix3k
"
" Awesome_version:
" Get this config, nice color schemes and lots of plugins!
"
" Install the awesome version from:
"
" https://github.com/amix/vimrc
<?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>
YnBsaXN0MDDUAQIDBAUGKyxYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKcHCBMZHSQoVSRudWxs1QkKCwwNDg8QERJcTlNDb21wb25lbnRzVU5TUkdCXE5T
Q29sb3JTcGFjZV8QEk5TQ3VzdG9tQ29sb3JTcGFjZVYkY2xhc3NPECcwLjM0NjQyMDY0
NTcgMC40MzAzNDgxODc3IDAuNDcwNTk1MTgxIDFPECcwLjI1ODAzMjg1ODQgMC4zNTg1