Skip to content

Instantly share code, notes, and snippets.

View kschieck's full-sized avatar

Kyle Schieck kschieck

  • London, Ontario
View GitHub Profile
@kschieck
kschieck / xylophone_hero.ino
Created August 12, 2021 14:36
Xylophone Hero
include <FastLED.h>
// HARDWARE CONFIG
#define DATA_PIN 7
// LED SETUP
#define NUM_LEDS 50
#define TRACKS 8
#define TRACK_LENGTH 6 //floor(NUM_LEDS / TRACKS) or The number of lights in a track
@kschieck
kschieck / Bezier.cs
Created June 10, 2015 14:01
Unity3d class used to make objects follow a curve
using UnityEngine; // for Vector3
/// <summary>
/// A utility for finding points along a bezier curve
/// ref: http://en.wikipedia.org/wiki/B%C3%A9zier_curve
/// </summary>
public class Bezier
{
/// <summary>
@kschieck
kschieck / CustomArrayAdapter.java
Last active November 25, 2020 01:05
Android Array Adapter with View Recycling
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import java.util.ArrayList;
/*
CustomArrayAdapter - Create a list adapter with a custom layout and data type
@kschieck
kschieck / DatabaseUtil.cs
Last active August 9, 2021 01:33
Simple C#.NET Sql Database interface
using System.Collections.Generic;
using System.Data;
using System.Data.Common;
namespace Utilities
{
class DatabaseUtil
{
public string connString { get; protected set; }