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.Collections.Generic; | |
| using System.Diagnostics; | |
| using System.Linq; | |
| using Raven.Client; | |
| using Raven.Client.Embedded; | |
| using Raven.Client.Indexes; | |
| namespace ConsoleApplication5 | |
| { | |
| class Program |
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 Get-EndlineFormat { | |
| param($filepath) | |
| # by default get-content reads one 'item' at a time. | |
| # and reading 1 byte at a time will take a long long time | |
| # -ReadCount 0 makes it read it all at once. | |
| $bytes = get-content -encoding byte -ReadCount 0 $filepath | |
| $string = [Text.Encoding]::Ascii.GetString($bytes, 0, $bytes.Count) | |
| $is_unix = ([regex] "[^`r]`n").Matches($string).Count -gt 0 ` | |
| -and ([regex] "`r`n").Matches($string).Count -eq 0 |
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 DEBUG | |
| public class ResetCacheOnDefaultWidgetChangePlugin : IPlugin | |
| { | |
| public void Initialize() | |
| { | |
| SetupFileSystemWatcher(); | |
| } | |
| private void SetupFileSystemWatcher() | |
| { |
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
| $output = git status | |
| $branchbits = $output[0].Split(' ') | |
| $branch = $branchbits[$branchbits.length - 1] | |
| $signature = @" | |
| [DllImport("user32.dll")] | |
| public static extern bool SetWindowText(IntPtr hWnd, string lpString); | |
| "@ |
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.ComponentModel.Composition; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Reflection; | |
| using System.Text.RegularExpressions; | |
| using System.Threading.Tasks; | |
| using Core.Abstractions; | |
| using Lucene.Net.Documents; |
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.Linq; | |
| using Raven.Client.Client; | |
| using Raven.Client.Indexes; | |
| using Raven.Database.Indexing; | |
| namespace ConsoleApplication2 | |
| { | |
| internal class Program | |
| { |
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
| def StartCommandLine(args): | |
| return "cmd.exe" |
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
| from VideoCapture import Device | |
| from os import listdir | |
| from datetime import datetime | |
| from threading import Timer | |
| from sys import stdin | |
| from string import zfill | |
| cam = Device() | |
| format = "snap_%s_%s.png" |
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 abstract class BaseIronPythonCommand : IIronPythonCommand | |
| { | |
| public abstract string Name { get; } | |
| public virtual string GetName(string parameters) | |
| { | |
| return Name; | |
| } | |
| public virtual string GetDescription(string parameters) |
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
| class OpenCommandLine(BaseIronPythonCommand): | |
| @property | |
| def Name(self): | |
| return "OpenCommandLine" | |
| def Execute(self, args): | |
| return "cmd.exe" |