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 | |
| files="*.jpg" | |
| regex="IMG_([0-9]{4})([0-9]{2})([0-9]{2})_([0-9]{2})([0-9]{2})([0-9]{2}).*" | |
| for f in $files; do | |
| [[ $f =~ $regex ]] | |
| y="${BASH_REMATCH[1]}" | |
| m="${BASH_REMATCH[2]}" | |
| d="${BASH_REMATCH[3]}" |
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
| param ( | |
| [string[]] $TaskListPsake = @(), | |
| [string] $FrameworkPsake = '4.0', | |
| [switch] $DocsPsake = $false, | |
| [hashtable] $ParametersPsake = @{}, | |
| [hashtable] $PropertiesPsake = @{} | |
| ) | |
| $main = -not $MyInvocation.PSScriptRoot | |
| $root = $PSScriptRoot |
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
| find . -type f -iname *.html -exec file --mime-encoding {} \; | grep -Z iso-8859-1 | sed 's/: iso-8859-1//g' | xargs -i{} sh -c 'iconv -f iso-8859-1 -t utf-8 -o "{}".utf8 "{}";mv -f "{}".utf8 "{}";' |
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
| namespace MvcTagBuilderIsNotXHTMLCompliant | |
| { | |
| using System.Collections.Generic; | |
| using System.Web.Mvc; | |
| using System.Xml.Linq; | |
| using NUnit.Framework; | |
| [TestFixture] | |
| public class MvcTagBuilderXHTMLCompliancyTest |
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
| var jLog = (function($){ | |
| var log = { | |
| info: function(s){ | |
| s = s || ""; | |
| this.isReady && this.write(s); | |
| this.isReady || this.messageQueue.push(s); | |
| return true; | |
| }, | |
| log: function(s){ |
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
| function pscan($s,$w) { ls * -i -r $w | %{$f=$_;$l=0;cat $f | %{$l++;$_;} | ?{$_ -imatch $s} | %{"[$l] $f: $_"}}} |
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
| Unhandled Exception: TinyIoC.TinyIoCResolutionException: Unable to resolve type: Nancy.Routing.DefaultRouteResolver ---> TinyIoC.TinyIoCResolutionException: Unable to resolve type: Nancy.Routing.RouteCache ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> TinyIoC.TinyIoCResolutionException: Unable to resolve type: Nancy.ModuleInstanceTest.MyModule ---> TinyIoC.TinyIoCResolutionException: Unable to resolve type: System.String ---> TinyIoC.TinyIoCResolutionException: Unable to resolve type: System.Char[] ---> TinyIoC.TinyIoCResolutionException: Unable to resolve type: System.Int32 | |
| at TinyIoC.TinyIoCContainer.ConstructType (System.Type requestedType, System.Type implementationType, System.Reflection.ConstructorInfo constructor, TinyIoC.NamedParameterOverloads parameters, TinyIoC.ResolveOptions options) [0x00000] in <filename unknown>:0 | |
| at TinyIoC.TinyIoCContainer.ConstructType (System.Type requestedType, System.Type implementationType, TinyIoC.N |
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
| namespace FuncTest { | |
| using System; | |
| public class EmitBit { | |
| public Func<dynamic,bool> Emitter { get; set; } | |
| public void Emit() { | |
| Console.WriteLine("emit was {0}", Emitter("test")); | |
| } | |
| } | |
| } |
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
| // A case for FSharp: Flexibility Applied | |
| // -------------------------------------- | |
| // | |
| // Consider a Where expression in C# | |
| // nums.Where(x => 0 <= x); //yoda-esque | |
| // | |
| // Let's see F# doing this. | |
| let nums = [-2 .. 2];; |
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
| [ilker@x fake]$ mono build/FAKE.exe build.fsx | |
| Missing method Microsoft.FSharp.Control.CommonExtensions::AddToObservable<[1]>(IObservable`1<!!0>,FSharpFunc`2<!!0, Unit>) in assembly /usr/local/lib/mono/gac/FSharp.Core/2.0.0.0__b03f5f7f11d50a3a/FSharp.Core.dll, referenced in assembly /home/ilker/Code/fake/build/FakeLib.dll |
NewerOlder