Skip to content

Instantly share code, notes, and snippets.

Alan Ball voronoipotato

  • NC
Block or report user

Report or block voronoipotato

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
voronoipotato / gist:01a0dd1357cfedcf17e928a8ef2b1afd
Created Sep 19, 2019 — forked from jorool/gist:57714bcdc06953531749
Powershell script to download images from multiple urls
View gist:01a0dd1357cfedcf17e928a8ef2b1afd
$images = 'https://foo.jpg', 'https://bar.jpg'
$targetDir = 'C:\foo\bar'
function DownloadFile([Object[]] $sourceFiles,[string]$targetDirectory) {
$wc = New-Object System.Net.WebClient
foreach ($sourceFile in $sourceFiles){
$sourceFileName = $sourceFile.SubString($sourceFile.LastIndexOf('/')+1)
$targetFileName = $targetDirectory + $sourceFileName
$wc.DownloadFile($sourceFile, $targetFileName)

is:issue is:open sort:updated-desc label:":books: Area - F# Guide"


Note: This documentation is the specification of version 4.1 of the F# language, released in 2015-16.

Note: thi does not yet incorporate the RFCs for F# 4.1, see

Discrepancies may exist between this specification and the 4.1 implementation. Some of these are noted as comments in this document. If you find further discrepancies please contact us and we will gladly address the issue in future releases of this specification. The F# team is always grateful for feedback on this specification, and on both the design and implementation of F#. You can submit feedback by opening issues, comments and pull requests at [

View titlebar.js
var f = ['🌑', '🌒', '🌓', '🌔', '🌕', '🌖', '🌗', '🌘'];
function loop() {
location.hash = f[Math.floor((];
setTimeout(loop, 50);
View rename.fsx
open System.IO
open System.Text.RegularExpressions
//__SOURCE_DIRECTORY__ is a keyword that represents the working directory in the commandline
let sourceDirectory = __SOURCE_DIRECTORY__
let fileNames = Directory.GetFiles sourceDirectory
printf "%s" sourceDirectory
View generate_series.sql
FROM dbo.sysobjects
WHERE id = object_id (N'[dbo].[generate_series]')
AND OBJECTPROPERTY(id, N'IsTableFunction') = 1)
DROP FUNCTION [dbo].[generate_series]
CREATE FUNCTION [dbo].[generate_series] ( @p_start INT, @p_end INT)
You can’t perform that action at this time.