Skip to content

Instantly share code, notes, and snippets.

View torleifhalseth's full-sized avatar

Torleif Halseth torleifhalseth

View GitHub Profile
@torleifhalseth
torleifhalseth / Replacing uHydrator with Ditto.md
Last active March 24, 2017 09:48
uHydrator to Ditto regex replacement thingy

Add the patterns to the find and replace dialog in Visual Studio for ultimate win. Replace in entire solution for more ultimate win.

#Matching pattern

_?ModelFactory\.Create<([a-z]+)>\((_?[a-z]+\.?[a-z]+?)\)

#Replacement pattern

@bjrn
bjrn / scrollfix.html
Created February 1, 2012 21:54
IOS Webkit - native internal scroll - a fix for the document page-bounce
<!DOCTYPE html>
<html>
<!-- NOTES
Demo - uses IOS native scroll available in IOS5, but sidestep the document-bounce behavior.
another take on the solution first seen here: https://gist.github.com/1372229
https://github.com/joelambert/ScrollFix/issues/2
Tested on iPad 2, using IOS 5.0.1.