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
<?xml version="1.0" encoding="utf-8"?> | |
<Macro xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | |
<Name>魂2弹反</Name> | |
<Guid>5c389610-c089-4dc2-89db-c429bc285cbf</Guid> | |
<MacroEvents> | |
<MacroEvent> | |
<Type>1</Type> | |
<KeyEvent> | |
<Makecode>42</Makecode> | |
</KeyEvent> |
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
name: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest |
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
name: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest |
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
import sys | |
import smtplib | |
SMTP_SERVER = 'smtp.mailgun.org' | |
SMTP_PORT = 587 | |
SMTP_USERNAME = 'notify@noreply.myl.moe' | |
SMTP_PASSWORD = '' | |
FROM_ADDR = 'notify@noreply.myl.moe' | |
TO_ADDRS = ['myl7.moe@gmail.com'] |
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
name: CI with CD | |
on: | |
push: | |
branches: | |
- main | |
release: | |
types: | |
- published | |
jobs: | |
ci: |
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
#!/usr/bin/env bash | |
set -euo pipefail | |
# Ref: https://honnef.co/posts/2015/06/statically_compiled_go_programs__always__even_with_cgo__using_musl/ | |
CC=musl-gcc go build --ldflags '-linkmode external -extldflags "-static"' "$@" cmd/bibak/main.go |
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 <sstream> | |
#include <string> | |
#include <cstdio> | |
int main() { | |
std::stringstream a; | |
a << "0"; // const char * | |
printf("%s\n", a.str().c_str()); // 0, expected | |
std::stringstream b; |
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
/** | |
* Modern CSS reset at https://gist.github.com/myl7/7af84d97e246b733c82dd414f49dfd29 | |
* From Josh's Custom CSS Reset at https://www.joshwcomeau.com/css/custom-css-reset/ | |
* Public domain | |
*/ | |
*, *::before, *::after { | |
box-sizing: border-box; | |
} |
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
[http "https://github.com"] | |
proxy = http://127.0.0.1:10800 | |
[https "https://github.com"] | |
proxy = http://127.0.0.1:10800 |
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
<input id="input" type="file" onchange="handle()" /> | |
<script> | |
let a | |
const handle = () => { | |
let e = document.getElementById('input') | |
let f = e.files[0] | |
setInterval(() => { | |
// console.log(f) | |
// No mem usage increament | |
// At least in Chrome, Blob is automatically put on memory or disk |
NewerOlder