Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / 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; }