Skip to content

Instantly share code, notes, and snippets.

@georgf
georgf / MinMaxSliderAttribute.cs
Created June 26, 2023 15:02 — forked from frarees/MinMaxSliderAttribute.cs
MinMaxSlider for Unity
// https://frarees.github.io/default-gist-license
using System;
using UnityEngine;
[AttributeUsage(AttributeTargets.Field, Inherited = true, AllowMultiple = false)]
public class MinMaxSliderAttribute : PropertyAttribute
{
public float Min { get; set; }
public float Max { get; set; }
@georgf
georgf / json-schema.json
Last active June 26, 2019 18:42
Mobile experiments kinto setup
{
"type": "object",
"required": [
"id",
"description",
"match",
"buckets",
"branches"
],
"properties": {
@georgf
georgf / os_shutting_down.json
Created October 4, 2018 11:17
x axis: categorical labels, y axis: proportion of users
[
{
"label": "never",
"value": 0.785977356
},
{
"label": "sometimes",
"value": 0.21374983
},
{
@georgf
georgf / userChrome.css
Last active October 4, 2018 10:31
Tabcenter redux - hide tab bar & autoshrink sidebar
/*
* This hides the horizontal top-level tab strip & makes the tab sidebar autoshrink.
*
* This needs to be added to the userChrome.css, see e.g. here for more:
* https://github.com/eoger/tabcenter-redux/wiki/Custom-CSS-Tweaks#userchromecss-tweaks
*
* Also requires in about:config to set browser.tabs.drawInTitlebar to false.
*/
@-moz-document url("chrome://browser/content/browser.xul") {
@georgf
georgf / test.py
Created May 18, 2018 10:20
quick test of msgpack vs. json encoding
import os
import sys
import datetime
import json
import umsgpack
def time(what, fn):
start = datetime.datetime.now()
fn()
@georgf
georgf / Current histogram & scalar payload sizes.ipynb
Last active May 8, 2018 20:02
Current histogram & scalar payload sizes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@georgf
georgf / "main" ping size distributions on Beta.ipynb
Created May 25, 2017 11:17
"main" ping size distributions on Beta
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@georgf
georgf / "main" ping size distributions on Nightly.ipynb
Last active May 25, 2017 16:44
"main" ping size distributions on Nightly
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@georgf
georgf / histogram-empty-key-counts.ipynb
Last active February 24, 2017 11:48
histogram-empty-key-counts
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@georgf
georgf / Check moztelemetry types.ipynb
Last active December 22, 2016 18:51
Check moztelemetry types
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.