Skip to content

Instantly share code, notes, and snippets.

View nodtem66's full-sized avatar
😀

Jirawat Iamsamang nodtem66

😀
View GitHub Profile
@nodtem66
nodtem66 / Basic_Measurement.txt
Last active August 16, 2023 09:56
ImageJ Toolset for measuring (1) circumradius, (2) angle between two lines, and (3) distance between line and point.
// Measurement tools
// author [email protected]
// http://wsr.imagej.net/developer/macro/macros.html#toolsets
var obtusedAngles = false;
macro "Unused Tool - " {}
macro "X axis Registration Tool - C037T2d13-T9d13X" {
cmd = getArgument();
@nodtem66
nodtem66 / serial_plot.py
Created October 28, 2019 14:21
Serial Plot with python
'''
This python script listens on UDP port 3333
for messages from the ESP32 board and prints them
'''
import serial
from serial.tools.list_ports import comports
import serial.threaded
import threading
import queue
@nodtem66
nodtem66 / parse-server
Created July 13, 2018 18:36
use with parse-server.service
# /etc/default/parse-server
PARSE_SERVER_APP_NAME='<NAME>'
PARSE_SERVER_APPLICATION_ID='<ID>'
PARSE_SERVER_MASTER_KEY='<SECRET>'
PARSE_SERVER_DATABASE_URI='<DB>'
PARSE_SERVER_SERVER_URL='0.0.0.0/parse'
PARSE_SERVER_LOGS_FOLDER=/tmp
OPTIONS="--serverURL 0.0.0.0/parse"

Keybase proof

I hereby claim:

  • I am nodtem66 on github.
  • I am nodtem66 (https://keybase.io/nodtem66) on keybase.
  • I have a public key whose fingerprint is 2DA4 EA1B DD2E D3CF FB43 F2A5 EC3E AA06 6615 873E

To claim this, I am signing this object:

/* FIREBASE Setup ------------------------------------------------------------*/
const firebaseAdmin = require('firebase-admin');
const firebase = firebaseAdmin.initializeApp({
credential: firebaseAdmin.credential.applicationDefault(),
databaseURL: "<URL>"
});
const db = firebase.database();
/* END FIREBASE Setup --------------------------------------------------------*/
const cli = require('cli');
@nodtem66
nodtem66 / design.json
Created November 25, 2015 11:46
JSON in Evaluation system
[
{"id": "ev_001", "type": "textbox", "label": "Question Number 1"},
{"id": "ev_001-2", "type": "radiobox", "label": "Question Number 2", "values": [10,5,0], "keys": ["best","moderate","worst"]},
{"id": "ev_001-3", "type": "checkbox", "label": "Question Number 3", "values": ["a","b","c"]},
{"id": "ev_001-4", "type": "groupbox", "label": "Question Number 4", "values": [10,5,3,2,1], "keys": ["max", "more", "avg", "less", "min"], "text": ["quest", "#title", "question","question", "#title2","Quest","Quest","Quest"]}
]
@nodtem66
nodtem66 / gist:f32a04e22601d0c6b75f
Last active October 2, 2015 16:08 — forked from aberke/gist:042eef0f37dba1138f9e
a modified version from `aberke` AngularJS module for phonenumber inputs - Includes custom directive that formats telephone number input values.
/***************************************************
----------------------------------------------------
Author: Alexandra Berke (aberke)
Written: Summer 2014
----------------------------------------------------
Author: Jirawat I. (nodtem66)
Rewritten: Winter 2015
----------------------------------------------------
@nodtem66
nodtem66 / gist:086127c368747a9be4f1
Created July 13, 2015 13:03
Window Shortcut for CMD
Proxy setting C:\Windows\System32\inetcpl.cpl ,4
Device manager C:\Windows\System32\devmgmt.msc
Environment Setting C:\Windows\System32\rundll32.exe sysdm.cpl,EditEnvironmentVariables
@nodtem66
nodtem66 / Patch Sandisk SD Card in ArchLinux for RPi.md
Last active August 29, 2015 14:18
Raspberry Pi with Sandisk 16GB Class 10 and ArchLinux-2014-06-img

Patch Sandisk SD Card in ArchLinux for RPi.md

Due to the raspberrypi/linux#issue414, The patch now finally released. This method work for me:

  1. Use ArchLinuxARM-2014.06-rpi.img.zip and Write it to Sandisk 16GB Class 10 Ultra with Win32DiskImager
  2. Copy the boot-image from my latest kernel from Kington 8GB Class 4 to overwrite the old boot-image in arch-2014-06-22
@nodtem66
nodtem66 / .bashrc
Last active August 29, 2015 14:15
coloring in bashrc
#!/bin/bash
alias grep='grep --color=auto'
alias ls='ls --color=auto'
PS1="\[\033[01;37m\]\$? \$(if [[ \$? == 0 ]]; then echo \"\[\033[01;32m\]\342\234\223\"; else echo \"\[\033[01;31m\]\342\234\227\"; fi) \[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] "