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
| if (Test-Path "env:ProgramFiles(x86)"){ | |
| $outputdirectoryArg ="-oC:\Program Files (x86)\Nhibernate.Profiler" | |
| }else{ | |
| $outputdirectoryArg ="-oC:\Program Files\Nhibernate.Profiler" | |
| } | |
| if (@(get-process | where {$_.ProcessName -eq "nhprof"}).Count -gt 0){ | |
| [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | |
| [System.Windows.Forms.MessageBox]::Show("Please stop nhprof before updating it") | |
| }else{ |
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 Autofac; | |
| using Autofac.Integration.Web; | |
| using WebFormsMvp; | |
| using WebFormsMvp.Autofac; | |
| using WebFormsMvp.Binder; | |
| using weDiscuss.Logic.Presenters; | |
| namespace weDiscuss.Web | |
| { |
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
| #!/usr/bin/python26 | |
| import os,re,sys | |
| from pprint import pprint | |
| expressions = ["(?P<title>[a-zA-Z0-9\-.]+)\.[sS ](?P<season>[0-9]+)[eE ](?P<episode>[0-9]+)\.(?P<rest>[a-zA-Z0-9.()\-\[\] ]*)\.avi", | |
| "(?P<title>[a-zA-Z0-9\-.]+)\.(?P<season>[0-9]+)(?P<episode>[0-9]{2})\.(?P<rest>[a-zA-Z0-9.()\-\[\] ]*)\.avi", | |
| "(?P<title>[a-zA-Z0-9\-.]+)[ _]*[-. ][_ ]*(?P<season>[0-9]+)x(?P<episode>[0-9]{2})[ ]*[-.][ ]*(?P<rest>[a-zA-Z0-9.()\-\[\] ]*)\.avi"] | |
| expressions = expressions + [e.replace("avi","srt") for e in expressions] + [e.replace("avi","mkv") for e in expressions] | |
| compiledExpressions= [re.compile(e) for e in expressions] | |
| if len(sys.argv) > 1: |
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 IdeaSearchQuery | |
| { | |
| private List<IIdeaSearchQuery> _Queries; | |
| public IdeaSearchQuery() | |
| { | |
| _Queries = new List<IIdeaSearchQuery>(); | |
| } | |
| public static implicit operator SearchQuery(IdeaSearchQuery ideaQuery) |
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
| $base_downloads_dir = "S:\downloads\" | |
| $base_archive_dir = "S:\downloads\archive" | |
| if(-not (Test-Path $base_archive_dir)) { | |
| [void] (mkdir $base_archive_dir) | |
| } | |
| $to_archive_files = get-childitem $base_downloads_dir | ? { $_.Name -ne "archive" -and $_.CreationTime -lt (Get-Date).AddDays(-1) } | |
| foreach($to_archive in $to_archive_files){ |
NewerOlder