- My editor history: Vim > Emacs > Vim > Atom
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
function Get-OLEDBData{ | |
<# | |
.SYNOPSIS | |
This function is used to retrieve data via an OLEDB data connection. | |
.DESCRIPTION | |
Retrieves data via an OLEDB data connection. | |
.INPUTS | |
System.String,System.String,System.String |
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
Function Get-IniContent | |
{ | |
<# | |
.Synopsis | |
Gets the content of an INI file | |
.Description | |
Gets the content of an INI file and returns it as a hashtable | |
.Notes |
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
Function Get-Lines { | |
<# | |
.SYNOPSIS | |
Get lines from a file. | |
.DESCRIPTION | |
Get lines from a file between two positions in a file. | |
You can return lines between a from line number until a to line number or | |
between regular expression patterns. |
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
. '\Logging_Functions.ps1' | |
Function Get-Windows{ | |
[CmdletBinding()] | |
param ( | |
[Parameter(Mandatory=$false)][string]$LogFile | |
) | |
Write-Verbose 'Performing operation "Get-Windows"' |
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
<# | |
.SYNOPSIS | |
Saves a screenshot of the current desktop to a file. | |
.DESCRIPTION | |
Saves a screenshot of the current desktop to a file. Supported extensions for the | |
image file are BMP, GIF, EXIF, JPG, PNG and TIFF. | |
.PARAMETER Path | |
Mandatory. Specifies the path to the file that will be created. |
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
function Format-NumAsWord | |
{ | |
[CmdletBinding()] | |
param ( | |
[parameter(Position=0)] | |
[double]$n = 0, | |
[parameter(Position=1)] | |
[boolean]$Caps = $False | |
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
require 'optparse' | |
options = {} | |
class Parser | |
def self.parse(args) | |
options = {} | |
opt_parser = OptionParser.new do |opts| | |
opts.banner = 'Usage: demo.rb [options] ARG...' | |
opts.separator 'A demo of optparse.' |
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
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
;; Calva depends on nREPL and Cider nREPL middleware | |
;; Clojure | |
{:repl {:plugins [[cider/cider-nrepl "0.21.2-SNAPSHOT"]] | |
:dependencies [[nrepl "0.6.0"]]}} | |
;; ClojureScript | |
{:repl {:plugins [[cider/cider-nrepl "0.21.2-SNAPSHOT"]] | |
:dependencies [[nrepl "0.6.0"] | |
[cider/piggieback "0.4.0"] | |
[figwheel-sidecar "0.5.18"]] |
OlderNewer