Skip to content

Instantly share code, notes, and snippets.

View mattsahr's full-sized avatar

Matt Sahr mattsahr

View GitHub Profile
<?php
/**
* SOURCE https://github.com/ArmedGuy/discourse_sso_php/blob/master/discourse_sso.php
* This Discourse_SSO class gets used in the full module below
*/
class Discourse_SSO {
private $sso_secret;
@mattsahr
mattsahr / gist:d88c7e868c92dde2757e
Created May 20, 2015 13:42 — forked from colinramsay/gist:42d3dbd0316212d65161
ReactJS -- Animation Wrapper Class
let AnimationWrapper = React.createClass({
render() {
console.log(this.props.childClassName + ' render');
return this.props.children;
},
componentWillAppear (callback) {
console.log(this.props.childClassName + ' willappear');
callback();
@mattsahr
mattsahr / filter.prefs.md
Last active June 22, 2016 20:57
Filter preferences

A filter store in the app currently looks like this

fiters: {
	...
	filters: {
		'555pageId': {
			"member_region": {
				"items": {
					"domestic": false,