This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TEMPORARY TABLE `orders` ( | |
`ID` int NOT NULL AUTO_INCREMENT, | |
`Category` varchar(255) NOT NULL, | |
`SKU` varchar(255) NOT NULL, | |
`open_flag` tinyint(1) NOT NULL, | |
PRIMARY KEY (`ID`) | |
); | |
INSERT INTO `orders` (`ID`, `Category`, `SKU`, `open_flag`) VALUES | |
(1, 'ABC', '1', 0), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine | |
RUN mkdir -p /home | |
ENTRYPOINT ["tail", "-f", "/dev/null"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine | |
RUN mkdir -p /home | |
WORKDIR /home | |
COPY ./ ./ | |
CMD ["uname", "-r"] | |
# docker build -t hello_docker . | |
# docker run hello_docker | |
# docker run -it hello_docker /bin/sh | |
# docker run -it -v .\:/home hello_docker /bin/sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$FAKE_POST = [ | |
"age" => "5", | |
"name" => "Johny", | |
"species" => "cat", | |
]; | |
$ERRORS = []; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let isRunning = false; | |
let cursor = -1; | |
let jobs = {}; | |
let completed = new Set(); | |
const JOB_TIMEOUT = 1500; | |
const QUEUE_INTERVAL = 2000; | |
function insertTask(key, value) { | |
const unique = key.toString(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://www.malaysiatercinta.com/2016/09/peta-laluan-lrt-monorel-ktm-erl-mrt.html | |
var data = ` | |
1. KTM Komuter Laluan Batu Caves - Pulau Sebang | |
BATU CAVES - Taman Wahyu - Kampung Batu - Batu Kentomen - Sentul - Putra - Bank Negara - Kuala Lumpur - KL Sentral - Mid Valley - Seputeh - Salak Selatan - Bandar Tasik Selatan - Serdang - Kajang - Kajang 2 - UKM - Bangi - Batang Benar - Nilai - Labu - Tiroi - Seremban - Senawang - Sungai Gadut - Rembau - TAMPIN / PULAU SEBANG | |
------------------------ | |
2. KTM Komuter Laluan Tanjung Malim - Pelabuhan Klang | |
TANJUNG MALIM - Kuala Kubu Bharu - Rasa - Batang Kali - Serendah - Rawang - Kuang - Sungai Buloh - Kepong Sentral - Kepong - Segambut - Putra - Bank Negara - Kuala Lumpur - KL Sentral - Abdullah Hukum - Angkasapuri - Pantai Dalam - Petaling - Jalan Templer - Kampung Dato Harun - Seri Setia - Setia Jaya - Subang Jaya - Batu Tiga - Shah Alam - Padang Jawa - Bukit Badak - Klang - Teluk Pulai - Teluk Gadong - Kampung Raja Uda - Jalan Kastam - PELABUHAN KLANG | |
---------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
type Number interface { | |
int64 | float64 | |
} | |
type Common[N Number] interface { | |
Less(Common[N]) bool |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if CONFIG_FREERTOS_UNICORE | |
#define ARDUINO_RUNNING_CORE 0 | |
#else | |
#define ARDUINO_RUNNING_CORE 1 | |
#endif | |
#ifndef LED_BUILTIN | |
#define LED_BUILTIN 13 | |
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/********* | |
Rui Santos | |
Complete project details at https://RandomNerdTutorials.com/esp32-websocket-server-arduino/ | |
The above copyright notice and this permission notice shall be included in all | |
copies or substantial portions of the Software. | |
*********/ | |
#ifdef __cplusplus | |
extern "C" { | |
#endif | |
uint8_t temprature_sens_read(); |
NewerOlder