Skip to content

Instantly share code, notes, and snippets.

View awatertrevi's full-sized avatar

Trevi Awater awatertrevi

View GitHub Profile
@awatertrevi
awatertrevi / save-shortcut-google-calendar.js
Last active June 21, 2022 23:12
Cmd + Enter = Save on Google Calendar #tampermonkey
// ==UserScript==
// @name Google Calendar (Cmd + Enter = Save)
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Saves a calendar event when Cmd + Enter is pressed.
// @author Trevi Awater
// @match https://calendar.google.com/*
// @grant none
// ==/UserScript==
@awatertrevi
awatertrevi / ValueConverterGroup.cs
Last active April 27, 2021 10:53
ValueConverterGroup with parameters.
public class ValueConverterGroup : List<IValueConverter>, IValueConverter
{
private string[] _parameters;
private bool _shouldReverse = false;
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
ExtractParameters(parameter);
if (_shouldReverse)
@awatertrevi
awatertrevi / NoRippleListViewRenderer.cs
Created July 16, 2017 20:53
Removes the material ripple effect on the Xamarin.Forms Android ListView.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;