This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.List; | |
import android.content.Context; | |
import android.graphics.Bitmap; | |
import android.graphics.Canvas; | |
import android.graphics.ColorMatrix; | |
import android.graphics.ColorMatrixColorFilter; | |
import android.graphics.Matrix; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.androidannotations.annotations.Background; | |
import org.androidannotations.annotations.EFragment; | |
import org.androidannotations.annotations.FragmentArg; | |
import org.androidannotations.annotations.UiThread; | |
import twitter4j.Twitter; | |
import twitter4j.TwitterException; | |
import twitter4j.TwitterFactory; | |
import twitter4j.auth.AccessToken; | |
import twitter4j.auth.RequestToken; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (C) 2012 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 | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.FileDescriptor; | |
import java.io.IOException; | |
import java.nio.ByteBuffer; | |
import java.util.Map; | |
import android.content.Context; | |
import android.media.MediaExtractor; | |
import android.media.MediaFormat; | |
import android.net.Uri; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.eje_c.matrixtest; | |
import android.app.Activity; | |
import android.graphics.Bitmap; | |
import android.graphics.BitmapFactory; | |
import android.graphics.Canvas; | |
import android.graphics.Color; | |
import android.graphics.Matrix; | |
import android.graphics.Paint; | |
import android.os.Bundle; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.animation.TypeEvaluator; | |
import android.graphics.Matrix; | |
public class MatrixEvaluator implements TypeEvaluator<Matrix> { | |
private Matrix evaluated = new Matrix(); | |
private float[] values = new float[9]; | |
private float[] startValues = new float[9]; | |
private float[] endValues = new float[9]; | |
@Override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isMobile() { | |
return !!navigator.userAgent.match(/(android|iphone|ipad)/i); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.Context; | |
import org.androidannotations.annotations.EBean; | |
public class MyAdapter extends SimpleListAdapter<String, TextView> { | |
public MyAdapter(Context ctx) { | |
super(ctx); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function MidiChannel(midiOutput, channel) { | |
this.output = midiOutput; | |
this.channel = channel; | |
} | |
MidiChannel.prototype = { | |
/* | |
* Channel voice messages | |
*/ | |
noteOff: function(noteNumber, velocity, timestamp) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('ModalCenter', []).directive('modalDialog', function($window) { | |
return { | |
restrict: 'C', | |
link: function(scope, element, attrs) { | |
var win = $($window); | |
win.on('resize', modalCenter); | |
function modalCenter() { | |
element.css('margin-top', (win.height() - element.height()) * 0.5 + 'px'); | |
} | |
modalCenter(); |