Skip to content

Instantly share code, notes, and snippets.

View juchiast's full-sized avatar

Duy Do juchiast

View GitHub Profile
@juchiast
juchiast / Cargo.lock
Created November 25, 2022 07:34
Reproduce wasmer
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "addr2line"
version = "0.17.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b9ecd88a8c8378ca913a680cd98f0f13ac67383d35993f86c90a70e3f137816b"
dependencies = [
@juchiast
juchiast / .ycm_extra_conf.py
Created February 2, 2021 08:52
YCM config for rust-analyzer with automatic features detection
from os import path
noDefaultFeatures = False
features = []
BASE = path.dirname(__file__)
try:
check_file = open(path.join(BASE, "check"), "r").read()
for line in check_file.splitlines():
line = line.strip()
This file has been truncated, but you can view the full file.
[2020-12-25T08:45:21Z DEBUG pijul::remote] unknown_remote, http = "https://nest.pijul.com/pijul/pijul"
[2020-12-25T08:45:21Z DEBUG pijul::commands::clone] path = "/home/qwe/Desktop/pijul/pijul"
[2020-12-25T08:45:21Z DEBUG pijul::commands::clone] temp = "/home/qwe/Desktop/pijul/.tmpBhnqEF"
[2020-12-25T08:45:21Z DEBUG pijul::remote] update_changelist
[2020-12-25T08:45:21Z DEBUG pijul::remote] the local copy of the remote has no changes
[2020-12-25T08:45:21Z DEBUG pijul::remote] update changelist 0
[2020-12-25T08:45:23Z DEBUG pijul::remote] data = "0.SXEYMYF7P4RZMZ46WPL4IZUTSQ2ATBWYZX7QNVMS3SGOYXYOHAGQC.YJZBS2NAESD7SUMHQ3EQVFP36L53TVAHXPMNYAF5LZ75UVFD5LCAC"
[2020-12-25T08:45:23Z DEBUG pijul::remote] data = "1.M3VTIZCPE7CMJXRENE7J3DYEXA4KILMNYLPMPCDRCWXTJ34JKSCQC.P6GYMNEZHFDXBCOGNRPCDVIWPBDVTZTPODHOD2LRNI6PEHP3JCHQC"
[2020-12-25T08:45:23Z DEBUG pijul::remote] data = "2.G734WNM64AR5BLAZMN5MDPKSFTYXTUQR6MAGB32NRBC5FXFRWSJAC.OOZMAOAUYZINVNUK7LOMDHZMN4KS5WLSHJAJUNYUTSNTRYEJLWCAC"
[2020-12-25T08:45:23Z DEBUG pijul::re
This file has been truncated, but you can view the full file.
[2020-12-24T08:09:05Z DEBUG pijul::remote] unknown_remote, http = "https://nest.pijul.com/pijul/pijul"
[2020-12-24T08:09:05Z DEBUG pijul::commands::clone] path = "/home/qwe/Desktop/pijul/pijul"
[2020-12-24T08:09:05Z DEBUG pijul::commands::clone] temp = "/home/qwe/Desktop/pijul/.tmp710mFV"
[2020-12-24T08:09:05Z DEBUG pijul::remote] update_changelist
[2020-12-24T08:09:05Z DEBUG pijul::remote] the local copy of the remote has no changes
[2020-12-24T08:09:05Z DEBUG pijul::remote] update changelist 0
[2020-12-24T08:09:07Z DEBUG pijul::remote] data = "0.SXEYMYF7P4RZMZ46WPL4IZUTSQ2ATBWYZX7QNVMS3SGOYXYOHAGQC.YJZBS2NAESD7SUMHQ3EQVFP36L53TVAHXPMNYAF5LZ75UVFD5LCAC"
[2020-12-24T08:09:07Z DEBUG pijul::remote] data = "1.M3VTIZCPE7CMJXRENE7J3DYEXA4KILMNYLPMPCDRCWXTJ34JKSCQC.P6GYMNEZHFDXBCOGNRPCDVIWPBDVTZTPODHOD2LRNI6PEHP3JCHQC"
[2020-12-24T08:09:07Z DEBUG pijul::remote] data = "2.G734WNM64AR5BLAZMN5MDPKSFTYXTUQR6MAGB32NRBC5FXFRWSJAC.OOZMAOAUYZINVNUK7LOMDHZMN4KS5WLSHJAJUNYUTSNTRYEJLWCAC"
[2020-12-24T08:09:07Z DEBUG pijul::re
diff --git a/Cargo.lock b/Cargo.lock
index c9438df8a..3cacd8e72 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5750,29 +5750,30 @@ dependencies = [
[[package]]
name = "tracing"
version = "0.1.19"
-source = "git+https://github.com/tokio-rs/tracing?rev=f470db1b0354b368f62f9ee4d763595d16373231#f470db1b0354b368f62f9ee4d763595d16373231"
+source = "registry+https://github.com/rust-lang/crates.io-index"
#include <iostream>
#include <cmath>
#include <algorithm>
using namespace std;
struct point {
double x, y;
};
bool cmp_x(const point &a, const point &b) {
#!/usr/bin/env python
"""A simple starfield example. Note you can move the 'center' of
the starfield by leftclicking in the window. This example show
the basics of creating a window, simple pixel plotting, and input
event management"""
import random, math, pygame
from pygame.locals import *
@juchiast
juchiast / Cargo.toml
Last active December 22, 2017 14:13
Rename files with Rust
[package]
name = "jslife"
version = "0.1.0"
authors = ["Do Duy"]
[dependencies]
walkdir = "2.0"
@juchiast
juchiast / karatsuba.rs
Last active November 27, 2020 01:27
Karatsuba algorithm implemented in Rust
const B: u64 = 1000000000; // Base
const SIZE: usize = 9; // Digit size
const M: [u64; SIZE] = [1, 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000];
fn alloc(n: usize) -> Vec<u64> {
let mut r = Vec::with_capacity(n);
r.resize(n, 0);
r
}
@juchiast
juchiast / tmux.conf
Created May 26, 2017 13:30
My tmux configuration
# unbind all key
unbind -a
# start new session without login shell
set -g default-command bash
# allows faster key repetition
set -s escape-time 0
# copy-paste