Skip to content

Instantly share code, notes, and snippets.

View nodtem66's full-sized avatar
๐Ÿ˜€

Jirawat Iamsamang nodtem66

๐Ÿ˜€
View GitHub Profile
@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 / 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 / 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"]}
]
/* 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');

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:

@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"
@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 / 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();