Skip to content

Instantly share code, notes, and snippets.

View siralam's full-sized avatar

Sira siralam

  • Hong Kong
View GitHub Profile

為什麼要寫這篇

我老婆其實一直都想減肥,但以前對營養學認知比較薄弱的我們,
試過做運動,168,一週兩三天中午吃雞胸紫薯,效果都不好
看不到成效,自然就放棄了

直到不知道為什麼,2023~2024年,突然很多 Youtuber 分享減肥成功的經驗
疑是因為 Cofit 這一家台灣公司找了很多 Youtuber 合作
先幫他們真實、確切地減肥,再讓這些 Youtuber 幫忙宣傳
你能看到你平時看的 Youtuber 真的瘦了下來(例如魚乾、志祺七七)

@siralam
siralam / ATR_RSI_MACD.pine
Last active May 22, 2024 03:34
TradingView: ATR + RSI + MACD
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © szewa1992
//@version=4
study("MACD + ATR + RSI", resolution="", overlay=false)
displayATR = input(title="Display ATR?", type=input.bool, defval=true)
displayRSI = input(title="Display RSI?", type=input.bool, defval=false)
displayMACD = input(title="Display MACD?", type=input.bool, defval=true)
@siralam
siralam / Camear2Preview.java
Last active June 23, 2024 05:30
Zoomable Camera2Preview, but cannot gain focus on 2nd capture after zoomed.
package cameraview.com.cameraview;
import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.ImageFormat;
import android.graphics.Matrix;
import android.graphics.Point;
import android.graphics.Rect;
import android.graphics.RectF;
import android.graphics.SurfaceTexture;