Skip to content

Instantly share code, notes, and snippets.

@reefbarman
reefbarman / floatplaneextended
Created January 29, 2021 08:05
Expands the Floatplane video to fill the horizontal space it has available within the website. Create as a bookmarklet http://www.prowebguru.com/2017/01/javascript-bookmarklet-create-javascript-bookmarklet-in-google-chrome/
javascript:(function()%7Bfunction callback()%7B(function(%24)%7Bvar jQuery%3D%24%3B%24(".player-container").css("max-width"%2C "none")%7D)(jQuery.noConflict(true))%7Dvar s%3Ddocument.createElement("script")%3Bs.src%3D"https%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.11.1%2Fjquery.min.js"%3Bif(s.addEventListener)%7Bs.addEventListener("load"%2Ccallback%2Cfalse)%7Delse if(s.readyState)%7Bs.onreadystatechange%3Dcallback%7Ddocument.body.appendChild(s)%3B%7D)()
@reefbarman
reefbarman / MiniJSON.cs
Created June 3, 2017 13:35 — forked from darktable/MiniJSON.cs
Unity3D: MiniJSON Decodes and encodes simple JSON strings. Not intended for use with massive JSON strings, probably < 32k preferred. Handy for parsing JSON from inside Unity3d.
/*
* Copyright (c) 2013 Calvin Rien
*
* Based on the JSON parser by Patrick van Bergen
* http://techblog.procurios.nl/k/618/news/view/14605/14863/How-do-I-write-my-own-parser-for-JSON.html
*
* Simplified it so that it doesn't throw exceptions
* and can be used in Unity iPhone with maximum code stripping.
*
* Permission is hereby granted, free of charge, to any person obtaining
@reefbarman
reefbarman / JsonPatch.cs
Last active May 27, 2025 21:06
A quick implementation of http://jsonpatch.com/ to patch json files in C#. Requires MiniJSON https://gist.github.com/darktable/1411710
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
//https://gist.github.com/darktable/1411710
namespace MiniJSON
{
//http://jsonpatch.com/