Skip to content

Instantly share code, notes, and snippets.

View koalahamlet's full-sized avatar
㊙️
shhhh

Myko Huff koalahamlet

㊙️
shhhh
View GitHub Profile
@koalahamlet
koalahamlet / colorTester.ino
Created November 7, 2024 05:46
color tester for a strip.
#include <FastLED.h>
#include <stdio.h>
#include <SPI.h>
#define LED_PIN_DATA 11
#define LED_PIN_CLOCK 13
#define NUM_LEDS 128 // Adjust this to the number of LEDs in your strip
#define BRIGHTNESS 155
#define POT_PIN_RED A3
#define POT_PIN_GREEN A0
@koalahamlet
koalahamlet / strobe.ino
Created November 5, 2024 21:31
strobing LED problem
#include <FastLED.h>
#include <stdio.h>
#include <SPI.h>
#define LED_PIN_DATA 11
#define LED_PIN_CLOCK 13
#define NUM_LEDS 128
#define BRIGHTNESS 155
#define POT_PIN A0
#define POT_PIN_COLOR A3
@koalahamlet
koalahamlet / sound_coment.ino
Created January 11, 2022 04:11
Sound reactive comet
#include <FastLED.h>
#define NUM_LEDS 30
#define DATA_PIN 3
const uint8_t g_Brightness = 16;
CRGB g_LEDs[NUM_LEDS];
int sensorAnalogPin = A0; // Select the Arduino input pin to accept the Sound Sensor's analog output
int sensorDigitalPin = 6; // Select the Arduino input pin to accept the Sound Sensor's digital output

How & Where to be Seen in Berlin

Be seen in a lake, chasing a duck

@koalahamlet
koalahamlet / MainActivity.java
Created February 19, 2017 18:28
rainbowview.java
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
getWindow().getDecorView().getViewTreeObserver().addOnPreDrawListener(
new ViewTreeObserver.OnPreDrawListener() {
@Override
public boolean onPreDraw() {
final View view = findViewById(R.id.rainbow_view);
http://www.politeprovisions.com/
http://www.marketprovisionsla.com/
http://www.victoria-provisions.com/
http://southern-provisions.com/
https://www.sloprovisions.com/
http://brosprovisions.com/
http://www.doceprovisions.com/
http://lrgprovisions.com/
http://coastalprovisionsmarket.com/
http://statebirdsf.com/
onCreate() {
getWindow().getDecorView()
.setSystemUiVisibility(
View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION);
}
@koalahamlet
koalahamlet / ViewController.swift
Created December 22, 2016 04:24
non working tableview
class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSource {
@IBOutlet var tableView: UITableView!
let cellIdentifier = "asdfasdfasdf"
class SoundByte {
let name: String
let internalName: String
init(mName:String, mInternalName : String) {

Hacking in a material world

Challenge

We will be playing with android's gorgeous new Material Design theme. We will be covering the following material widgets and animations that were introduced in Android 5.0 (API level 21).

* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:compileDebugJava'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
at org.gradle.api.inter