Skip to content

Instantly share code, notes, and snippets.

@jjjhrl
jjjhrl / Draw.cs
Created December 25, 2015 03:25 — forked from nsdevaraj/Draw.cs
Draw lines on Unity GUI
using UnityEngine;
using System.Collections;
public class Draw : MonoBehaviour
{
struct GUILine
{
public Vector2 startPt;
public Vector2 endPt;
}
@jjjhrl
jjjhrl / TransparentBackgroundScreenshotRecorder.cs
Created December 8, 2015 03:26 — forked from bitbutter/TransparentBackgroundScreenshotRecorder.cs
Rendering screenshots from Unity3d with transparent backgrounds
using UnityEngine;
using System.Collections;
using System.IO;
/*
Usage:
1. Attach this script to your chosen camera's game object.
2. Use the inspector to set frameRate and framesToCapture
3. Choose your desired resolution in Unity's Game window (must be less than or equal to your screen resolution)
@jjjhrl
jjjhrl / prov-p12-verify.sh
Created October 9, 2015 03:20 — forked from command-tab/prov-p12-verify.sh
Compares fingerprints of certificates in an Apple provisioning profile against that of a PKCS12 (.p12) file. Usage: prov-p12-verify.sh /path/to/prov.mobileprovision /path/to/pkcs.p12 secretpassword
#/bin/bash
prov="$1"
p12="$2"
password="$3"
blue_color="\033[0;36m"
green_color="\033[0;32m"
red_color="\033[0;31m"
end_color="\033[0m"
/**
* Copyright 2012 Calvin Rien
* (http://the.darktable.com)
*
* 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
*
/* **************************************************************************
Copyright 2012 Calvin Rien
(http://the.darktable.com)
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
/* **************************************************************************
Copyright 2012 Calvin Rien
(http://the.darktable.com)
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