I hereby claim:
- I am tuanpmt on github.
- I am tuanpm (https://keybase.io/tuanpm) on keybase.
- I have a public key ASA3NA8bWIVtGx6DAT3kW6-cdAxoHl26JniPbjUqr-69EAo
To claim this, I am signing this object:
/*app examle */ | |
#include "pid.h" | |
PID pid; | |
double vInput, vSetpoint, pwmOutput; | |
double kp = 3, ki = 7, kd = 0.1, sampleTime = 100; | |
/* initilize pid in initilization function */ | |
void APP_Init() | |
{ |
public Form1() | |
{ | |
InitializeComponent(); | |
serialPort1.PortName = "COM2"; | |
serialPort1.BaudRate = 9600; | |
serialPort1.Open(); | |
Thread oThread = new Thread(new ThreadStart(recvThread)); | |
oThread.Start(); | |
} |
exports.attendanceToday = function(day, _callback) { | |
var beginDay = moment(day).tz("Asia/Ho_Chi_Minh").startOf('day'); | |
var endDay = moment(day).tz("Asia/Ho_Chi_Minh").endOf('day'); | |
async.waterfall([ | |
/*Get all employers*/ | |
function(cb){ | |
Employer |
#include "ets_sys.h" | |
#include "driver/uart.h" | |
#include "osapi.h" | |
#include "mqtt.h" | |
#include "wifi.h" | |
#include "config.h" | |
#include "debug.h" | |
#include "gpio.h" | |
#include "user_interface.h" |
#! /bin/bash | |
## PHP 7 Initial Compile ## | |
## Some help from the various places like these. ## | |
# http://www.zimuel.it/install-php-7/ | |
# http://www.hashbangcode.com/blog/compiling-and-installing-php7-ubuntu | |
## Setup Ubuntu 15.04 ## | |
# I like the speed of Apt-Fast. Will check for installs some other day. | |
sudo apt-get install apt-fast |
#!/bin/bash | |
# @Author: Tuan PM | |
# @Date: 2016-10-07 15:43:09 | |
# @Last Modified by: Tuan PM | |
# @Last Modified time: 2016-10-07 17:34:59 | |
declare -a ext=("mp3" "aac" "ogg" "flac") | |
declare -a rate=("8000" "11025" "22050" "44100" "48000") | |
declare -a bitw=("16", "24") | |
declare -a channel=("2") |
#include "rtc.h" | |
#include "hw_config.h" | |
#define UPDATE_INTERVAL (24*60*60) | |
DATE_TIME sysTime, localTime; | |
static enum { | |
INITIAL, | |
WAIT_GPS, | |
STANDBY |
I hereby claim:
To claim this, I am signing this object:
//DON'T | |
public void DoSomething() | |
{ | |
for (var i = 0; i < 1000; i++) | |
{ | |
var productCode = $"PRC000{i}"; | |
//...implementation | |
} | |
} |
//for understanding weekday2 there are more details to think about | |
const char *weekday2(int dayOfWeek) | |
{ | |
if ((dayOfWeek < 1) || (dayOfWeek > 7)) { | |
ESP_LOGE(TAG, "dayOfWeek must be in range 1..7"); | |
return NULL; | |
} | |
const char *weekdays = { | |
"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" |