Skip to content

Instantly share code, notes, and snippets.

View rtauziac's full-sized avatar
😼
Sailin’ and treasure huntin’

Rémy Tauziac rtauziac

😼
Sailin’ and treasure huntin’
View GitHub Profile
@rtauziac
rtauziac / BFF.user.js
Last active September 18, 2023 08:11
Back and Forward, Finally… A userscript for Safari that enables mouse buttons for navigating back and forward.
// ==UserScript==
// @name BFF
// @description Back and Forward, Finally… A userscript for Safari that enables mouse buttons for navigating back and forward.
// @namespace mailto:crazyrems@hey.com
// @author crazyrems
// @version 1
// @match *://*/*
// @grant none
// ==/UserScript==
@rtauziac
rtauziac / OpenExplorer.cs
Created February 10, 2021 14:40
Open Explorer window from Unity
// Unity behavior
// When the `O` key is pressed, it opens an explorer window at the persistent data path.
private void Update()
{
#if UNITY_STANDALONE_WIN
if (Input.GetKeyDown(KeyCode.O))
{
var explorerArgument = Application.persistentDataPath;
explorerArgument = ContactFormBehavior.csvDirectoryPath.Replace("/", "\\");
@rtauziac
rtauziac / Optional+CSharpStyle.swift
Created February 7, 2019 17:18
Use optionals with the C# style
extension Optional {
var hasValue: Bool {
return self != nil
}
var value: Wrapped {
return self!
}
func value(orDefault defaultValue: Wrapped) -> Wrapped {
identifier description
mr Marathi
bs Bosnian
ee_TG Ewe (Togo)
ms Malay
kam_KE Kamba (Kenya)
mt Maltese
ha Hausa
es_HN Spanish (Honduras)
ml_IN Malayalam (India)
@rtauziac
rtauziac / fullDescription.lua
Last active August 29, 2015 14:07
Create a string representing the full description of a Lua table.
function fullDescription(aTable, depth, descriptionString)
if depth == nil then
depth = 1
end
if descriptionString == nil then
descriptionString = ""
end
local negSpace = ""
local tabSize = 4