Skip to content

Instantly share code, notes, and snippets.

View koalahamlet's full-sized avatar
㊙️
shhhh

Michael Alan Huff koalahamlet

㊙️
shhhh
View GitHub Profile
@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
package venmo.michaelhuff.sf5dayforecast;
import javax.inject.Inject;
import javax.inject.Singleton;
import dagger.Component;
/**
* Created by koalahamlet on 2/3/15.
*/
@koalahamlet
koalahamlet / famousUniversity101.md
Last active August 29, 2015 14:13
My initial review and notes of Famo.us University 101 course

Here are my notes about the Famo.us University 101

  • ** --> concepts
  • ## --> things to possibly improve

In general, there needs to be a reset code button. There were a few times in the course of progressing through everything that it would have been more helpful to have 'reset code' button rather than Ctrl+z-ing my way back to the start.

=============================================================================

Famo.us 101: Displaying content.

  • #####step 1 Displaying Content Introduces the concept of a *renderable*.