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 <WiFi.h> | |
| #include <NTPClient.h> | |
| #include <WiFiUdp.h> | |
| #include <TimeLib.h> | |
| // Replace with your network credentials | |
| const char* ssid = "your_SSID"; | |
| const char* password = "your_PASSWORD"; | |
| // NTP Server settings |
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 | |
| // Define the timezone identifier for California | |
| $timezoneIdentifier = 'America/Los_Angeles'; | |
| // Create a DateTimeZone object with the specified timezone | |
| $timezone = new DateTimeZone($timezoneIdentifier); | |
| // Get the timezone offset in seconds | |
| $offset = $timezone->getOffset(new DateTime('now', $timezone)); |
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 | |
| $folderLog= 'logs/'; | |
| $key = 'idkey'; | |
| $str = 'this is message to file'; | |
| logFile($folderLog, $key, $str); | |
| function logFile($folderLog, $keyFolder, $stringToAppend, $formatFile =''){ | |
| if(!file_exists($folderLog)){ |
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
| @echo off | |
| start "" "C:\Users\tranc\AppData\Local\GitHubDesktop\GitHubDesktop.exe" | |
| start "" "C:\Program Files\Notepad++\notepad++.exe" | |
| start "" "C:\Users\tranc\AppData\Local\Programs\Microsoft VS Code\Code.exe" | |
| start "" "C:\Program Files\Google\Chrome\Application\chrome.exe" --profile-directory="Default"" |
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"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Input Suggestions with Keyboard Navigation</title> | |
| <style> | |
| /* Basic styling for suggestions */ | |
| .suggestions-container { | |
| border: 1px solid #ccc; |
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
| var settings = { | |
| "url": "https://website.local:8443/api/event-checkin", | |
| "method": "POST", | |
| "timeout": 0, | |
| "headers": { | |
| "username": "usename", | |
| "password": "password", | |
| "Content-Type": "application/json" | |
| }, | |
| "data": JSON.stringify({ |
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
| insert into `subModel` (`catalog_id`, `name`) values ('1', 'CCC'), ('2', 'GS'), ('3', 'SX'), ('4', 'GL'), ('10', 'Home,cc') on duplicate key update `catalog_id` = values(`catalog_id`), `name` = values(`name`) |
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
| npm install -g psd-cli | |
| You can then use it by typing in your terminal | |
| psd myfile.psd -t | |
| This will create myfile.txt, containing all text extracted from each PSD layer with the layer structure attached. | |
| https://nodejs.org/en/ | |
| https://www.npmjs.com/package/psd-cli |
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
| Download mariabd zip for win 10 | |
| https://mariadb.org/download/?t=mariadb&p=mariadb&r=11.3.2&os=windows&cpu=x86_64&pkg=zip&m=bkns | |
| Installing MariaDB Windows ZIP Packages | |
| Users need to run mysql_install_db.exe, without parameters to create a data directory, e.g | |
| C:\zip_unpack\directory> bin\mysqld_install_db.exe | |
| Then you can start server like this |
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
| Save backup |