Skip to content

Instantly share code, notes, and snippets.

@cuiweixie
cuiweixie / group.go
Last active July 1, 2023 17:15
problem of solving polynomial equations of quintic and higher degree
package main
import (
"fmt"
"strconv"
"strings"
)
func permute(nums []int) [][]int {
if len(nums) == 0 {
@cuiweixie
cuiweixie / Nested.sol
Created August 5, 2024 04:18
revert test
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import { OwnerControlled } from "./set.sol";
contract Nested {
constructor() {
}
// address 0x5FbDB2315678afecb367f032d93F642f64180aa3
function callSet(address addr, uint256 value) public {
@cuiweixie
cuiweixie / extract_event_id.go
Created March 26, 2025 06:20
extract_event_id.go
package main
import (
"bytes"
"encoding/json"
"flag"
"fmt"
"io/fs"
"os"
"path/filepath"