Skip to content

Instantly share code, notes, and snippets.

@rjmholt
rjmholt / Restore-PwshVsix.ps1
Last active December 26, 2023 10:09
PowerShell script to build the PowerShell VSCode extension
# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license.
# Requires PowerShell, git and VSCode
param(
[switch]$NoPackage,
[switch]$LaunchVSCode
)
{-# LANGUAGE
MultiParamTypeClasses,
FunctionalDependencies,
FlexibleInstances,
TypeFamilies #-}
class Mul' a b where
type MulT a b
mul' :: a -> b -> MulT a b
public class Undecidable
{
class T {}
class N<Z> {}
class C<X> extends N<N<? super C<C<X>>>>
{
private N<? super C<T>> cast(C<T> c)
{
public interface IN<in U> {}
public interface IC<X> : IN<IN<IC<IC<X>>>> {}
class Program
{
static void Main()
{
IC<double> bar = null;
IN<IC<string>> foo = bar;
}
@rjmholt
rjmholt / clone_repos.py
Last active January 3, 2017 04:51
Clones all the repos of a GitHub user, using the GitHub API
#!/usr/bin/python3
import urllib.request
import json
import subprocess
"""
Small python script to download all of someone's github repos
"""
GITHUB_USERNAME=''