Skip to content

Instantly share code, notes, and snippets.

Avatar
㊙️
shhhh

Michael Alan Huff koalahamlet

㊙️
shhhh
View GitHub Profile
View guide-to-berlin.md

How & Where to be Seen in Berlin

Be seen in a lake, chasing a duck

View MainActivity.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);
View restaurants_jswarts_avoids.txt
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/
View gist:233970b7ccfc5a44113dbdd9d2ed5c29
onCreate() {
getWindow().getDecorView()
.setSystemUiVisibility(
View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION);
}
View ViewController.swift
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) {
View hacking_in_a_material_world.md

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).

View gist:37e3565d7b448d52a9d6
* 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
View WeatherApplication.java
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 Aug 29, 2015
My initial review and notes of Famo.us University 101 course
View famousUniversity101.md

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*.
@koalahamlet
koalahamlet / notWorkingWell.java
Last active Aug 29, 2015
Fragments, how do they work?
View notWorkingWell.java
@Override
public void onTabSelected(ActionBar.Tab tab, FragmentTransaction ft) {
FragmentManager manager = getFragmentManager();
FragmentTransaction fts = manager
.beginTransaction();
// lazy instantiation for the win
if (tab.getTag() == "PoiListFragment") {