This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
: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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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. | |
// |
NewerOlder