Skip to content

Instantly share code, notes, and snippets.

View elenzil's full-sized avatar

orion elenzil elenzil

  • seattle, usa
View GitHub Profile
@elenzil
elenzil / BetterToggleGroup.cs
Last active March 5, 2019 19:30 — 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() {
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):