Skip to content

Instantly share code, notes, and snippets.

View voronoipotato's full-sized avatar
🏠
Working from home

Alan Ball voronoipotato

🏠
Working from home
  • NC
View GitHub Profile
@voronoipotato
voronoipotato / .bashrc
Last active December 21, 2022 20:35
dotfiles for git bash
alias _="declare -F | grep -v _; alias;"
alias we="curl -s 'wttr.in/{Raleigh,Chicago,Los_Angeles,Austin}?format=3'"
alias ll='ls -lh'
alias gh='history|grep'
alias vs='"C:/Program Files/Microsoft Visual Studio/2022/Professional/Common7/IDE/devenv.exe"'
_userpass='user:pass'
_jira_domain='http://jira.domain'
_proget_domain='https://proget.domain'
function b (){
@voronoipotato
voronoipotato / anagram.fs
Created July 7, 2021 00:40
The weird way to find anagrams
// Learn more about F# at http://fsharp.org
open System
open System.Globalization
open System.Numerics
open System.Diagnostics
open System.Text
[<EntryPoint>]
let main argv =
data:text/html;base64,PCFET0NUWVBFIGh0bWw+IDxodG1sIGRhdGEtdXNlcmFnZW50PSJNb3ppbGxhLzUuMCAoV2luZG93cyBOVCAxMC4wOyBydjo4Mi4wKSBHZWNrby8yMDEwMDEwMSBGaXJlZm94LzgyLjAiPjwhLS0KIFBhZ2Ugc2F2ZWQgd2l0aCBTaW5nbGVGaWxlIAogdXJsOiBodHRwczovL2l0dHkuYml0dHkuc2l0ZS9lZGl0IAogc2F2ZWQgZGF0ZTogVHVlIE9jdCAxMyAyMDIwIDExOjQwOjIxIEdNVC0wNDAwIChFYXN0ZXJuIERheWxpZ2h0IFRpbWUpCi0tPjxtZXRhIGNoYXJzZXQ9dXRmLTg+CjxtZXRhIG5hbWU9dmlld3BvcnQgY29udGVudD0id2lkdGg9ZGV2aWNlLXdpZHRoIj4KPHRpdGxlPml0dHkuYml0dHk8L3RpdGxlPgo8c2NyaXB0IHNyYz0iZGF0YTp0ZXh0L2phdmFzY3JpcHQ7YmFzZTY0LGRtRnlJR1U5Wm5WdVkzUnBiMjRvS1hzaWRYTmxJSE4wY21samRDSTdablZ1WTNScGIyNGdjaWhsTEhJcGUzQnZjM1JOWlhOellXZGxLSHRoWTNScGIyNDZlSFFzWTJKdU9uSXNjbVZ6ZFd4ME9tVjlLWDFtZFc1amRHbHZiaUIwS0dVcGUzWmhjaUJ5UFZ0ZE8zSmxkSFZ5YmlCeVcyVXRNVjA5ZG05cFpDQXdMSEo5Wm5WdVkzUnBiMjRnYnlobExISXBlM0psZEhWeWJpQnBLR1ZiTUYwcmNsc3dYU3hsV3pGZEszSmJNVjBwZldaMWJtTjBhVzl1SUc0b1pTeHlLWHR5WlhSMWNtNGdkU2grZmsxaGRHZ3ViV0Y0S0UxaGRHZ3ViV2x1S0dWYk1WMHZUM1FzTWpFME56UTRNelkwTnlrc0xUSXhORGMwT0RNMk5EZ3BKbjUrVFdGMGFDNXRZWGdvVFdGMGFDNX
#r "../_lib/Fornax.Core.dll"
#load "layout.fsx"
open Html
let about = "Alan was here,fight me"
let generate' (ctx : SiteContents) (_: string) =
let siteInfo = ctx.TryGetValue<Globalloader.SiteInfo> ()
let desc =
0: initializing aardvark ........................................................................
0: System Information:
0: System: Linux 5.5.15-200.fc31.x86_64 #1 SMP Thu Apr 2 19:16:17 UTC 2020
0: Processor: 12 core x64
0: Process: x64
0: Framework: .NET Core 3.1.3
0: Loading plugins ............................................................................
0: [LoadPlugins] Using plugin cache file name: /home/alanball/.config/Aardvark/cache/00 - HelloWorld_plugins.bin
0: [ReadCacheFile] loaded cache file: /home/alanball/.config/Aardvark/cache/00 - HelloWorld_plugins.bin
0: [GetPluginAssemblyPaths] retrying to load because not in cache /home/alanball/Documents/Projects/aardvark.rendering/bin/Debug/netcoreapp3.1/00 - HelloWorld.dll
name of display: :1
display: :1 screen: 0
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
server glx version string: 1.4
server glx extensions:
GLX_ARB_context_flush_control, GLX_ARB_create_context,
GLX_ARB_create_context_no_error, GLX_ARB_create_context_profile,
GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float,
GLX_ARB_multisample, GLX_EXT_buffer_age,
@voronoipotato
voronoipotato / gist:01a0dd1357cfedcf17e928a8ef2b1afd
Created September 19, 2019 02:10 — forked from jorool/gist:57714bcdc06953531749
Powershell script to download images from multiple urls
$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

https://github.com/fsharp/fslang-design/tree/master/FSharp-4.1

https://github.com/fsharp/fslang-design/tree/master/FSharp-4.1b

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 [https://github.com