Skip to content

Instantly share code, notes, and snippets.


Collin Allen command-tab

View GitHub Profile
command-tab / OvenPlayer.vue
Created Jan 8, 2022
An example Vue component that wraps OvenPlayer 0.10.15
View OvenPlayer.vue
<div class="ovenplayer">
<div ref="player" />
import OvenPlayer from 'ovenplayer'
export default {
command-tab / textmate 2 pug html embed.txt
Created Oct 23, 2020
Install the pug tmbundle, then edit the built-in HTML bundle to append this above the style pattern
View textmate 2 pug html embed.txt
{ begin = '(^[ \t]+)?(?=<(?i:template lang="pug")(?!-))';
end = '(?!\G)([ \t]*$\n?)?';
beginCaptures = { 1 = { name = 'punctuation.whitespace.embedded.leading.html'; }; };
endCaptures = { 1 = { name = 'punctuation.whitespace.embedded.trailing.html'; }; };
patterns = (
{ name = 'meta.embedded.block.html';
begin = '(?i)(<)(template)(?=\s|/?>)';
end = '(?i)((<)/)(template)\s*(>)';
beginCaptures = {
0 = { name = 'meta.tag.metadata.pug.start.html'; };
command-tab /
Created Sep 1, 2020
Building WebRTC.framework from master on macOS
cd webrtc_build
git clone
export PATH=`pwd`/depot_tools:"$PATH"
fetch --nohooks webrtc_ios
gclient sync
git new-branch master-build

gn gen out/ios_sim --args='target_os="ios" target_cpu="x64" is_debug=false ios_enable_code_signing=false'
gn gen out/ios_64 --args='target_os="ios" target_cpu="arm64" is_debug=false ios_enable_code_signing=false'
#/usr/bin/env python
# "SMAKN LCUS-1 type USB relay module USB intelligent control switch USB switch"
# pipenv install pyserial
import serial
import time
View cargo-n64 xbuild error.txt
$ rustc --version
rustc 1.45.0-nightly (a74d1862d 2020-05-14)
$ cargo xbuild --version
cargo-xbuild 0.5.31
$ cargo n64 build --ipl3 ipl3.bin --package hello-ipl3font --verbose
Building with cargo xbuild
+ "cargo" "xbuild" "--message-format=json" "--target=/var/folders/j3/7pf540td3xncn7jdqtb62_ph00058y/T/n64-build/mips-nintendo64-none.json" "--package" "hello-ipl3font" "--verbose" "--release"
WARNING: There is no root package to read the cargo-xbuild config from.
View cargo-n64 llvm_asm error.txt
$ cargo n64 build --ipl3 ./ipl3.bin --package hello-ipl3font
Building with cargo xbuild
Updating index
Compiling compiler_builtins v0.1.28
Compiling core v0.0.0 (/Users/me/.rustup/toolchains/nightly-2020-02-16-x86_64-apple-darwin/lib/rustlib/src/rust/src/libcore)
Compiling rustc-std-workspace-core v1.99.0 (/Users/me/.rustup/toolchains/nightly-2020-02-16-x86_64-apple-darwin/lib/rustlib/src/rust/src/tools/rustc-std-workspace-core)
error[E0635]: unknown feature `llvm_asm`
--> /Users/me/.cargo/registry/src/
3 | #![feature(llvm_asm)]
command-tab / irixswextract.c
Created Apr 30, 2020 — forked from camthesaxman/irixswextract.c
tool to extract IRIX software packages
View irixswextract.c
#include <ctype.h>
#include <errno.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
struct Archive

Keybase proof

I hereby claim:

  • I am command-tab on github.
  • I am command_tab ( on keybase.
  • I have a public key whose fingerprint is DD74 4253 B30C 47EB 694E A073 A32A EF68 A196 4C2C

To claim this, I am signing this object:

command-tab /
Created Jun 6, 2019
RPi GPIO interrupt handling
#!/usr/bin/env python3
import RPi.GPIO as GPIO
import asyncio
import sys
PIN = 18
def handle_edge(pin):
print('Edge callback')
command-tab / index.js
Created Aug 4, 2018
Customizing Apollo Server 2.0 GraphQL Playground path
View index.js
const express = require('express');
const { ApolloServer, gql } = require('apollo-server-express');
const { typeDefs, resolvers } = require('./schema');
const server = new ApolloServer({
introspection: true,
playground: {