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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>Cvar1984</title> | |
| <meta name="author" content="Cvar1984" /> | |
| <meta | |
| name="viewport" | |
| content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" | |
| /> |
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 | |
| /** | |
| * Copyright (c) 2020 Ramdhan Firmansyah | |
| * File : encode.php | |
| * @author : Cvar1984 <[email protected]> | |
| * Date : 28.04.2020 | |
| * Last Modified Date: 28.04.2020 | |
| * Last Modified By : Cvar1984 <[email protected]> | |
| */ |
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
| #include <dirent.h> | |
| #include <iterator> | |
| #include <cstdlib> | |
| #include <cstring> | |
| #include <sstream> | |
| #include <iostream> | |
| #include <stdlib.h> | |
| #include <string> | |
| #include <sys/stat.h> | |
| #include <syslog.h> |
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
| /** | |
| * sync multi threading with c++ | |
| * flag : -pthread -std=c++0x | |
| */ | |
| #include <thread> | |
| #include <iostream> | |
| #include <stdlib.h> | |
| #include <unistd.h> | |
| class MyClass { |
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
| /** | |
| * async multi threading with c++ | |
| * flag : -pthread -std=c++0x | |
| */ | |
| #include <iostream> // std::cout | |
| #include <unistd.h> // sleep(); | |
| #include <future> // std::async | |
| class MyClass { |
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 | |
| function read_socket($socket) | |
| { | |
| while($rawData = fgets($socket)) { | |
| $data .= $rawData; | |
| } | |
| return $data; | |
| } |
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 | |
| /** | |
| * Class: Info | |
| * | |
| */ | |
| class Info | |
| { | |
| /** | |
| * getPhpVersion |
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
| local cron = require 'cron' | |
| relay = {0, 1, 2, 3}; | |
| for x in pairs(relay) do | |
| gpio.mode(relay[x], gpio.OUTPUT); | |
| end | |
| pulser = gpio.pulse.build({ | |
| { |
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
| --[[-- | |
| Copyright (c) 2020 Ramdhan Firmansyah | |
| File : swipe.lua | |
| Author : Cvar1984 <[email protected]> | |
| Date : 28.10.2020 | |
| Last Modified Date: 28.10.2020 | |
| Last Modified By : Cvar1984 <[email protected]> | |
| --]]-- | |
| exec = os.execute; | |
| local touchscreen = {}; |
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
| --[[-- | |
| Copyright (c) 2020 Ramdhan Firmansyah | |
| File : electric.lua | |
| Author : Cvar1984 <[email protected]> | |
| Date : 16.12.2020 | |
| Last Modified Date: 16.12.2020 | |
| Last Modified By : Cvar1984 <[email protected]> | |
| --]]-- | |
| local Electric = {}; |