Skip to content

Instantly share code, notes, and snippets.

View jlroettger's full-sized avatar

Justin Roettger jlroettger

View GitHub Profile
@jlroettger
jlroettger / ReorderableList.js
Created August 30, 2016 00:53
React DND and Material UI - Reorderable List
import React, { Component } from 'react'
import { Link } from 'react-router'
// Drag and Drop
import { DragDropContext } from 'react-dnd'
import HTML5Backend from 'react-dnd-html5-backend'
// Material UI
import { List } from 'material-ui/List'
import Subheader from 'material-ui/Subheader'
class ReorderableList extends Component {
@jlroettger
jlroettger / roots-template-name-in-admin-bar.php
Last active June 8, 2016 00:13
roots-template-name-in-admin-bar.php
<?php
/**
* Plugin Name: Roots Template Name in Admin Bar
* Description: Shows the name of the current page's template file in the admin bar
*/
namespace roots_tmplt_to_admin_bar;
if ( ! function_exists( 'add_filter' ) )
return;