Skip to content

Instantly share code, notes, and snippets.

@rmoorman
rmoorman / tree.md
Created March 11, 2014 20:45 — forked from hrldcpr/tree.md

One-line Tree in Python

Using Python's built-in defaultdict we can easily define a tree data structure:

def tree(): return defaultdict(tree)

That's it!

//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Updated: 2010/12/05
// License: MIT
//
// Copyright (c) 2010-2013 Diego Perini (http://www.iport.it)
//
// Permission is hereby granted, free of charge, to any person

Keybase proof

I hereby claim:

  • I am rmoorman on github.
  • I am rico (https://keybase.io/rico) on keybase.
  • I have a public key whose fingerprint is B8F4 6676 2429 01B9 2CC0 034A 6A0F D840 6418 A8DE

To claim this, I am signing this object:

@rmoorman
rmoorman / .profile
Last active August 29, 2015 14:06 — forked from jezdez/.profile
export PYENV_VIRTUALENVWRAPPER_PREFER_PYVENV="true"
if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi
if which pyenv-virtualenv-init > /dev/null; then eval "$(pyenv virtualenv-init -)"; fi
pyenv virtualenvwrapper
@rmoorman
rmoorman / fig.yml
Last active August 29, 2015 14:06 — forked from HelloGrayson/fig.yml
#
# Zookeeper
#
# https://registry.hub.docker.com/u/jplock/zookeeper/
#
zk:
image: jplock/zookeeper
ports:
- "2181:2181"
@rmoorman
rmoorman / maybe.py
Last active August 29, 2015 14:07 — forked from senko/maybe.py
# maybe.py - a Pythonic implementation of the Maybe monad
# Copyright (C) 2014. Senko Rasic <senko.rasic@goodcode.io>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#

Files

The basic structure of a React+Flux application (see other examples)

 - /src/actions/AppActions.js     - Action creators (Flux)
 - /src/components/Application.js - The top-level React component
 - /src/constants/ActionTypes.js  - Action types (Flux)
 - /src/core/Dispatcher.js        - Dispatcher (Flux)
 - /src/stores/AppStore.js        - The main store (Flux)

2015-01-29 Unofficial Relay FAQ

Compilation of questions and answers about Relay from React.js Conf.

Disclaimer: I work on Relay at Facebook. Relay is a complex system on which we're iterating aggressively. I'll do my best here to provide accurate, useful answers, but the details are subject to change. I may also be wrong. Feedback and additional questions are welcome.

What is Relay?

Relay is a new framework from Facebook that provides data-fetching functionality for React applications. It was announced at React.js Conf (January 2015).

name = MyModule Multiply Image Styles
description = A wrapper to contain a multiply image style
package = Images
core = 7.x
version = "7.x-1.0"
core = "7.x"
project = "My Sample Project"
datestamp = "1374690555"

Installing Hiawatha Webserver on Mac OS X and running Symphony CMS

SCREENCASTS

  • Part One: Installing Hiawatha Web Server and running Symphony CMS on Mac OS X (5 min) -- watch
  • Part Two: Installing Hiawatha Web Server and running Symphony CMS on Mac OS X (5 min) -- watch
  • Part Three: Installing Hiawatha Web Server and running Symphony CMS on Mac OS X (4 min 56 seconds) -- watch

SCREENCAST NOTES:

PREREQUISITES