Skip to content

Instantly share code, notes, and snippets.


milan mimoccc

View GitHub Profile
//Reveal View. Note: View should be invisible before revealing
// Do the API compatibility check
new Timer().schedule(new TimerTask() {
public void run() {
getActivity().runOnUiThread(new Runnable() {
mimoccc /
Created Jun 15, 2019 — forked from balachandarlinks/
ImageFlipper helps you to run a flip animation with a series of images on any ImageView.
public class ImageFlipper{
private static final int START_ANGLE = 90;
private static final int END_ANGLE = 270;
private int animationDuration = 800;
private ObjectAnimator flipObjectAnimator;
public ImageFlipper(final View targetView, final int[] drawableResources){
flipObjectAnimator = ObjectAnimator.ofFloat(targetView, "rotationY", START_ANGLE, END_ANGLE);
mimoccc /
Created Jun 15, 2019 — forked from balachandarlinks/
Retrieve contact name by giving a phone number
* @param context
* @param phoneNumber
* @return contactName
public static String getContactName(Context context, String phoneNumber) {
Uri uri = Uri.withAppendedPath(
* Copyright (C) 2014 The Android Open Source Project
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* Unless required by applicable law or agreed to in writing, software
// Underhanded skullduggery to access the keystore daemon.
// This is merely a slightly cleaned up implementation of
// and all credit to Nikolay for digging into this.
import android.content.Context;
import android.content.Intent;
View client.js
var GCM = require('./gcm');
var gcm = new GCM(<YOUR GOOGLE API KEY>); //
// create the message
var msg = {
registration_ids: [token], // this is the device token (phone)
collapse_key: "your_collapse_key", //
time_to_live: 180, // just 30 minutes
data: {
View stratus-customization
<script type="text/javascript">
auto_play: true,
download: false,
links: '',
random: true
You can’t perform that action at this time.