Skip to content

Instantly share code, notes, and snippets.

Justin Scott JScott

Block or report user

Report or block JScott

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 BubbleGlow.shader
Shader "Custom/BubbleGlow"
Properties {
_MainTex ("Base (RGB) Trans (A)", 2D) = "white" {}
_RimColor("Rim Color", Color) = (1, 1, 1, 1)
_RimPower("Rim Power", Range(1.0, 6.0)) = 3.0
SubShader {
Tags {
JScott / unxip.scpt
Created Sep 16, 2016
For unarchiving Apple's bad decisions
View unxip.scpt
on run argv
tell application "Archive Utility" to open POSIX path of (item 1 of argv)
delay 5
if application "Archive Utility" is not running then exit repeat
end repeat
end run
View vrclient_vrcompositor.txt
Sat Apr 16 2016 11:50:43.306 - //=====================================================================================================================
Sat Apr 16 2016 11:50:43.306 - vrclient startup with PID=8100, config=E:\Steam\config
Sat Apr 16 2016 11:50:43.309 - Not starting vrserver for background application.
Sat Apr 16 2016 11:50:51.948 - //=====================================================================================================================
Sat Apr 16 2016 11:50:51.948 - vrclient startup with PID=13208, config=E:\Steam\config
Sat Apr 16 2016 11:50:51.964 - Starting vrserver process: G:\Steam\steamapps\common\SteamVR\bin\win32\vrserver.exe
Sat Apr 16 2016 11:50:57.037 - Giving up server connection over pipe VR_Pipe after 50 attempts
View CustomFader.cs
using UnityEngine;
using System.Collections;
public class CustomFader : MonoBehaviour {
private Material screenMaterial;
public bool startFaded = true;
public float fadeSpeed = 0.5f;
void Awake() {
screenMaterial = GetComponent<Renderer>().material;
JScott /
Last active Dec 23, 2016
TenVer v10

Ten Versioning v10


The version of your product is and always will be 10.


As you manage a software product, you will have many choices on how to manage the versions of it. Most versioning systems have the following problems:

JScott / hide_stdout.rb
Created Feb 24, 2015
I always forget how to hide output and logging with RSpec. This worked for me in the past.
View hide_stdout.rb
module StdoutHelper
def hide_stdout
allow(STDOUT).to receive(:puts)
logger = double('Logger').as_null_object
allow(Logger).to receive(:new).and_return(logger)
JScott / pubsub.js
Last active Oct 7, 2016
Like David Walsh's pubsub object but better
View pubsub.js
/* Improved from
- Improved readability
- Friendlier naming conventions
- Generic data for publishing
var event: (function(){
var topic = {};
return {
subscribe: function(name, listener) {
View MVML-API-Node
It's a bit ugly but this is close to what I use for the server right now to serve MVML.
As you can see, it's nothing more than a POST to the server to turn MVML into HTML.
Be careful with the lack of error handling in this code. It's very rough.
These files show example pages that use the hosted MVML API with HTML5 and JS.
Just copy these files onto your page and let the API handle the rest.
You can either edit the MVML in-line or as a separate file.
You can’t perform that action at this time.