Skip to content

Instantly share code, notes, and snippets.

View thinkallabout's full-sized avatar

Cameron Brown thinkallabout

  • United Kingdom
  • 14:43 (UTC +01:00)
View GitHub Profile
using UnityEngine;
using System.Collections.Generic;
using HierarchyDict = System.Collections.Generic.Dictionary<string, UnityEngine.Transform>;
using BoneTransformDict = System.Collections.Generic.Dictionary<string, utils.Tuple<UnityEngine.Transform, string>>;
namespace utils
{
public class MeshCombiner
{

Keybase proof

I hereby claim:

  • I am greenishblue on github.
  • I am thinkallabout (https://keybase.io/thinkallabout) on keybase.
  • I have a public key ASDO7I5LJciP22omMGqYLLryg3IB3C_8hUqGfJbK7vlnowo

To claim this, I am signing this object:

@thinkallabout
thinkallabout / addEmail.gs
Created July 11, 2019 04:19
Inquiry Form Submission - Decoupage Dreams - Google Apps Script
// Adds an email to sheet.
function addEmailToSheet(email) {
var sheetsApp = SpreadsheetApp.getActiveSpreadsheet();
// 05/2019 for example..
var monthString = (new Date().getMonth() + 1).toString();
if(monthString.length == 1) {
monthString = "0" + monthString;
}
var sheetName = monthString + "/" + new Date().getYear();
@thinkallabout
thinkallabout / ga.py
Created May 8, 2019 13:28
Post to Google Analytics Measurement Protocol with this Python function
def track_event(category, action, label=None, value=0):
data = {
'v': '1', # API Version.
'tid': GA_TRACKING_ID, # Tracking ID / Property ID.
# Anonymous Client Identifier. Ideally, this should be a UUID that
# is associated with particular user, device, or browser instance.
'cid': '555',
't': 'event', # Event hit type.
'ec': category, # Event category.
'ea': action, # Event action.
@thinkallabout
thinkallabout / demo.py
Last active January 8, 2023 10:57
Source Engine .dem parser (header)
# Copyright 2019 Cameron Brown
# 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
# http://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,
PS1="\\W \[\033[38;5;220m\]\\$\[$(tput sgr0)\] "
set nocompatible
filetype plugin on
syntax on
set tabstop=4
set shiftwidth=4
set expandtab
call pathogen#infect()
@thinkallabout
thinkallabout / tutorial.py
Created November 4, 2016 01:03
Quick and easy Python tutorial
### 1. BASIC STATEMENTS ###
# These are examples of basic data types in Python. They're basically the same
# in all programming languages but are all presented slightly differently.
# String: "Hello"
# Number: 5
# Boolean: False
# List: []
# Tuple: []
#!/usr/bin/env python
# encoding: utf-8
import os
import tkinter
from tkinter.filedialog import *
from tkinter.messagebox import *
from tkinter.ttk import *
def donothing():
@thinkallabout
thinkallabout / gist:76952b3d2f812710887f
Created May 22, 2014 19:53
Markdown Kitchen Sink from /adamschwartz/github-markdown-kitchen-sink
[View raw (TEST.md)](https://raw.github.com/adamschwartz/github-markdown-kitchen-sink/master/README.md)
This is a paragraph.
This is a paragraph.
Header 1
========