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 OrderState AsOrderState(this int i) | |
{ | |
return (OrderState)i; | |
} |
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 OrderState GetState(this Order self) | |
{ | |
return (OrderState)self.State; | |
} | |
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 BrowserCacheAttribute : ActionFilterAttribute | |
{ | |
/// <summary> | |
/// Gets or sets the cache duration in seconds. | |
/// The default is 10 seconds. | |
/// </summary> | |
/// <value>The cache duration in seconds.</value> | |
public int Duration | |
{ | |
get; |
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
data AstNode = | |
usingAliasDeclaration(AstType import, str alias, NodeType nodeType) | |
| typeParameterDeclaration(str identifier, VarianceModifier variance, NodeType nodeType) | |
| arraySpecifier(int dimensions, NodeType nodeType) | |
| caseLabel(Expression expression, NodeType nodeType) | |
| comment(str content, NodeType nodeType, bool startsLine, CommentType commentType) | |
| namespaceDeclaration(str fullName, str name, list[AstNode] members, list[Identifier] identifiers, NodeType nodeType) | |
| cSharpModifierToken(ICollection allModifiers, Modifiers modifier, NodeType nodeType) | |
| parameterDeclaration(str name, Expression defaultExpression, ParameterModifier parameterModifier, AstType type, list[AttributeSection] attributes, NodeType nodeType) | |
| constructorInitializer(ConstructorInitializerType constructorInitializerType, list[AstNode] arguments, NodeType nodeType) |
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
module CSharp | |
public alias CSharpFile=list[Ast]; | |
data AstNode = comment(CommentType commentType, str content, bool startsLine) | |
| namespaceDeclaration(str name, list[AstNode] identifiers, list[AstNode] members, str name) | |
| constraint(list[AstType] baseTypes, str typeParameter) | |
| queryOrdering(QueryOrderingDirection direction, Expression expression) | |
| attribute(list[Expression] arguments) | |
| cSharpModifierToken(list[Modifiers] allModifiers, list[Modifiers] modifier) | |
| variablePlaceholder(str name, str name) |
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
// Add support for an alternative (second) dateFormat to the jQuery datepicker | |
(function () { | |
var oldMethod = $.datepicker.parseDate; | |
$.datepicker.parseDate = function () { | |
var dateValue = Date.parseExact(arguments[1], 'ddMMyyyy'); | |
if (dateValue) { | |
return dateValue; | |
} | |
return oldMethod.apply(this, arguments); | |
}; |
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
L Restart | |
REP 10 { | |
L Start | |
J1 Unset | |
W1 | |
J_ Move | |
L Unset | |
W0 | |
L Move | |
MF |
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
J14 | |
W1 | |
J_5 | |
W0 | |
MF | |
J19 | |
W1 | |
J_10 | |
W0 | |
MF |
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
#!/bin/bash | |
# License: Public Domain. | |
# Author: Joseph Wecker, 2012 | |
# | |
# Are you tired of trying to remember what .bashrc does vs .bash_profile vs .profile? | |
# Are you tired of trying to remember how darwin/mac-osx treat them differently from linux? | |
# Are you tired of not having your ~/.bash* stuff work the way you expect? | |
# | |
# Symlink all of the following to this file: | |
# * ~/.bashrc |
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
project://name/path | |
auth: name host: name port: -1 | |
project://name%20space/path | |
auth: name space host: null port: -1 | |
project://name:200/path | |
auth: name:200 host: name port: 200 | |
project://name%20space:200/path |
OlderNewer