Skip to content

Instantly share code, notes, and snippets.


Tyler Rockwood rockwotj

  • Stealth Mode Startup
  • Wisconsin, USA
View GitHub Profile
rockwotj / Foo.h
Last active Apr 3, 2021
Generated ObjC Swift Interface
View Foo.h
@interface TestClass : NSObject
- (void)fooWithLabel:(NSString * _Nonnull)arg;
- (void)foo1:(NSString * _Nonnull)arg;
- (void)barWithLabel:(NSString * _Nonnull)arg other:(NSInteger)ar;
- (void)bar1:(NSString * _Nonnull)arg other:(NSDictionary<NSString *, id> * _Nonnull)ar;
- (void)quxWithLabel:(NSString * _Nonnull)arg :(NSInteger)ar;
- (void)qux1:(NSString * _Nonnull)arg :(NSArray * _Nonnull)ar;
- (void)thudWithArg:(int64_t)arg ar:(double)ar;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
View .SC2Hotkeys
View scratch.bookmarklet
data:text/html, <html contenteditable style="font-family: courier">
rockwotj /
Last active Jun 28, 2017
An example in python on using the Stackdriver Monitoring API to query your Firebase Realtime Database's average load over the past day
# Copyright 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
View MyFunctions.scala
import scala.scalajs.js.annotation._
import scala.scalajs.js
import js.DynamicImplicits._
trait Request extends js.Any {
val body: js.Dictionary[Any] = js.native
#!/usr/bin/env python
import sys
import os
import argparse
from os import path
from os.path import isfile as exists
import signal
import json
import xml.etree.ElementTree as ET
rockwotj /
Created Jan 6, 2017
Raspberry Pi motd
function color (){
echo "\e[$1m$2\e[0m"
function extend (){
local str="$1"
rockwotj / weatherpics-rules.bolt
Last active Jan 20, 2016
Firebase bolt rules for the Weatherpics With Auth App
View weatherpics-rules.bolt
type Weatherpic {
caption: String | Null,
imageUrl: String,
uid: UserID
type UserID extends String;
path /weatherpics {
read() { true }
rockwotj / password-keeper-rules.bolt
Last active Jan 9, 2016
Firebase bolt rules for the Password Keeper App
View password-keeper-rules.bolt
path /users/$uid {
read() = isCurrentUser($uid);
write() = isCurrentUser($uid);
path /users/$uid/$password is Password;
type Password {
service: String,
password: String,
rockwotj / moviequote-rules.bolt
Last active Jan 9, 2016
Firebase bolt rules for the Moviequotes App
View moviequote-rules.bolt
path /quotes {
write() = true;
read() = true;
path /quotes/$moviequote is Moviequote;
type Moviequote {
movie: String,
quote: String