I hereby claim:
- I am jamessantiago on github.
- I am jamessantiago (https://keybase.io/jamessantiago) on keybase.
- I have a public key whose fingerprint is 2D51 FA1E 42DE AF48 33FC 021D BAF3 C497 EC8C F91C
To claim this, I am signing this object:
| USE master | |
| GO | |
| IF OBJECT_ID ('sp_hexadecimal') IS NOT NULL | |
| DROP PROCEDURE sp_hexadecimal | |
| GO | |
| CREATE PROCEDURE sp_hexadecimal | |
| @binvalue varbinary(256), | |
| @hexvalue varchar (514) OUTPUT | |
| AS | |
| DECLARE @charvalue varchar (514) |
| $template = @" | |
| namespace AxlNetClient | |
| {{ | |
| public partial class AXLPortClient | |
| {{ | |
| private static AXLPortClient{0} _axlPortClient{0}; | |
| private static AXLPortClient{0} axlPortClient{0} => _axlPortClient{0} == null || | |
| _axlPortClient{0}.State != System.ServiceModel.CommunicationState.Opened ? (_axlPortClient{0} = LoadClient{0}()) : _axlPortClient{0}; |
| # A Sublime Text plugin to convert a Pandoc document into multiple formats: | |
| # - html | |
| # - docx | |
| # - beamer | |
| # | |
| # The plug-in also deal with options embedded in the file to add more functions | |
| # such as a table of content, a bibliography or enumerate sections. | |
| # | |
| # Different bibliography styles and templates could be chosen. |
| #expected to be executed from a folder with wallpapers in the format of BackGroundWIDTHxHEIGHT.jpg (e.g. Background1920x1200.jpg) | |
| $consoleDebug = $true | |
| $remoteDebug = $false | |
| $LogFile = "$($env:temp)\Wallpaper_$([int]((get-date -UFormat "%s") / 86400)).log" | |
| Function LogMessage($message) | |
| { | |
| if ($consoleDebug) | |
| { |
| ls D:\Code\PSRec\Screenshots |% { | |
| $thisHash = identify -quiet -format "%#" $_.FullName | |
| if ($thisHash -eq $lastHash) { | |
| rm $_.FullName | |
| write-host "Removed duplicate $($_.FullName)" | |
| } | |
| $lastHash = $thisHash | |
| } |
| [reflection.assembly]::LoadWithPartialName("System.Drawing") | Out-Null | |
| #1920x1200 is the starting image, doesn't have to be this resolution | |
| $baseImage = New-Object system.drawing.bitmap $pwd\1920x1200.jpg | |
| $files = @" | |
| Background1024x1280.jpg | |
| Background1024x1280.jpg | |
| Background1024x768.jpg | |
| Background1280x1024.jpg |
I hereby claim:
To claim this, I am signing this object:
| Add-Type @" | |
| using System; | |
| using System.Runtime.InteropServices; | |
| public class Tricks { | |
| [DllImport("user32.dll")] | |
| public static extern IntPtr GetForegroundWindow(); | |
| } | |
| "@ | |
| 1..60 |% { |
| function Get-DiskUsage { | |
| <# | |
| .SYNOPSIS | |
| Gives details on disk free space | |
| .DESCRIPTION | |
| Returns a list of drives on the local machine | |
| .NOTES | |
| Name: Get-DiskUsage | |
| Author: James Santiago | |
| DateCreated: 08/21/2013 |
| //Notes: | |
| //Requires the MMBot.Powershell nuget package | |
| //Specify the powershell scripts folder using the MMBOT_POWERSHELL_SCRIPTSPATH key in the ini file | |
| //Powershell scripts must be .psm1 (modules) to be executed | |
| //Only scripts inside the scripts folder may be executed using this script | |
| //Output objects must either support a ToString method or be a string to display properly | |
| using MMBot.Powershell; | |
| var robot = Require<Robot>(); |