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
# we can boot from BOOTLOADER function logic_boot_emmc_init() | |
# please make sure paging is disabled | |
# before enter into sbft_call | |
.text | |
.section REALMODE_CODE, "ax" | |
.code32 | |
########################################## |
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
/* | |
* written by Wei Shuai <[email protected]> 2021-Oct | |
*/ | |
#include <stdio.h> | |
#include <inttypes.h> | |
#include <string.h> | |
typedef struct { | |
uint64_t b1; | |
uint64_t b2; |
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
// | |
// main.cpp | |
// fdouble | |
// | |
// Created by wshuai on 2021/12/29. | |
// | |
#include <stdio.h> | |
void * store[3]; |
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
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<style type="text/css"> | |
.algolia-autocomplete { | |
width: 80%; | |
max-width: 700px; | |
} |
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
set hour=%time:~0,2% | |
if "%hour:~0,1%" == " " set hour=0%hour:~1,1% | |
echo hour=%hour% | |
set min=%time:~3,2% | |
if "%min:~0,1%" == " " set min=0%min:~1,1% | |
echo min=%min% | |
set secs=%time:~6,2% | |
if "%secs:~0,1%" == " " set secs=0%secs:~1,1% | |
echo secs=%secs% |
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
#written by [email protected] 2023 Sep. | |
# | |
# Set-WinUILanguageOverride -Language en-US | |
# pop up msg box for users | |
#$PSScriptRoot | |
# get script path | |
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition | |
Write-Host "script dir=$scriptPath" | |
Add-Type -AssemblyName System.Windows.Forms |
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
::written by [email protected] 2023 Sep. | |
:: | |
::must run as administrator | |
@chcp 437 >nul 2>&1 | |
:: Add value for UAC shield icon: | |
REG ADD "HKCR\Microsoft.PowerShellScript.1\Shell\runas" /v HasLUAShield /t REG_SZ /d "" /f | |
:: Add value to create context menu item: | |
REG ADD "HKCR\Microsoft.PowerShellScript.1\Shell\runas\command" /ve /t REG_EXPAND_SZ /d "\"%%SYSTEMROOT%%\System32\WindowsPowerShell\v1.0\powershell.exe\" -executionpolicy bypass -nologo -file \"%%1\"" /f |
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
Xiaomi Miot Auto是以默认15秒轮询的方式运行。 | |
所以不要用Xiaomi Miot Auto实时触发事件,Node-RED中,最好也用轮询来开始你的逻辑。 | |
对于实时触发事件,我建议放在米家做,比home assitant效果好很多 | |
作者给出了详细的解释,非常合理 | |
https://github.com/al-one/hass-xiaomi-miot/issues/100#issuecomment-909031222 |
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
// | |
// Get a date object for the current time | |
var d = new Date(); | |
// Set it to one month ago | |
d.setMonth(d.getMonth() - 1); | |
d.setDate(1) | |
// Zero the time component | |
d.setHours(0, 0, 0, 0); | |
// Get the time value in milliseconds and convert to seconds |
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
// | |
// Get a date object for the current time | |
var d = new Date(); | |
// Set it to one month ago | |
d.setMonth(d.getMonth() - 1); | |
d.setDate(1) | |
// Zero the time component | |
d.setHours(0, 0, 0, 0); | |
// Get the time value in milliseconds and convert to seconds |
OlderNewer