Skip to content

Instantly share code, notes, and snippets.

View seongyooncho's full-sized avatar
🎯
Focusing

Seongyoon Cho seongyooncho

🎯
Focusing
View GitHub Profile
@seongyooncho
seongyooncho / mems.md
Last active January 22, 2020 02:38
mems

bool setAngle(double x, double y, long timeout)

Set angle of MEMS mirrors. It returns when MEMS mirror finishes targeting. This method is synchronous.

  • Return value: true when setting angle successfully, false when timeout occured or otherwise.
  • x: Radian angle in x axis.
  • y: Radian angle in y axis.
  • timeout: timeout in microseconds.

(Optional) bool getAngle(double& x, double& y)

Return current angle of MEMS mirrors. This method synchronous.

  • Return value: true when getting angle successfully, false otherwise.
import time
import numpy as np
a = np.zeros((1080 * 4, 1920, 3))
last_time = time.time() * 1000
for i in range(1000) :
np.save('{}.npy'.format(i), a)
now = time.time() * 1000
auto node = ClippingRectangleNode::create(Rect(-100, -100, 200, 200));
auto sprite = Sprite::create("HelloWorld.png");
node->addChild(sprite);
[
{
"title":"Shawshank Redemption",
"category_id":1,
"synopsis":"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim venom",
"thumbnail_image_url":"http://lge.com/sdk/shawshank_redemption_thumbnail.jpg",
"full_image_url":"http://lge.com/sdk/shawshank_redemption_full.jpg",
"video_url":"http://lge.com/sdk/shawshank_redemption_video.mp4"
},
{

Unity 에서 Android system language 가져오기

  1. Unity 내부 함수 사용

    string systemLanguage = Application.systemLanguage.ToString();
  2. AndroidJavaObject 사용

    #if UNITY_ANDROID

AndroidJavaObject locale = new AndroidJavaClass("java/util/Locale").CallStatic("getDefault");

Game console

What we will learn

Overview

August 4, 2014

  • [11:20 - 12:00] Merge updates, set mark location, perform tracking without ptam, add some buttons.
  • [14:50 - 15:20] Init scene, add semi-transparent box, translate camera
  • [15:40 - 16:40] Rotate camera #1
  • [16:50 - 17:15] Rotate camera #2
  • [17:55 - 18:20] Rotate camera #3
  • Total 180 mins

August 5, 2014

  • [10:30 - 10:40] Change capture resolution to 1920x1080
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="js/wScratchPad.min.js"></script>
<script type="text/javascript" src="js/jquery.animateSprite.min.js"></script>
<script type="text/javascript" src="js/typed.js"></script>
<script type="text/javascript" src="js/jquery.path.js"></script>
<script type="text/javascript" src="js/3d-falling-leaves.js" ></script>
<script type="text/javascript" src="js/rotate3Di.js" ></script>
<script src="script.js"></script>
@seongyooncho
seongyooncho / dabblet.css
Created June 21, 2014 10:13
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
body {
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
}
div {
background: blue;