Skip to content

Instantly share code, notes, and snippets.

@cbaltzer
cbaltzer / InvokeWithParameters.cs
Last active April 29, 2024 17:49
Invoke with parameters!
using UnityEngine;
using System;
using System.Reflection;
using System.Collections;
namespace UnityEngine {
public static class ExtensionMethods {
public static void Invoke(this MonoBehaviour behaviour, string method, object options, float delay) {
@cbaltzer
cbaltzer / NSObject+BlockDelay.m
Last active August 29, 2015 14:01
A convenient dispatch_after() category
/* NSObject+BlockDelay.h */
#import <Foundation/Foundation.h>
@interface NSObject (BlockDelay)
- (void)performBlock:(void (^)(void))block afterDelay:(NSTimeInterval)delay;
@end
@cbaltzer
cbaltzer / bm-101.md
Last active September 5, 2019 15:47
Black Metal 101

Black Metal 101

Approximate listening time: 80 minutes

In the beginning there was..

.. Black Sabbath. They may not have been the first, but they were the first that mattered. In today's terms they're more hard rock than metal, but at the time they revolutionary.

x y z
-84.78125 -117.03125 16.96875
-13.375 -21.65625 6.59375
-26.125 -24.625 17.34375
8.1875 26.71875 -6.0625
79.84375 -9.71875 51.8125
69.3125 2.3125 -181.21875
-95.25 10.21875 -74.78125
-0.65625 -52.28125 -5.96875
-31.8125 15.9375 162.125

Keybase proof

I hereby claim:

  • I am cbaltzer on github.
  • I am cbaltzer (https://keybase.io/cbaltzer) on keybase.
  • I have a public key ASBFJG0rj9g5kYZYCxpndDq_e1rWpb1V6Vp-uBSNRzS1QAo

To claim this, I am signing this object:

#!/bin/bash
ENCODER=h264_videotoolbox
if [[ -n "$1" ]]
then
ENCODER=$1
fi
#