Skip to content

Instantly share code, notes, and snippets.

View kamontat's full-sized avatar
💭
I may be slow to respond.

Kamontat Chantrachirathumrong kamontat

💭
I may be slow to respond.
View GitHub Profile
{
"name": "test",
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.3.0",
"@fortawesome/free-solid-svg-icons": "^6.2.1",
"@fortawesome/react-fontawesome": "^0.2.0",
"@next/font": "13.1.6",
"@react-google-maps/api": "^2.18.1",
"@types/braintree-web-drop-in": "^1.28.0",
"@types/google.maps": "^3.51.0",
@kamontat
kamontat / JarExtract.java
Created November 18, 2016 17:47
for extract jar file into normal system file
package code.test;
import java.io.*;
import java.nio.file.Paths;
import java.util.*;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;
/**
* To Extract jar file into normal file (System file)
@kamontat
kamontat / docker-compose.yml
Last active January 31, 2023 10:14
for article `setup-freqtrade-with-grafana`
version: "3"
# persistant grafana and prometheus data
# to get more detail you can run `docker volume --help`
volumes:
grafana-data:
prometheus-data:
services:
freqtrade:
@kamontat
kamontat / array_sum.asm
Created November 15, 2017 06:28
summation array on MIPS assembly
.data # data section
array_a: .word 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19
array_b: .word 0x7fffffff, 0x7ffffffe, 0x7ffffffd, 0x7ffffffc, 0x7ffffffb, 0x7ffffffa, 0x7ffffff9, 0x7ffffff8, 0x7ffffff7, 0x7ffffff6
output_a: .asciiz "Sum a = "
output_b: .asciiz "Sum b = "
new_line: .asciiz "\n"
.text # text section
{
"max_open_trades": 3,
"stake_currency": "BTC",
"stake_amount": 0.01,
"tradable_balance_ratio": 0.99,
"fiat_display_currency": "USD",
"timeframe": "5m",
"dry_run": true,
"cancel_open_orders_on_exit": false,
"unfilledtimeout": {
#!/usr/bin/env bash
banner() {
echo
echo "----------------------------------------"
echo "$@"
echo "----------------------------------------"
echo
}
{"schemas":{"AccessAndRefreshToken":{"title":"AccessAndRefreshToken","required":["access_token","refresh_token"],"type":"object","properties":{"access_token":{"title":"Access Token","type":"string"},"refresh_token":{"title":"Refresh Token","type":"string"}}},"AccessToken":{"title":"AccessToken","required":["access_token"],"type":"object","properties":{"access_token":{"title":"Access Token","type":"string"}}},"AvailablePairs":{"title":"AvailablePairs","required":["length","pairs","pair_interval"],"type":"object","properties":{"length":{"title":"Length","type":"integer"},"pairs":{"title":"Pairs","type":"array","items":{"type":"string"}},"pair_interval":{"title":"Pair Interval","type":"array","items":{"type":"array","items":{"type":"string"}}}}},"Balance":{"title":"Balance","required":["currency","free","balance","used","est_stake","stake"],"type":"object","properties":{"currency":{"title":"Currency","type":"string"},"free":{"title":"Free","type":"number"},"balance":{"title":"Balance","type":"number"},"used":{"t
@kamontat
kamontat / lecture-1.md
Last active April 24, 2021 07:58
Intro to programming

Data type

  1. Number - Int / Float - ตัวเลข
  2. Boolean - ค่าความเป็นจริงหรือเท็จ
  3. Character - ตัวอักษร
  4. String / Text

Int (Integer) จำนวนเต็ม

0, 1, 2, 3, 10, 100

@kamontat
kamontat / cloudSettings
Last active March 27, 2021 03:29
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-03-27T03:29:43.069Z","extensionVersion":"v3.4.3"}
@kamontat
kamontat / New iTerm2 Tab at Finder
Last active October 8, 2020 11:38
The AppleScript service, For open the new tab (if window exist) or new window (if window not launch before)
on is_running(appName)
tell application "System Events" to (name of processes) contains appName
end is_running
on CD_to(theDir)
set go_dir to "cd " & theDir & " && clear"
-- check running name in `activity Monitor` this must matching.
set isRunning to is_running("iTerm2")