Skip to content

Instantly share code, notes, and snippets.

Avatar
🍣
Sushi

Usagi Ito usagi

🍣
Sushi
View GitHub Profile
View predict.zsh
autoload predict-on
alias predict.on="predict-on && export ZSH_PREDICT_STATE=0"
alias predict.off="predict-off && export ZSH_PREDICT_STATE=1"
predict.on
predict.toggle()
{
if [ $ZSH_PREDICT_STATE -eq 0 ]
View index.html
<!DOCTYPE html>
<title>Issue-#17 repro.</title>
<div>
<div>test-result = <span id="test-result">????</span></div>
<div>exception: <pre id="test-exception">(No exceptions.)</pre></div>
</div>
<hr />
View build.log
PS C:\Users\usagi\tmp\e1> yarn build
yarn run v1.22.4
$ electron-build-env nj-cli build
Compiling e1 v0.1.0 (C:\Users\usagi\tmp\e1)
error: linking with `link.exe` failed: exit code: 1181
|
= note: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.26.28801\\bin\\HostX64\\x64\\link.exe" "/NOLOGO" "/NXCOMPAT" "/LIBPATH:C:\\Users\\usagi\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "C:\\Users\\usagi\\tmp\\e1\\target\\debug\\deps\\e1.221kml6osi0k2zqq.rcgu.o" "C:\\Users\\usagi\\tmp\\e1\\target\\debug\\deps\\e1.2i5tll55w6kdpnp0.rcgu.o" "C:\\Users\\usagi\\tmp\\e1\\target\\debug\\deps\\e1.38i0v4c7x0idatk9.rcgu.o" "C:\\Users\\usagi\\tmp\\e1\\target\\debug\\deps\\e1.3flbz8kk92q3rug5.rcgu.o" "C:\\Users\\usagi\\tmp\\e1\\target\\debug\\deps\\e1.40pfx1x8de8k1dst.rcgu.o" "C:\\Users\\usagi\\tmp\\e1\\target\\debug\\deps\\e1.4lbisy8hv8xf4p0s.rcgu.o" "C:\\Users\\usagi\\tmp\\e1\\target\\debug\\deps\\e1.503r6cyzgcyd5jqb.rcgu.o" "C:\\Use
View node-bindgen-2.1.1-Windows-error.log
PS C:\Users\usagi\tmp\e1> nj-cli build
Blocking waiting for file lock on build directory
Compiling futures-core v0.3.5
Compiling slab v0.4.2
Compiling itoa v0.4.6
Compiling futures-sink v0.3.5
Compiling winapi v0.2.8
Compiling once_cell v1.4.0
Compiling pin-utils v0.1.0
Compiling futures-io v0.3.5
View amethyst-pong-wasm-chrome-canary-86.0.4201.0-error.log
index.html:38 /*!
@import /amethyst_input/src/bindings.rs#Bindings, StringBindings
Bindings<StringBindings>
*/
(
axes: {
"left_paddle": Emulated(
pos: Key(W),
neg: Key(S),
View dir-result.log
PS C:\Users\usagi\tmp\node-bindgen\examples\function> dir ..\target\debug\deps
Directory: C:\Users\usagi\tmp\node-bindgen\examples\target\debug\deps
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 2020-04-20 18:32 7944 aho_corasick-ae017a1b101c29b1.d
-a---- 2020-04-20 18:32 98184 async_std-d7533f24c65e33bd.d
View blender-merge-vertex-groups.py
import bpy
from re import compile
print('')
# Target(s) REGEX
regex = compile( '^Edit(KamiARoot|MaeKamiA(_00[1,2])?)$' )
# Replace Mode := Remove a target(s) -> new a merged
replace = True
# Merged name; "+".join if None
View azul
error[E0308]: mismatched types
-->
C:\Users\usagi\.cargo\git\checkouts\azul-f3b1e21a5e685cad\17b76b0\cargo\azul-text-layout\../../azul-text-layout\text_shaping.rs:309:73
|
309 | let error = FT_New_Memory_Face(ft_library, font_bytes.as_ptr(), buf_len, font_index as i64, &mut ft_face);
| ^^^^^^^ expected `i32`, found `i64`
|
help: you can convert an `i64` to `i32` and panic if the converted value wouldn't fit
|
309 | let error = FT_New_Memory_Face(ft_library, font_bytes.as_ptr(), buf_len.try_into().unwrap(), font_index as i64, &mut
@usagi
usagi / .rustfmt.toml
Last active Feb 18, 2020
usagi.network's Rust formatting rule
View .rustfmt.toml
# https://rust-lang.github.io/rustfmt/
brace_style = "AlwaysNextLine"
combine_control_expr = false
comment_width = 127
condense_wildcard_suffixes = true
control_brace_style = "AlwaysNextLine"
empty_item_single_line = true
enum_discrim_align_threshold = 127
fn_args_layout = "Vertical"
fn_single_line = true