Skip to content

Instantly share code, notes, and snippets.

View NullEntity's full-sized avatar

Bryce Walther NullEntity

  • Philadelphia, PA
View GitHub Profile
function removeCircularReferences(obj) {
debugger;
var cache = [];
var filter = function(obj, path) {
return _.reduceRight(obj, function(memo, v, k) {
if (typeof v === 'object' && v !== null) {
var index = cache.indexOf(v);
if (index !== -1) {
memo[k] = '__circular__@' + index;
// basic class to hold a publicly accessible GameObject
using UnityEngine;
public class GameManager : MonoBehaviour
{
private GameObject _manager; // static properties can't be modified from the editor
public GameObject manager;
void Start()
{
@NullEntity
NullEntity / beep.user.js
Created October 16, 2014 23:33
Greasemonkey script to make Lifepunch's shoutobx beep when it doesn't have focus
// ==UserScript==
// @name BEEP BEEP MOTHERFUCKER
// @namespace http://agent766.com/
// @version 0.1
// @description something useful
// @author Scratch
// @match http://www.lifepunch.net/forums/*
// @grant none
// ==/UserScript==
util.AddNetworkString( "BetchaOpenMenu" )
local DisabledRoundStates = { ROUND_WAIT, ROUND_POST }
local function ParseChat( ply, msg )
if msg ~= "/bet" then return msg end
if not ply:Alive() then
NotifyPlayer( ply, "You must be alive to place a bet!" )
return
elseif ply:IsTraitor() then
{
:before => before,
:after => after,
:ref => ref,
:commits => [{
:id => commit.id,
:message => commit.message,
:timestamp => commit.committed_date.xmlschema,
:url => commit_url,
:added => array_of_added_paths,
@NullEntity
NullEntity / myshoutbox.js
Last active December 10, 2015 16:28 — forked from anonymous/myshoutbox.js
Updated showShouts function to only create the timer once.
// MyShoutbox for MyBB
// (c) Pirata Nervo, www.consoleworld.net
//
// Based off:
// SpiceFuse AJAX ShoutBox for MyBB
// (c) Asad Niazi, www.spicefuse.com!
//
// Code is copyrighted and does not belong to public domain.
// Copying or reusing in different forms/softwares isn't allowed.
//