Skip to content

Instantly share code, notes, and snippets.

View fly1tkg's full-sized avatar

Shoichi Takagi fly1tkg

View GitHub Profile
@fly1tkg
fly1tkg / RxJavaUnitTest.java
Last active March 21, 2016 08:16
RxJavaのテストコードのサンプル http://fly1tkg.github.io/2016/03/rxjava-test/
import org.junit.Test;
import java.util.Arrays;
import rx.Observable;
import rx.observers.TestSubscriber;
public class RxJavaUnitTest {
@Test
public void observableTest() throws Exception {
@fly1tkg
fly1tkg / gist:4f2c7799c09610c759c2
Created June 30, 2014 10:13
android x264 build
NDK=/home/vagrant/android-ndk-r9d
SYSROOT=$NDK/platforms/android-9/arch-arm/
TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86
./configure \
--cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- \
--sysroot="$SYSROOT" \
--host=arm-linux \
--enable-pic \
--enable-static \
@fly1tkg
fly1tkg / ffmpeg_build_android.sh
Created June 30, 2014 10:12
android runnable ffmpeg 2.2.4 build with x264
#!/bin/bash
NDK=/home/vagrant/android-ndk-r9d
SYSROOT=$NDK/platforms/android-9/arch-arm/
TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86
function build_one
{
./configure \
--prefix=$PREFIX \
--disable-shared \
--enable-static \
@fly1tkg
fly1tkg / clone_andengine_and_extentions.sh
Created February 17, 2014 06:35
Clone AndEngine and Extentions
REPOS=("" "AugmentedRealityExtension" "LiveWallpaperExtension" "MODPlayerExtension" "MultiplayerExtension" "MultiTouchExtension" "PhysicsBox2DExtension" "RobotiumExtension" "ScriptingExtension" "ScriptingExtensionGenerator" "SVGTextureRegionExtension" "TexturePackerExtension" "TMXTiledMapExtension")
for ((l = 0; l < ${#REPOS[@]}; ++l ))
do
git clone "https://github.com/nicolasgramlich/AndEngine"${REPOS[$l]}".git"
done
@fly1tkg
fly1tkg / CropFor16to9MovieMarker.js
Last active December 12, 2015 06:58
This file is a Photoshop script for create marker which is use for 16:9 aspect ratio Movie AR by CARKCHO(https://app.carkcho.com).
/*
author: Shoichi Takagi
*/
var width;
var height;
var movieWidth;
var movieHeight;
var getImageSize = function() {
@fly1tkg
fly1tkg / CropFor4to3MovieMarker.js
Created February 7, 2013 19:15
This file is a Photoshop script for create marker which is use for 4:3 aspect ratio Movie AR by CARKCHO(https://app.carkcho.com).
/*
author: Shoichi Takagi
*/
var width;
var height;
var movieWidth;
var movieHeight;
var getImageSize = function() {
package com.fly1tkg.view;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Bitmap.Config;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.PorterDuff.Mode;
import android.graphics.PorterDuffXfermode;