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
| using System; | |
| using System.Collections.Specialized; | |
| using System.Text; | |
| using System.Web; | |
| using System.Web.Mvc; | |
| using log4net; | |
| /// <summary> | |
| /// Filter pro logování vyjímek pomocí log4net. | |
| /// </summary> |
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
| LoadModule('jsstd'); | |
| LoadModule('jsio'); | |
| var thisDir = arguments[0].replace(/[^\\/]+$/, ''); | |
| var srcFile = arguments[1]; | |
| var dstFile = arguments[2]; | |
| var window = { | |
| location: { | |
| port: 80, |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| namespace Builder_Algida_Row_Generator | |
| { | |
| class GeneratorExtensions | |
| { | |
| public LinkedList<TReturn> ApplyFunctionsWithHistory<TA1, TReturn>(TReturn arg1, TA1 arg2, |
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
| Task Deploy-Web -depends Update-WebConfig, Create-Stylesheets { | |
| $webproj = Join-Path $WebProj_dir 'SmartWeb.Web.csproj' | |
| Deploy-Package $webproj $Configuration $Package $Dest $SiteName $UserName $Pwd | |
| } | |
| Task Update-WebConfig { | |
| $webConfig = Join-Path $WebProj_dir "Web.config" | |
| $now = Get-Date -format 'yyyy-MM-dd HH:mm' | |
| Write-Host "Updating version number to: #$Version" |
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
| open Microsoft.FSharp.MLLib.Sys | |
| let cmdArgs = argv |
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
| <figure style="float:left"><img src=""><figcaption>text</figcaption></figure> |
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
| open System | |
| open System.Collections | |
| open System.Collections.Generic | |
| open System.IO | |
| open System.Text | |
| open System.Text.RegularExpressions | |
| open System.Xml.Linq | |
| open Microsoft.FSharp.Collections | |
| type Source = |
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
| while ($true) { "Zeptej se mě za 30 minut."; start-sleep -s 1800 } |
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 GuidConstraint : IRouteConstraint | |
| { | |
| public bool Match(HttpContextBase httpContext, Route route, string parameterName, RouteValueDictionary values, RouteDirection routeDirection) | |
| { | |
| if (!values.ContainsKey(parameterName)) | |
| return false; | |
| string stringValue = values[parameterName] as string; | |
| if (string.IsNullOrEmpty(stringValue)) | |
| return false; |
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
| protected void Application_BeginRequest() { | |
| if (String.Equals("instant", Request.Headers["X-Purpose"], StringComparison.OrdinalIgnoreCase)) { | |
| Response.StatusCode = 403; | |
| CompleteRequest(); | |
| } | |
| } |