This file contains 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
/* | |
* decimalToBinary.go | |
* Simple algorithm to convert decimal to binary in golang | |
* | |
* 2019 - Mochamad Syarief Maulana | |
*/ | |
package main | |
import "fmt" |
This file contains 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
#!/bin/bash | |
# Bash script to start / stop LAMP services (Apache, MySQL/MariaDB, and PHP-FPM) via systemd. | |
# Usage lamp.sh [start|stop|restart] | |
# Check if the script run as root | |
if [ `whoami` != 'root' ]; then | |
echo "You need to run this as root" | |
exit | |
fi |
This file contains 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
#!/bin/bash | |
# Bash script to start / stop LEMP services (Nginx, MySQL, and PHP-FPM) via systemd. | |
# Usage lemp.sh [start|stop|restart] | |
# Check if the script run as root | |
if [ `whoami` != 'root' ]; then | |
echo "You need to run this as root" | |
exit | |
fi |
This file contains 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
block_id | timestamp | |
---|---|---|
0 | 2013-08-30 08:00:00 | |
1 | 2013-08-31 23:00:00 | |
2 | 2013-09-03 03:00:00 | |
3 | 2013-09-03 16:00:00 | |
4 | 2013-09-18 10:00:00 | |
5 | 2014-05-21 13:00:00 | |
6 | 2014-05-28 12:00:00 | |
7 | 2014-05-28 13:00:00 | |
8 | 2014-05-28 14:00:00 |
This file contains 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
#include "DHT.h"' | |
#include <ESP8266WiFi.h> | |
#include "ThingSpeak.h" | |
// LOOP CONFIG | |
#define LOOP_DELAY 5000 // equal to 50 | |
// WIFI AUTH | |
#define WIFI_SSID "[REPLACE]" | |
#define WIFI_PASSWORD "[REPLACE]" |