Skip to content

Instantly share code, notes, and snippets.

🏠
back on track

Mocoven mocovenwitch

🏠
back on track
  • Sydney, Australia
Block or report user

Report or block mocovenwitch

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@gelldur
gelldur / ShareIntentBuilder
Last active Nov 19, 2018
Share builder for android
View ShareIntentBuilder
package com.dexode.util;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.pm.LabeledIntent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.net.Uri;
import android.support.annotation.Nullable;
@elandau
elandau / StateMachine
Created Oct 30, 2014
Rx based state machine
View StateMachine
package com.netflix.experiments.rx;
import java.util.HashMap;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import rx.Observable;
import rx.Observable.OnSubscribe;
@BrandonSmith
BrandonSmith / AndroidManifest.xml
Last active Jul 16, 2019
Quick example of how to schedule a notification in the future using AlarmManager
View AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.cards.notification">
<uses-sdk
android:minSdkVersion="17"
android:targetSdkVersion="17" />
<application
android:allowBackup="true"
@jaydeepw
jaydeepw / enableHTML5AppCache.java
Last active Apr 10, 2019
Enabling HTML5 AppCache in Android Webview programatically.
View enableHTML5AppCache.java
private void enableHTML5AppCache() {
webView.getSettings().setDomStorageEnabled(true);
// Set cache size to 8 mb by default. should be more than enough
webView.getSettings().setAppCacheMaxSize(1024*1024*8);
// This next one is crazy. It's the DEFAULT location for your app's cache
// But it didn't work for me without this line
webView.getSettings().setAppCachePath("/data/data/"+ getPackageName() +"/cache");
@ravasthi
ravasthi / _config.yml
Created Feb 15, 2012
Multiple authors on Jekyll
View _config.yml
authors:
hanzou:
name: Hanzou Hattori
display_name: Hanzou
gravatar: c66919cb194f96c696c1da0c47354a6a
email: hanzou@company.com
web: http://company.com
twitter: company
github: hhattori
jorgen:
You can’t perform that action at this time.