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.hardware.usb.UsbDevice; | |
| import android.hardware.usb.UsbDeviceConnection; | |
| import android.util.Log; | |
| import com.felhr.usbserial.UsbSerialDevice; | |
| import com.felhr.usbserial.UsbSerialInterface; | |
| import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.List; |
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
| package com.example.sdabet.test; | |
| import android.app.Service; | |
| import android.content.Intent; | |
| import android.os.IBinder; | |
| import android.support.annotation.Nullable; | |
| import android.util.Log; | |
| import java.io.IOException; | |
| import java.io.PrintWriter; |
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
| brew install opencv |
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
| using UnityEngine; | |
| using System.Collections; | |
| public class AspectRatioScript : MonoBehaviour { | |
| public float targetAspect; | |
| void Start () | |
| { | |
| float windowAspect = (float)Screen.width / (float)Screen.height; |
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
| void Update () { | |
| // Handle native touch events | |
| foreach (Touch touch in Input.touches) { | |
| HandleTouch(touch.fingerId, Camera.main.ScreenToWorldPoint(touch.position), touch.phase); | |
| } | |
| // Simulate touch events from mouse events | |
| if (Input.touchCount == 0) { | |
| if (Input.GetMouseButtonDown(0) ) { | |
| HandleTouch(10, Camera.main.ScreenToWorldPoint(Input.mousePosition), TouchPhase.Began); |
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
| config.assets.compile = true |
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
| # Use postgreSQL on Heroku | |
| group :production, :staging do | |
| gem "pg" | |
| end | |
| # Use SQLite on Cloud9 | |
| group :development, :test do | |
| gem "sqlite3" | |
| end |
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 "bootstrap-sprockets"; | |
| @import "bootstrap"; | |
| @import "bootstrap/theme"; |
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 "CCSprite.h" | |
| @interface SoftBubble : CCSprite | |
| @end |
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
| var MyLayer = cc.Layer.extend({ | |
| init:function () { | |
| this._super(); | |
| var size = cc.Director.getInstance().getVisibleSize(); | |
| this.setMouseEnabled(true); |
NewerOlder