Skip to content

Instantly share code, notes, and snippets.

View mattsahr's full-sized avatar

Matt Sahr mattsahr

View GitHub Profile
@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,
@mattsahr
mattsahr / native.scroll.html
Created November 17, 2011 02:47
IOS Webkit - native internal scroll - a fix for the document page-top-bounce
<!DOCTYPE html>
<html>
<!-- NOTES
Demo - uses IOS native scroll available in IOS5, but sidestep the document-bounce behavior. Tested on iPad 1, using IOS 5.1.
This approach uses a set of 3 nested divs.
OuterDiv -- fixed height, width, overflow-scrolling: touch;
MiddleDiv -- fixed height width, overflow-scrolling: touch; fits inside OuterDiv
InnerDiv -- fixed height width, bigger than MiddleDiv, so it kicks in the overflow behavior
@mattsahr
mattsahr / require.main.js
Created December 2, 2012 18:04
requireJS Example
/*
* This is an example build file that demonstrates how to use the build system for
* require.js.
*
* copied from here: https://github.com/jrburke/r.js/blob/master/build/example.build.js
* THIS BUILD FILE WILL NOT WORK. It is referencing paths that probably
* do not exist on your machine. Just use it as a guide.
*
*
*/