This file contains hidden or 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
xcode-select --install | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew install caskroom/cask/brew-cask | |
brew tap caskroom/homebrew-versions | |
brew tap homebrew/binary | |
brew cask install firefox-ja |
This file contains hidden or 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
------------------------------------------------------------------ | |
// 変数 | |
private final int REPEAT_INTERVAL = 100; | |
private boolean isRepeat = true; | |
private Thread thread; | |
------------------------------------------------------------------ | |
final Handler mHandler = new Handler(); | |
Runnable looper = new Runnable() { | |
@Override |
This file contains hidden or 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
#include <Wire.h> | |
#include <Max3421e.h> | |
#include <Usb.h> | |
#include <AndroidAccessory.h> | |
#define RANGE 8 // 8番ピンをRange端子に設定 | |
#define GATE 9 // 9番ピンをGate端子に設定 | |
#define CK 10 //10番ピンをCK端子に設定 | |
#define DOUT 11 //11番ピンをDout端子に設定 |
This file contains hidden or 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
float freqz = 400; | |
float freq = 1000; | |
while(1) { | |
freqz = 0.001 * frwq + 0.999 * freqz; | |
if (freq - freqz < 0.1) { | |
break; | |
} | |
} |
This file contains hidden or 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.FileInputStream; | |
import java.io.FileNotFoundException; | |
import java.io.InputStream; | |
import android.content.Context; | |
import android.graphics.Bitmap; | |
import android.graphics.BitmapFactory; | |
import android.graphics.Canvas; | |
import android.graphics.Color; | |
import android.graphics.Paint; |
This file contains hidden or 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
private void decode() { | |
release(); | |
decoding = true; | |
time = System.currentTimeMillis(); | |
index = 0; | |
new Thread() { | |
@Override | |
public void run() { | |
try { |
This file contains hidden or 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.app.Activity; | |
import android.os.Bundle; | |
import android.view.View; | |
import android.view.View.OnClickListener; | |
import android.widget.Button; | |
public class MainActivity extends Activity implements OnClickListener { | |
private GifView gifView; | |
private Button btnPlay; |
This file contains hidden or 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.FileInputStream; | |
import java.io.FileNotFoundException; | |
import java.io.InputStream; | |
import android.content.Context; | |
import android.graphics.Bitmap; | |
import android.graphics.BitmapFactory; | |
import android.graphics.Canvas; | |
import android.util.AttributeSet; | |
import android.view.View; |
This file contains hidden or 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.InputStream; | |
import java.util.Vector; | |
import android.graphics.Bitmap; | |
import android.graphics.Bitmap.Config; | |
public class GifDecoder { | |
/** | |
* File read status: No errors. | |
*/ |
This file contains hidden or 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
for (int i = 1; i <= 60; i++) { | |
str = "person_" + String.format("%1$02d", i); | |
id = r.getIdentifier(str, "drawable", getPackageName()); | |
Log.v("MapTest", "str = " + str + ", id = " + id); | |
bmp = BitmapFactory.decodeResource(r, id); | |
list.add(bmp); | |
} |
NewerOlder