Skip to content

Instantly share code, notes, and snippets.

@midchildan
midchildan / types.js
Last active June 28, 2024 16:52
Javascript Schema Validator
// Copyright (c) midchildan
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
// and/or sell copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included
@midchildan
midchildan / test-intel-media-sdk.nix
Created May 2, 2021 12:20
Test the intel-media-sdk package in Nixpkgs
{ lib
, fetchurl
, runCommandNoCC
, runtimeShell
, writers
, ffmpeg-full
, intel-media-driver
}:
let
@midchildan
midchildan / ydl-extension.py
Created February 13, 2017 11:54
A Pythonista extension for downloading videos using youtube-dl.
import appex
import console
import os
import sys
import tempfile
import youtube_dl
def main():
url = None
if not appex.is_running_extension():

Keybase proof

I hereby claim:

  • I am midchildan on github.
  • I am midchildan (https://keybase.io/midchildan) on keybase.
  • I have a public key ASDfxU-VWjsyIxJ94cONgBrf9nnx965fzbjxFHAMOKn9QQo

To claim this, I am signing this object: