Skip to content

Instantly share code, notes, and snippets.

View mitchazj's full-sized avatar
❤️
yeehaw

Mitchell Johnson mitchazj

❤️
yeehaw
View GitHub Profile
@mitchazj
mitchazj / next-tailwind-alias
Created November 15, 2020 04:10
Tailwind + Next.js
alias next="npx create-next-app --example with-tailwindcss"
@mitchazj
mitchazj / Nancy_Cloud_Run.md
Last active September 17, 2019 06:45
Quickstart Guide: Nancy with .NET Core + Docker, on Google Cloud Run 🚀️🚀️🚀️

Quickstart Guide: Nancy with .NET Core + Docker, on Google Cloud Run

Initial Setup

In an empty folder (eg, hello_world), run the following:

dotnet new web
dotnet add package Nancy --version 2.0.0-clinteastwood
dotnet add package Microsoft.AspNetCore.Owin
@mitchazj
mitchazj / post.md
Last active July 21, 2019 10:43
Extract FB friends into JSON object via Devtools

Wrote this really quickly while prototyping some social tools. Might wrap it into a Chrome extension at some point.

let friends = [];
let delay = 2000;

const createFriend = (name, link, image) => {
  return {
    name,
    link,
@mitchazj
mitchazj / rotate_pdf.md
Last active March 26, 2019 00:31
Rotate PDF's (eg, when lecturers constantly upload PDF's that are orientated incorrectly)

Start with installing pdftk (Debian)

sudo apt install pdftk

For Ubuntu 18.04, use the pdftk image from the snap store

sudo snap install pdftk

For Ubuntu 18.04 on WSL, install pdftk from this PPA:

Keybase proof

I hereby claim:

  • I am mitchazj on github.
  • I am mitchazj (https://keybase.io/mitchazj) on keybase.
  • I have a public key ASC2anQuBXgogG8UbXHfjXmrnV5D5D04EP5RP40Sdw1mwAo

To claim this, I am signing this object:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Johnson_Chess_Champion
{
public class Legality
{
private Square[] testPosition = new Square[64];