This file contains 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 |
This file contains 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
namespace Helpers.Net.Web | |
{ | |
using System.Web.UI; | |
public static partial class WebHelper | |
{ | |
/// <summary> | |
/// Finds a Control Recursively. | |
/// </summary> | |
/// <typeparam name="T">Type control.</typeparam> |
This file contains 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
<TemplatesExport family="Live Templates"> | |
<Template uid="794587b4-3bf5-4e82-83a7-525babed327f" shortcut="bsdlicense" description="BSD License" text="/**
=====================================================================================
$ProjectName$ is intended to be used in both open-source and commercial environments.
=====================================================================================
3-clause license ("New BSD License")


Copyright (c) $Year$, $Author$
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

 * Redistributions of source code must retain the above copyright
 notice, this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 notice |
This file contains 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 'rubygems' | |
require 'rubygems/gem_runner' | |
require 'rubygems/exceptions' | |
required_version = Gem::Requirement.new "> 1.8.5" | |
unless required_version.satisfied_by? Gem.ruby_version then | |
abort "Expected Ruby Version #{required_version}, was #{Gem.ruby_version}" | |
end |
This file contains 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
[paths] | |
default = https://hg01.codeplex.com/forks/prabirshrestha/cls | |
[extensions] | |
reviewboard = D:\Prabir\Documents\PortableApps\msys\msys\1.0\share\mercurial-reviewboard | |
[reviewboard] | |
server = http://reviewboard.nupack.com/ | |
user = prabir |
This file contains 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
// http://www.aspdotnetfaq.com/Faq/How-to-remove-duplicate-Whitespace-Characters-from-a-string.aspx | |
public static string RemoveWhitespaceWithSplit(string inputString) | |
{ | |
StringBuilder sb = new StringBuilder(); | |
string[] parts = inputString.Split(new [] { ' ', '\n', '\t', '\r', '\f', '\v' }, StringSplitOptions.RemoveEmptyEntries); | |
int size = parts.Length; | |
for (int i = 0; i < size; i++) | |
sb.AppendFormat("{0} ", parts[i]); |
This file contains 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
/* to build: | |
* download DiffMatchPatch from http://code.google.com/p/google-diff-match-patch/ | |
* then in command line run | |
* "%WINDIR%\Microsoft.NET\Framework\v3.5\csc.exe" /out:DiffMatchPatch.exe DiffMatchPatch.cs DiffMatchPatchProgram.cs | |
* | |
* to create patch: | |
* DiffMatchPatch.exe file1 file2 destination | |
* to apply patch | |
* DiffMatchPatch.exe patch file_to_patch | |
*/ |
This file contains 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
<TemplatesExport family="Live Templates"> | |
<Template uid="b01f5164-ebc7-4796-92a7-dfebea08afb3" shortcut="sa" description="SubSpec Assert" text=""$Assert$"
 .Assert(
 () => { $END$ });" reformat="True" shortenQualifiedReferences="True"> | |
<Context> | |
<CSharpContext context="Statement" minimumLanguageVersion="2.0" /> | |
</Context> | |
<Categories> | |
<Category name="SubSpec" /> | |
</Categories> | |
<Variables> | |
<Variable name="Assert" expression="" initialRange="0" /> |
This file contains 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 GetPathRelativeToExecutable(string fileName) | |
{ | |
string executable = new System.Uri(System.Reflection.Assembly.GetExecutingAssembly().CodeBase).LocalPath; | |
return System.IO.Path.GetFullPath(System.IO.Path.Combine(System.IO.Path.GetDirectoryName(executable), fileName)); | |
} |
This file contains 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
<%@ Page Language="C#" %> | |
<%@ Import Namespace="FacebookSharp.Web.JavascriptSdk" %> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head runat="server"> | |
<title>Logging you out of facebook...</title> | |
</head> | |
<body> | |
<form id="form1" runat="server"> |
OlderNewer