profile
viewpoint

EFanZh/Graphviz-Preview 64

Extension for Visual Studio Code to preview Graphviz (DOT) files.

EFanZh/EOPL-Exercises 32

My solutions to exercises from the book Essentials of Programming Languages.

EFanZh/Introduction-to-Algorithms 17

Implementations of algorithms and solutions to exercises and problems from the book Introduction to Algorithms, Third Edition.

EFanZh/Archived 4

EFanZh’s programs.

EFanZh/CTfP-Challenges 1

Challenges from Category Theory for Programmers (https://bartoszmilewski.com/2014/10/28/category-theory-for-programmers-the-preface/)

EFanZh/approx 0

Approximate floating point equality comparisons and assertions

push eventEFanZh/LeetCode

EFanZh

commit sha d25c38f70cbafd86a945765c5ee3de54150a636b

Refactor

view details

push time in 2 hours

push eventEFanZh/LeetCode

EFanZh

commit sha 9f3a131e11e4112917c5961d482285a46708255d

Add a new solution to problem 1622: Fancy Sequence

view details

push time in 3 hours

push eventEFanZh/LeetCode

EFanZh

commit sha e3c83f43963bcf6cf93c6661352d8e2292ced586

Cover more codes

view details

EFanZh

commit sha 9d5e1df68f0ff1cca98e37824595d9c82576d242

Add problem 1622: Fancy Sequence

view details

push time in 15 hours

push eventEFanZh/LeetCode

EFanZh

commit sha ce30974892ddd37e58f8cd8c211eb641324631a8

Add problem 1775: Equal Sum Arrays With Minimum Number of Operations

view details

push time in a day

push eventEFanZh/LeetCode

EFanZh

commit sha 72deb05de11b9820bea660e22f5a67df0dff577a

Add problem 1869: Substrings of Size Three with Distinct Characters

view details

push time in 2 days

issue closedgetzola/zola

Support titles from headings

Jekyll’s titles-from-headings supports setting page.title from Markdown headings as a fallback if user does not specify page.title in the front matter. I am wondering if zola could support something similar.

closed time in 2 days

EFanZh

issue commentgetzola/zola

Support titles from headings

OK.

EFanZh

comment created time in 2 days

delete branch EFanZh/rust

delete branch : implement-from-array-refs-for-vec

delete time in 3 days

push eventEFanZh/LeetCode

EFanZh

commit sha d1e99c34a81f1dc3ebebe9c8dcc2ec30823e5adf

Add problem 1760: Minimum Limit of Balls in a Bag

view details

push time in 3 days

issue commentgetzola/zola

Support titles from headings

If someone else submits a PR to implement this feature (possibly with an option to enable or disable this behavior), will it be accepted?

EFanZh

comment created time in 4 days

push eventEFanZh/LeetCode

EFanZh

commit sha c02c5e515ceb005a304de37927738f3ff8d5255b

Add problem 1860: Incremental Memory Leak

view details

push time in 4 days

issue openedtrailofbits/dylint

Incorrect output when two different lint libs being executed consectively

Suppose I have two lint library in a workspace:

[workspace.metadata.dylint]
libraries = [{ path = "crates/my-lint-0" }, { path = "crates/my-lint-1" }]

If I run cargo dylint with these two different libraries consecutively, the second run will output the same result as the first one:

$ cargo dylint --lib my-lint-0
(some output)
$ cargo dylint --lib my-lint-1
(the same output from previous run)

I expect the second run should generate a different output, but the output is the same as the first one.

created time in 4 days

push eventEFanZh/LeetCode

EFanZh

commit sha 53b298c311fbc7bd9a60b4d608d93e29b7ed5513

Update GitHub actions

view details

EFanZh

commit sha 96c2b1a83db887822914ac3285165605125c905d

Add problem 1621: Number of Sets of K Non-Overlapping Line Segments

view details

push time in 5 days

issue openedgetzola/zola

Support titles from headings

Jekyll’s titles-from-headings supports setting page.title from Markdown headings as a fallback if user does not specify page.title in front matter. I am wondering if zola could support something similar.

created time in 6 days

push eventEFanZh/efanzh.github.io

EFanZh

commit sha 55a653973b8571e61213def0ccbffa94acdb7bde

Add Google Domains

view details

EFanZh

commit sha 1eaa4ed85263a7778d286c26915851e7d6477902

Add MPC-HC fork by clsid2

view details

EFanZh

commit sha 15ed9d559771d461c5bf3c40be91aecdf7db1925

Add check workflow

view details

push time in 6 days

push eventEFanZh/efanzh.github.io

EFanZh

commit sha da5626b2f04851c8f84f1bfac181d419067656e4

Remove CNAME file

view details

push time in 6 days

push eventEFanZh/efanzh.github.io

EFanZh

commit sha 565b81855658615e35a0059dbf704b7f467c6f32

Switch to zola

view details

push time in 6 days

push eventEFanZh/LeetCode

EFanZh

commit sha ce9232303da19c1d199e5a41b3be2316ba0d61af

Add problem 1620: Coordinate With Maximum Network Quality

view details

push time in 6 days

push eventEFanZh/CTfP-Challenges

EFanZh

commit sha 21d997d90daee5ebb7ffaf09007603fb0f0c6829

Add challenge 5.8 - 8

view details

EFanZh

commit sha aafcbf850de80f75626f58fd5b858828a3fd7911

Move each concept into its own source file

view details

push time in 7 days

push eventEFanZh/ast-demangle

EFanZh

commit sha e562f2c8603fbd556602aa20200bdccfc768bffa

Refactor tuple macros

view details

push time in 7 days

push eventEFanZh/LeetCode

EFanZh

commit sha 305c4eaadba23f4cb4df8ba468a5a8aff89bb511

Add problem 1859: Sorting the Sentence

view details

push time in 7 days

push eventEFanZh/LeetCode

EFanZh

commit sha aea8fe325c94ab89eb247402ff5f6c0669422f56

Add problem 1855: Maximum Distance Between a Pair of Values

view details

push time in 8 days

push eventEFanZh/LeetCode

EFanZh

commit sha 69f7de92b8759df34cb952fda8c0079aba4308c6

Add problem 1854: Maximum Population Year

view details

push time in 9 days

issue openedtokio-rs/prost

Stack overflow when decoding a recursive message with `proto2` syntax

Suppose I have a proto file with a recursive message:

syntax = "proto2";

package foo;

message Foo { required Foo x = 1; }

prost-build will generate this struct:

#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Foo {
    #[prost(message, required, boxed, tag = "1")]
    pub x: ::prost::alloc::boxed::Box<Foo>,
}

If I use the Foo type to decode an empty byte slice, I get an stack overflow error:

use prost::Message;

include!(concat!(env!("OUT_DIR"), "/foo.rs"));

fn main() {
    let _ = Foo::decode(b"".as_slice());
}

I guess the behavior is caused by prost attempting to construct a Foo object, which is not possible, since constructing it recursively depends on itself.

created time in 9 days

push eventEFanZh/LeetCode

EFanZh

commit sha e48be3f47a02d9f5211c8dc936ac049209352606

Add problem 1848: Minimum Distance to the Target Element

view details

push time in 10 days

startedxetdata/nfsserve

started time in 11 days

push eventEFanZh/LeetCode

EFanZh

commit sha d3214214cf915a70c789348e8577228a6ed1852d

Add problem 1846: Maximum Element After Decreasing and Rearranging

view details

push time in 11 days

startedmermaid-js/mermaid

started time in 12 days

push eventEFanZh/LeetCode

EFanZh

commit sha 6207ffe0df93d78f76bed7b6b2ec3ffb7f1a5727

Add problem 1845: Seat Reservation Manager

view details

push time in 12 days

startedVeykril/tlborm

started time in 13 days

more