Skip to content

Instantly share code, notes, and snippets.

View elenzil's full-sized avatar

orion elenzil elenzil

  • seattle, usa
View GitHub Profile
import copy
import time
# fun from Ernest!
#
# Given two strings s and t, determine whether some anagram of t is a substring of s.
# For example: if s = "udacity" and t = "ad", then the function returns True.
# Your function definition should look like: question1(s, t) and return a boolean True or False.
def q_ernest(s, t):
@elenzil
elenzil / BetterToggleGroup.cs
Last active May 5, 2024 20:18 — forked from jmbeach/BetterToggleGroup.cs
Improved ToggleGroup for Unity GUI
using System;
using UnityEngine;
using UnityEngine.UI;
// based on https://gist.github.com/jmbeach/78c3e46669db89628fce
public class BetterToggleGroup : ToggleGroup {
public Action<Toggle> OnChange;
protected override void Start() {