This Gist goes over setting up a gulp workflow that will:
- watch for any sass changes, then compiles sass source into css
- watch for any changes in the public directory, and trigger live-reload
- serve static content in
public/
$/
artifacts/
build/
docs/
lib/
packages/
samples/
src/
tests/
// Router object | |
var Router = function () { | |
var self = this; | |
// Watch hashchange | |
window.onhashchange = function () { | |
self.process(); | |
}; | |
// Run on load |
public void FormsAuthentication_OnAuthenticate(object sender, FormsAuthenticationEventArgs args) | |
{ | |
var machineKeySection = (MachineKeySection) WebConfigurationManager.GetWebApplicationSection("system.web/machineKey"); | |
var cookie = args.Context.Request.Cookies[".ASPXAUTH"]; | |
if (cookie == null || !Regex.IsMatch(cookie.Value, "^([a-fA-F0-9]{2})+$")) | |
return; | |
var cookieBytes = ByteUtility.ToBytes(cookie.Value); | |
int signatureLength; |