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 / G++.sublime-build(linux)
Last active February 14, 2024 12:13
用于在Sublime Text 3基础上构建C/C++IDE,Linux下
{
"cmd": ["g++", "${file}", "-std=c++11", "-o", "${file_path}/${file_base_name}"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c, source.c++",
"variants":
[
{
"name": "Run",
"cmd":["gnome-terminal", "-x", "bash", "-c", "g++ '${file}' -o '${file_path}/${file_base_name}' && '${file_path}/${file_base_name}' ;read -n1 -p 'press any key to continue.'"]
@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 %}
---
@Xuanwo
Xuanwo / G++.sublime-build(windows)
Last active April 7, 2020 08:33
用于在Sublime Text 3基础上构建C/C++IDE,Windows下
{
"cmd": ["g++", "${file}", "-std=c++11", "-o", "${file_path}/${file_base_name}"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c, source.c++",
"shell": true,
"encoding":"cp936",
"variants":
[
{
➜ 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'