Skip to content

Instantly share code, notes, and snippets.

View Xuanwo's full-sized avatar
🔥
I'm working from the Earth.

Xuanwo Xuanwo

🔥
I'm working from the Earth.
View GitHub Profile
error: taken reference of right operand
--> src/actions.rs:66:53
|
66 | prev_pushed_box_position = Some(player_position + &action.direction().into());
| ^^^^^^^^^^^^^^^^^^--------------------------
| |
| help: use the right value directly: `action.direction().into()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref
= note: `-D clippy::op-ref` implied by `-D warnings`
error: digits grouped inconsistently by underscores
--> src/solver/state.rs:74:51
|
74 | instance.movements.move_count() * 10000_0000
| ^^^^^^^^^^ help: consider: `100_000_000`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_digit_grouping
= note: `-D clippy::inconsistent-digit-grouping` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::inconsistent_digit_grouping)]`
@Xuanwo
Xuanwo / Highlight
Last active February 1, 2023 07:22
Readwise Logseq Output
> {{ highlight_text }}
date:: [[{{highlight_date}}]] \
{% if highlight_location_url %}location:: {{highlight_location_url}}{% elif highlight_location %}location:: {{highlight_location}}{% endif %} \
{% if highlight_note %}
{{ highlight_note }}
{% endif %}
---
➜ tidb archlinuxcn-x86_64-build
:: Synchronizing package databases...
archlinuxcn is up to date
core is up to date
extra is up to date
community is up to date
:: Starting full system upgrade...
there is nothing to do
==> Building in chroot for [archlinuxcn] (x86_64)...
==> Synchronizing chroot copy [/var/lib/archbuild/archlinuxcn-x86_64/root] -> [xuanwo]...done
@Xuanwo
Xuanwo / closure.s
Last active March 28, 2019 06:46
Recover logic
"".main STEXT size=112 args=0x0 locals=0x18
0x0000 00000 (main.go:3) TEXT "".main(SB), ABIInternal, $24-0
0x0000 00000 (main.go:3) MOVQ (TLS), CX
0x0009 00009 (main.go:3) CMPQ SP, 16(CX)
0x000d 00013 (main.go:3) JLS 105
0x000f 00015 (main.go:3) SUBQ $24, SP
0x0013 00019 (main.go:3) MOVQ BP, 16(SP)
0x0018 00024 (main.go:3) LEAQ 16(SP), BP
0x001d 00029 (main.go:3) FUNCDATA $0, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB)
0x001d 00029 (main.go:3) FUNCDATA $1, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB)
:) diff `which phpstorm` `which goland`
4c4
< # PhpStorm startup script.
---
> # GoLand startup script.
10c10
< TITLE="Cannot start PhpStorm"
---
> TITLE="Cannot start GoLand"
60c60

Keybase proof

I hereby claim:

  • I am xuanwo on github.
  • I am xuanwo (https://keybase.io/xuanwo) on keybase.
  • I have a public key ASBXke9iVcylLBoOITVkFK3HTbzlGddlQBynNytA4wQEsAo

To claim this, I am signing this object:

--- pkgbuild 2018-04-27 14:59:37.114327496 +0800
+++ pkgbuild.new 2018-04-27 15:00:25.491564539 +0800
@@ -5,7 +5,7 @@
pkgrel=1
_modname="${pkgname#nginx-mainline-mod-}"
-_nginxver=1.13.10
+_nginxver=1.13.12
pkgdesc='Lua script engine module for mainline nginx'
{"sig":"1025f87a146e872e7c61079a167981e47e71d42a91f23b56eede873e5b3adb012dffcf406dbd05f11be402937371b90743a61643554647c942256e50396635a61","msghash":"8afa02c79989cb22c82fc4d29ed5d42f5bf40422b166593fe388f79e8a85fa44"}
@Xuanwo
Xuanwo / post-object-anoymous.html
Last active June 15, 2017 20:09
从浏览器端向 QingStor 对象存储上传文件
<!DOCTYPE html>
<html>
<body>
<h3>Upload</h3>
<form id="upload" action="https://<bucket>.<zone>.qingstor.com" method="POST"
enctype="multipart/form-data">
<span>Click or Drag a File Here to Upload</span>
<input type=hidden name="key" value="<key>" />
<input type=file name="file" />