Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block seankearon

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
View SB Choco
# PLUS: npm install --global --production windows-build-tools
choco install spotify -y
choco install visualstudiocode -y
choco install microsoftazurestorageexplorer -y
choco install sourcetree --version -y
choco install webstorm -y
choco install jetbrainstoolbox -y
# not updated choco install jetbrains-rider -y
choco install balsamiqmockups3 -y
seankearon / gist:de261ac578de1a735b26f23b0ce78155
Created Aug 31, 2017 — forked from robertpi/gist:2964793
F# record implementing an interface
View gist:de261ac578de1a735b26f23b0ce78155
namespace MyNamespace
type IMyInterface =
abstract GetValue: unit -> string
type MyRecord =
{ MyField1: int
MyField2: string }
interface IMyInterface with
member x.GetValue() = x.MyField2
View CreateAndQuery.cs
using System;
using System.Collections.Generic;
using System.Linq;
using Marten;
using Xunit;
namespace marten_test
public class CreateAndQuery
View invoke-environment.ps1
function Invoke-Environment {
# Source:
# and
$stream = if ($Output) { ($temp = [IO.Path]::GetTempFileName()) } else { 'nul' }
seankearon / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View Installing a Topshelf Service in OctopusDeploy
Deployment steps for this blog post:
seankearon / Typescript Jasmine Knockout Setup
Last active Aug 29, 2015
Set up for testing a TypeScript Knockout model in Visual Studio with Jasmine
View Typescript Jasmine Knockout Setup
Install-Package knockoutjs
Install-Package knockout.typescript.DefinitelyTyped
Install-Package JasmineTest
Install-Package jasmine.typescript.DefinitelyTyped
seankearon / get-script-folder.ps1
Last active Aug 29, 2015
ps: useful snippets
View get-script-folder.ps1
# Get the script's folder
function get_script_directory #
$Invocation = (Get-Variable MyInvocation -Scope 1).Value
Split-Path $Invocation.MyCommand.Path
$scriptpath = get_script_directory
cd $scriptpath
# Pause for user to press a key
seankearon / original-code-for-review.fs
Last active Aug 29, 2015
Parsing sections from a log file using F#
View original-code-for-review.fs
// Code for review posted here:
// Here are the "lines" from my "log file".
let lines = [1 .. 25] |> (fun x -> x.ToString())
// For this exercise, section criteria is divisibility by 5.
// val DivisibleByFive : s:string -> bool
let DivisibleByFive (s:string) =
System.Int32.Parse(s) % 5 = 0
View gist:6572130
void Main()
var file = @"C:\Users\Me\Desktop\Certificates.txt";
var a = JObject.Parse(File.ReadAllText(file));
var cert = a["Certificates"][0];
// Get the UIDs for the existing boards and circuits.
var boards = cert["Boards"].Select (x => (Guid)x["UniqueId"]).ToArray();
var circuits = cert["Boards"].SelectMany (x => x["Circuits"]).Select (x => (Guid)x["UniqueId"]).ToArray();
You can’t perform that action at this time.