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 string SplitPascalCase(string s) | |
{ | |
return System.Text.RegularExpressions.Regex.Replace(s, "([a-z](?=[A-Z])|[A-Z](?=[A-Z][a-z]))", "$1 "); | |
} |
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
body { | |
font-size:100%; | |
line-height:1.125em; /* 16×1.125=18 */ | |
} | |
.bodytext p { | |
font-size:0.875em; | |
} | |
.sidenote { |
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
For /F "tokens=1*" %%a In ('date /T') Do Set Date=%%a %%b | |
REM MM/DD/YYYY | |
Set PrintDate=%Date:~4,10% | |
REM YYYYMMDD | |
Set FileDate=%Date:~10,4%%Date:~4,2%%Date:~7,2% | |
REM HH:MM:SS.MS | |
Set PrintTime=%Time% |
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
Fmt Standard Input/Output | |
------------------------------------------------ | |
100 Default mon dd yyyy hh:mi(AM/PM) | |
101 US mm/dd/yyyy | |
108 - hh:mi:ss | |
112 ISO yymmdd | |
114 - hh:mi:ss:mmm | |
120 ODBC Canonical yyyy-mm-dd hh:mi:ss | |
121 ODBC Canonical yyyy-mm-dd hh:mi:ss.mmm |
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
<html> | |
<body> | |
<span id="main" /> | |
<script> | |
function Circle(radius) { | |
this.PI = 3.141592654; | |
this.radius = radius; | |
this.Diameter = function() { |
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
log | |
database.yml* | |
obj | |
bin | |
deploy | |
deploy/* | |
_ReSharper.* | |
*.csproj.user | |
*.vbproj.user | |
*.resharper.* |
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
using Microsoft.VisualBasic.FileIO; | |
public class DelmitedFileParser | |
{ | |
private void Parse() | |
{ | |
TextFieldParser parser = new TextFieldParser(@"c:\temp\test.csv"); | |
parser.TextFieldType = FieldType.Delimited; | |
parser.SetDelimiters(","); |
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
[user] | |
email = [email protected] | |
name = Josh King | |
[core] | |
excludesfile = /Users/jking/.gitignore | |
#excludesfile = c:/Users/jking/.gitignore | |
editor = vim | |
pager = less -FRSX | |
[merge] | |
tool = vimdiff |
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#" Inherits="System.Web.Mvc.ViewPage" %> | |
<% | |
var originalPath = Request.Path; | |
HttpContext.Current.RewritePath(Request.ApplicationPath, false); | |
IHttpHandler httpHandler = new MvcHttpHandler(); | |
httpHandler.ProcessRequest(HttpContext.Current); | |
HttpContext.Current.RewritePath(originalPath, false); | |
%> |
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
#!/bin/bash | |
SAVEIFS=$IFS | |
IFS=$(echo -en "\n\b") | |
for f in * | |
do | |
echo "$f" | |
done | |
IFS=$SAVEIFS |
OlderNewer