Skip to content

Instantly share code, notes, and snippets.

:shipit:

Tyler Rockwood rockwotj

:shipit:
Block or report user

Report or block rockwotj

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View .SC2Hotkeys
[Settings]
Grid=1
Suffix=_GLS
[Hotkeys]
PTT=
AlertRecall=
ArmySelect=Grave
IdleWorker=Shift+Grave
TargetChoose=LeftMouseButton,Z
View scratch.bookmarklet
data:text/html, <html contenteditable style="font-family: courier">
@rockwotj
rockwotj / rtdb_load.py
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
View rtdb_load.py
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# 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
package com.google.functions.examples.scalajs
import scala.scalajs.js.annotation._
import scala.scalajs.js
import js.DynamicImplicits._
@js.native
trait Request extends js.Any {
val body: js.Dictionary[Any] = js.native
}
View download-jar.py
#!/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
rockwotj / motd.sh
Created Jan 6, 2017
Raspberry Pi motd
View motd.sh
#!/bin/bash
clear
function color (){
echo "\e[$1m$2\e[0m"
}
function extend (){
local str="$1"
@rockwotj
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
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
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
@rockwotj
rockwotj / godist.rb
Created Dec 6, 2015
A short ruby script to cross platform a golang project
View godist.rb
#! /usr/bin/env ruby
if not ARGV[0] or ARGV[0] == "-h"
puts "Usage: ./go_dist <project>"
exit
end
project_path = ARGV[0]
project = project_path.split('/')[-1]
puts "\e[1mStarting distribution of \e[32m'#{project}'\e[0m"
platforms = {
You can’t perform that action at this time.