Skip to content

Instantly share code, notes, and snippets.

View Flydiverny's full-sized avatar
🧑‍🍼
Enjoying dadlife

Markus Maga Flydiverny

🧑‍🍼
Enjoying dadlife
View GitHub Profile
@Flydiverny
Flydiverny / VHAdapater.java
Created September 26, 2015 15:51
Just a simple ArrayAdapter enforcing a viewholder pattern.
public abstract class VHAdapter<T, VH> extends ArrayAdapter<T> {
@LayoutRes
private final int mLayoutRes;
private final LayoutInflater mInflater;
public VHAdapter(Context context, int resource) {
this(context, resource, new ArrayList<T>());
}
@Flydiverny
Flydiverny / challenge.js
Created April 2, 2016 11:48
Ran into some challenge while I was bored, thanks curbside :)
var http = require('http');
var Promise = require('promise');
var sessionGet = 0;
var sessionPromise;
var handleNext = function(req) {
var obj = JSON.parse(req.toLowerCase()); // lazy since some keys are in borked case.
return new Promise(function(resolve, reject) {

Keybase proof

I hereby claim:

  • I am flydiverny on github.
  • I am flydiverny (https://keybase.io/flydiverny) on keybase.
  • I have a public key whose fingerprint is 14C7 D907 B34C AACF A981 ADD2 290D 0DF4 88A2 D819

To claim this, I am signing this object:

@Flydiverny
Flydiverny / Android Privacy Policy Template
Created February 13, 2017 10:07 — forked from irfaan008/Android Privacy Policy Template
A template for creating your own privacy policy for Android apps. Look for "[" and "<!--" to see where you need to edit this app in order to create your own privacy olicy.
<html>
<body>
<h2>Privacy Policy</h2>
<p>[Individual or Company Name] built the [App Name] app as a [open source | free | freemium | ad-supported | commercial] app. This SERVICE is provided by [Individual or company name] [at no cost] and is intended
for use as is.</p>
<p>This page is used to inform app users regarding [my|our] policies with the collection, use, and
disclosure of Personal Information if anyone decided to use [my|our] Service.</p>
<p>If you choose to use [my|our] Service, then you agree to the collection and use of information in
relation with this policy. The Personal Information that [I|we] collect are used for providing and
improving the Service. [I|We] will not use or share your information with anyone except as described
@Flydiverny
Flydiverny / git-link.sh
Last active February 13, 2018 09:38
git link
apiVersion: apps/v1beta2
kind: DaemonSet
metadata:
labels:
app: kiam
chart: kiam-2.1.0
component: "server"
heritage: Tiller
release: release-name
name: release-name-kiam-server