Skip to content

Instantly share code, notes, and snippets.

View danjordan's full-sized avatar

Dan Jordan danjordan

View GitHub Profile
const React = require('react');
const getItems = require('./api').getItems;
class ItemsList extends React.Component {
constructor(props) {
super(props);
this.state = {
items: []
}
### Keybase proof
I hereby claim:
* I am danjordan on github.
* I am danjordan (https://keybase.io/danjordan) on keybase.
* I have a public key ASA3ILpao9eVX-7yqSBcN-avnb6oeg1vQ_w0Gt8Afx0Guwo
To claim this, I am signing this object:
<!DOCTYPE html>
<html>
<head>
<title>Scroll Test</title>
<style>
.wrapper {
height: 40px;
width: 400px;
overflow: auto;
}
function menu_shortcode( $atts, $content = null ) {
return wp_nav_menu( array(
'echo' => false,
'items_wrap' => '<h3>' . $content . '</h3><ul id="%1$s" class="%2$s">%3$s</ul>',
'menu'=> $content
) );
}
add_shortcode( 'include_menu', 'menu_shortcode' );
@danjordan
danjordan / roundabout.html
Created February 20, 2012 16:08
Drag and drop with waterwheel shape only responds to horizontal dragging
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="https://raw.github.com/fredhq/roundabout/master/jquery.roundabout.min.js"></script>
<script src="https://raw.github.com/fredhq/roundabout-shapes/master/jquery.roundabout-shapes.min.js"></script>
<script src="http://threedubmedia.googlecode.com/files/jquery.event.drag-2.0.min.js"></script>
<script src="http://threedubmedia.googlecode.com/files/jquery.event.drop-2.0.min.js"></script>
@danjordan
danjordan / admin.php
Created June 9, 2011 09:40 — forked from davestevens/admin.php
Example of preg_match
<?php
/* test regex */
$input = array(
'admin/',
'mens-books',
'admin/foo',
'foo/bar',
'min',
'admin'