Skip to content

Instantly share code, notes, and snippets.

@wellington1993
wellington1993 / util.js
Created May 20, 2020 00:43
view-source:moz-extension://390de5a6-0eba-49d3-8642-4a501d0bc440/background-scripts/
"use strict";
(function(exports) {
var VERB = 1;
var DBUG = 2;
var INFO = 3;
var NOTE = 4;
var WARN = 5;
// FYI: Logging everything is /very/ slow. Chrome will log & buffer
@Steveplays28
Steveplays28 / distant_horizons_shader_compatibility_information.md
Last active April 26, 2024 21:17
Distant Horizons shader compatibility info

Distant Horizons shader compatibility information

Distant Horizons v2.0.0 (and up) shader compatibility information.

v2

Prerequisites

  • Iris v1.7.0 or higher, or Oculus v1.6.15aDH or higher
  • Distant Horizons v2.0.2a or higher
@wellington1993
wellington1993 / content-script.js
Created April 7, 2020 01:15
moz-extension://993ff54e-e241-42fe-a4d9-3864dae1de3c/src/extension/content-script.js
const port = chrome.runtime.connect({name: 'contentScript'});
const dispatchCustomEvent = (type, detail) => {
window.dispatchEvent(new CustomEvent(type, {
detail: typeof cloneInto !== 'undefined' ? cloneInto(detail, window) : detail
}));
};
// receive message from panel via background
// and transfer to polyfill as event on window
{
"name": "Outlook",
"short_name": "Outlook",
"icons": [
{
"src": "https://ow2.res.office365.com/assets/mail/pwa/v1/pngs/Outlook.48x48x32.png",
"sizes": "48x48",
"type": "image/png"
},
{
@wellington1993
wellington1993 / console.js
Created April 13, 2020 12:17
moz-extension://1f253156-2cd1-429a-b4a2-0bdb0e728e53/js/console.js
(function() {
'use strict';
let keys = Object.keys(console),
checkTime = () => console.lastUsage = Date.now(),
logs = [],
_console = {},
browserFuncs = {};
checkTime();
@zkayser
zkayser / unverified_mocks.ex
Created April 17, 2024 13:06
Credo Check for Validating Mox Users Verify Expectations
defmodule MyApp.Checks.UnverifiedMocks do
@moduledoc """
#{__MODULE__} looks for test files that import Mox and use
the `expect/4` function, but do not enforce any assertions that
the expectations have been called or not either by running `verify_on_exit`
from a setup block or calling `verify!/0` or `verify!/1` inline
in a test block.
"""
@message """
@wellington1993
wellington1993 / compras-presentes.md
Last active April 26, 2024 21:16
Lista de compra ou presentes que quero ganhar
  • Tesouras
  • Forno elétrico grande
  • Grelhas
  • Formas
  • Faqueiro e talheres
  • Copos
  • Suportes pra panelas
  • Liquidificador (Receitas de solteiro)
  • Batedeira (Bolo)
  • Kit de panelas (Cozinhar é vida)
@piersharding
piersharding / docker-credentials.sh
Last active April 26, 2024 21:16
Create Docker config.json file credentials
#!/bin/bash
# This script creates a docker config.json file with the auth section
# as an example of what can be passed into GitLab-CI and used in
# conjunction with DOCKER_CONFIG - the config file directory location.
# command line parameter default values
DOCKER_REGISTRY=""
DOCKER_USER=""
DOCKER_PASSWORD=""
@wellington1993
wellington1993 / IndexedDB.jsm
Created May 20, 2020 00:44
view-source:resource://gre/modules/IndexedDB.jsm
/* -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* vim: set sts=2 sw=2 et tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
/**
* @file
*
@JotaRata
JotaRata / TextEditor.cs
Last active April 26, 2024 21:14
A really really simple text editor for Unity
/*
This is a really simple text editor to be used within Unity
It's useful to write memos, notes or ideas inside your Unity Editor window
Kinda like Blender's Text Editor
*/
using UnityEngine;
using UnityEditor;
using System;
using System.IO;