This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class TmuxForIterm2 < Formula | |
url 'http://iterm2.googlecode.com/files/tmux-for-iTerm2-20130319.tar.gz' | |
#SHA1 'f14a0bad6991b9e3380d5c3a6057e09f62597d1f' | |
homepage 'http://code.google.com/p/iterm2/wiki/TmuxIntegration' | |
depends_on 'libevent' | |
def install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<site name="WebSite1" id="1" serverAutoStart="true"> | |
<application path="/"> | |
<virtualDirectory path="/" physicalPath="C:\PathToWebSite" /> | |
</application> | |
<bindings> | |
<binding protocol="http" bindingInformation=":1151:localhost" /> | |
<binding protocol="http" bindingInformation="*:1151:pswin8mac.local" /> | |
</bindings> | |
</site> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:WindowsInstaller31" | |
cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:WindowsInstaller45" | |
# .NET | |
cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:netframework2" | |
cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:NETFramework35" | |
cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:NETFramework4" | |
# IIS | |
cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:IIS7" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static string UrlDecode(string s) | |
{ | |
#if WINDOWS_PHONE | |
return System.Net.HttpUtility.UrlDecode(s); | |
#elif SILVERLIGHT | |
return System.Windows.Browser.HttpUtility.UrlDecode(s); | |
#else | |
// Since HttpUtility.UrlDecode doesn't exist in Client Framework | |
// get it from Mono. | |
// Thank god, mono libraries are licensed under MIT. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AccountController : Controller | |
{ | |
public ActionResult Login(string returnUrl, string scope) | |
{ | |
if (!Url.IsLocalUrl(returnUrl)) | |
{ | |
returnUrl = "/"; | |
} | |
ViewData["returnUrl"] = returnUrl; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Web; | |
namespace NetflixDemo | |
{ | |
public class AppHarborHttpContextWrapper : HttpContextWrapper | |
{ | |
private readonly HttpContext httpContext; | |
public AppHarborHttpContextWrapper(HttpContext httpContext) : base(httpContext) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Example usage: | |
...in <head>: | |
<link rel="stylesheet" type="text/css" href="/YuiCompressor.ashx?css=reset,style" /> | |
...just before the </body>: | |
<script type="text/javascript" src="/YuiCompressor.ashx?js=main,someotherscript"></script> | |
Changelog: | |
2010-02-18: Updated to support HTTP compression |