This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
| public class Math | |
| { | |
| private _parser As IParser; | |
| public Math(IParser parser) | |
| { | |
| this._parser = parser; | |
| } | |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
| string GetPropertyName(Expression e) | |
| { | |
| var lambdaExpression = e as LambdaExpression; | |
| if (lambdaExpression != null) | |
| { | |
| return GetPropertyName(lambdaExpression.Body); | |
| } | |
| var unaryExpression = e as UnaryExpression; | |
| if (unaryExpression != null) |
| SELECT owner, name, type, line, text | |
| FROM dba_source | |
| WHERE instr(UPPER(text), UPPER(:srch_str)) > 0; |
| Get-ChildItem * -Recurse -Include *.php,*.css,*.js | ForEach-Object { | |
| $wholeFile = [IO.File]::ReadAllText( $_.FullName ) | |
| if ($wholeFile -match "`r[^`n]") | |
| { | |
| $content = Get-Content $_.FullName | |
| $content | Set-Content $_.FullName | |
| } | |
| } |