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
#define android_width 64 | |
#define android_height 64 | |
static uint8_t android_bits[] = { | |
0x00, 0x00, 0x18, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, | |
0x00, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x0E, 0x00, 0x00, | |
0x00, 0x00, 0xE0, 0xFC, 0x3F, 0x07, 0x00, 0x00, 0x00, 0x00, 0xC0, 0xFF, | |
0xFF, 0x03, 0x00, 0x00, 0x00, 0x00, 0x80, 0xFF, 0xFF, 0x01, 0x00, 0x00, | |
0x00, 0x00, 0xC0, 0xFF, 0xFF, 0x03, 0x00, 0x00, 0x00, 0x00, 0xE0, 0xFF, | |
0xFF, 0x07, 0x00, 0x00, 0x00, 0x00, 0xF0, 0xFF, 0xFF, 0x0F, 0x00, 0x00, | |
0x00, 0x00, 0xF8, 0xFF, 0xFF, 0x1F, 0x00, 0x00, 0x00, 0x00, 0xF8, 0xFF, |
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
class AhoHTTP { | |
async put(url: RequestInfo | URL, data: any) { | |
const response = await fetch(url, { | |
method: 'PUT', | |
headers: { | |
'Content-type': 'application/json', | |
}, | |
body: JSON.stringify(data), | |
}) | |
const resData = await response.json() |
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
{ | |
"version": 1.1, | |
"atDirectives": [ | |
{ | |
"name": "@apply", | |
"description": "apply unocss or tailwindcss template classes" | |
} | |
] | |
} |
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
cd C:\Program Files\PowerShell\7 | |
pwsh.exe -noprofile -command "Install-Module PSReadLine -Force -AllowPrerelease -SkipPublisherCheck" |
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
Show hidden characters
{ | |
"shell_cmd": "g++ \"${file}\" -o \"${file_path}/${file_base_name}\"", | |
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", | |
"working_dir": "${file_path}", | |
"selector": "source.c, source.c++", | |
"variants": | |
[ | |
{ | |
"name": "Run", |
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
{ | |
"shell": true, | |
"cmd": ["fpc", "${file_path}/${file_base_name}", "&&", "start", "cmd", "/c", "$file_base_name.exe", "&", "pause"], | |
"selector": "source.pascal", | |
"variants": [ | |
{ | |
"cmd": ["start", "cmd", "/c", "$file_base_name.exe & pause"], | |
"name": "Run", | |
"shell": true | |
}, |
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
/*** | |
Mohamad Ramdan | |
Complete project details at https://ahonerd.com | |
***/ | |
#include "SSD1306.h" | |
SSD1306 display(0x3c, 21, 22); | |
long lastDisp = 0; |
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
/*** | |
Mohamad Ramdan | |
Complete project details at https://ahonerd.com | |
***/ | |
#include "SSD1306.h" | |
SSD1306 display(0x3c, D2, D1); | |
long lastDisp = 0; |
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
RewriteRule ^en$ /?&%{QUERY_STRING} | |
RewriteRule ^jp$ /?&%{QUERY_STRING} | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_URI} /(.*)/$ | |
RewriteRule ^ /%1 [R=301,L] | |
RewriteRule ^en/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)$ /index.php?page=$1&sub=$2 [L,NC,QSA] | |
RewriteRule ^en/([a-zA-Z0-9-]+)$ /index.php?page=$1 [L,NC,QSA] | |
RewriteRule ^jp/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)$ /index.php?page=$1&sub=$2 [L,NC,QSA] |
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
<IfModule deflate_module> | |
# Enable compression for the following file types. | |
AddOutputFilterByType \ | |
DEFLATE \ | |
application/javascript \ | |
text/css \ | |
text/html \ | |
text/javascript \ | |
text/plain \ | |
text/xml |
OlderNewer