Skip to content

Instantly share code, notes, and snippets.

View tomoima525's full-sized avatar
🎯
Focusing

tomo tomoima525

🎯
Focusing
View GitHub Profile
@tomoima525
tomoima525 / gist:97eaf11e59698b57afe6
Created November 25, 2014 07:08
/gradlew :app:dependencies
$ ./gradlew :app:dependencies
current task: :app:dependencies
single_task: :app:dependencies
****************************************************
* CONFIGURATION
* TASK: :app:dependencies
* SDK_FLAVOR: Production
* SDK_BUILD TYPE: Release
* aviarySdkPackageName: com.aviary.android.feather.sdk
* aviarySdkVersionName: 3.4.3
@tomoima525
tomoima525 / file0.txt
Last active August 29, 2015 13:57
git,githubのコマンド チートシート ref: http://qiita.com/tomoima525/items/a3d5dd3e6546d52a5cfb
$ git status
@tomoima525
tomoima525 / file0.txt
Created March 12, 2014 00:21
macにhomebrewからrbenv ruby rails導入 ref: http://qiita.com/tomoima525/items/b3fb06a95efebb848d03
~ $ brew update
Updated Homebrew from a0b1aab2 to 51a9003a.

gemのディレクトリ調べる

gem which gem名
@tomoima525
tomoima525 / gitのコマンド.md
Last active August 29, 2015 13:56
gitのコマンド チートシートre

###gitのリポジトリ作成

git init

backup リポジトリ作成

  • 空のレポジトリ作る
@tomoima525
tomoima525 / PictureCallback.java
Last active November 28, 2017 09:54
Android code to make jpeg picture that fits with camera preview size
PictureCallback jpegCallback=new PictureCallback(){
@Override
public void onPictureTaken(byte[] data, Camera camera) {
if(data !=null){
/* I use Galaxy S3 and Supported PictureSize was width = 3264px, height = 2448px, prop = 1.3333334
Because inSampleSize should be integer, I set maxSize a fraction of srcSize(Supported Picturesize)
*/
int maxSize = 816;
mCamera.stopPreview();
@tomoima525
tomoima525 / SensorAdapter.java
Last active September 5, 2019 23:48
Andorid code snippet for acquiring an accelerometer sensor data without gravity data. Also removes noise by using a low pass filter. 重力の影響を省いた加速度値を取得するためのアンドロイドのサンプルコード。 ローパスフィルタでノイズも除去。
//Acquiring an accelerometer sensor data without gravity data
import java.util.List;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
public class SensorAdapter implements SensorEventListener{