This file contains 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 AForge.Imaging; | |
using AForge.Imaging.Filters; | |
namespace TextImage | |
{ | |
using System.Collections.Generic; | |
using System.Drawing; | |
using System.Drawing.Imaging; | |
public sealed class ColorizedAlpha : BaseFilter |
This file contains 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.Drawing; | |
using System.Drawing.Imaging; | |
using AForge.Imaging; | |
using AForge.Imaging.Filters; | |
namespace TextImage | |
{ | |
public class Screen : BaseInPlaceFilter2 | |
{ |
This file contains 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 IEnumerable<InterfaceStatusEntry> ShowInterfaceStatus() | |
{ | |
return ParserFactory | |
.CreateParser<InterfaceStatusParserBase>(_iosVersion.SoftwareFamily) | |
.Parse(_sshShellWrapper.Capture("show interface status")); | |
} |
This file contains 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
setTimeout = (delay, exp) -> | |
window.setTimeout exp, delay |
This file contains 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; | |
using System.Linq; | |
using System.Reflection; | |
using Microsoft.SharePoint; | |
namespace MileageSite.Layouts.MileageSite | |
{ | |
public static class SPListItemExtensions |
This file contains 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
// | |
// FMDatabaseFactory.m | |
// | |
// Copyright (c) 2012 Andy Sherwood. All rights reserved. | |
// | |
#import "FMDatabaseFactory.h" | |
#import <FMDatabase.h> | |
@implementation FMDatabaseFactory |
This file contains 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
private bool DoWork() | |
{ | |
DoSomething(); | |
DoSomethingElse(); | |
return true; | |
} | |
catch (Exception ex) | |
{ | |
_log.Error(ex); |
This file contains 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
PS1='\[\033]0;${PWD}\007\]\[\033[00m\][${DVCSBRANCH} \[\033[1;32m\]a${INDEXADDED} \[\033[1;33m\]M${FILESMODIFIED} \[\033[1;34m\]D${FILESDELETED} \[\033[1;31m\]?${FILESADDED}\[\033[00m\]] \[\033[0;33m\]m${INDEXMODIFIED} \[\033[0;31m\]d${INDEXDELETED} \[\033[0;35m\]U${FILESUNMERGED} u${INDEXUNMERGED}\[\033[00m\]\n$>' |
This file contains 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 (var serviceRequest = new WebClient()) | |
{ | |
string token = GetAuthorizationToken("yourservice","owner", "NW1wr7/nlgggTFnB5L7nDBrOLC+o1E1P4ZZqPaP2mY4="); | |
serviceRequest.Headers["Authorization"] = string.Format("WRAP access_token=\"{0}\"", token); | |
string response = serviceRequest.DownloadString(new Uri(url)); | |
return response; | |
} | |
// connects to ACS and gets WRAP Authorization token |
This file contains 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
Start-Process python.exe -argument '-m http.server'; Start-Process livereloadx.cmd |