Thanks to visit codestin.com
Credit goes to gist.github.com

Skip to content

Instantly share code, notes, and snippets.

View sebastianlujan's full-sized avatar
🎯
Focusing

Sebastian sebastianlujan

🎯
Focusing
  • ratherlabs
  • Uruguay, Montevideo
View GitHub Profile
#[derive(Debug)]
enum Message {
Quit,
Move { x: i32, y: i32 },
Write(String),
}
impl Message {
fn call(&self) {
enum IpAddrKind {
V4(String),
V6(String),
}
enum IpAddrKindExpressive {
_V4(u8, u8, u8, u8),
_V6(String),
}
{
"zkvm": "sp1",
"circuit_version": "v5.0.0",
"program_id": "0x008228a87e56a065fb3ad27026aef08acc97d72d289439e8dab0d53baaea9f26",
"journal": "0253000400020020a06f0000000b0105000000000000000000000000007bf063280e94fb051f5dd7b1fc59ce9aac42bb961df8d44b709c9b0ff87a7b4df648657ba6d1189589feab1d5a3c9a9d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000702000000000000f06dfda6dce1cf904d4e2bab1dc370634cf95cefa2ceb2de2eee127c9382698090d7a4a13e14c536ec6c9c3c8fa870770163ab617f1821deef55a76b953024204911fa70fe7100661524d935fe7dc1ac5300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000068102e7b524af310f7b7d426ce75481e36c40f5d513a9009c046e9d37e31551f0134d954b496a3357fd61d03f07ffe96daa9380dc33b14728a9adb222437cf14db2d40ffc4d7061d8f3c329f6c6b339f71486d33521287e8faeae22301f4d815
https://github.com/pgellert/matching-engine/
Order Matching
Introducción
En este documento detallamos los componentes de un sistema distribuido de perpetual exchange altamente disponible tolerable a fallas verificable, con una arquitectura híbrida off-chain , on-chain, compuesto de un orderbook como estructura eficiente de persistencia de órdenes en memoria, y un algoritmo de matching engine para emparejar la oferta y demanda y optimizaciones por trading level como colas de prioridad, también nuestro algoritmo es fuertemente acoplado al diseño del orderbook para alcanzar baja latencia y alto TPS. Usamos estructuras no bloqueantes Lock Free y Zero Cost abstractions provistas por Rust. Una vez que se emparejan las órdenes se agrupan en un proceso de y firman, para luego enviarlas mediante el cliente de linera hacia la micro blockchain
Luego el componente onchain recibe la orden se confirma y se liberan los fondos.
Requerimientos funcionales
Los sistemas de exchange análogos para nuestro estudio e implement
import numpy as np
import pandas as pd
from typing import Dict, List, Tuple, Optional, Union
from scipy.stats import entropy
from sklearn.preprocessing import StandardScaler
from sklearn.svm import SVC
from PIL import Image
from core.utils.math import safe_sigmoid
from core.features.texture import TextureAnalyzer

Conventional Commit Messages starline

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs

Commit Message Formats

Default

@sebastianlujan
sebastianlujan / 3monitors.sh
Created December 28, 2024 23:28
Three monitors
xrandr --output eDP-1 --primary --mode 2560x1600 --pos 0x0 --rotate normal \
--output DP-4 --mode 1920x1080 --pos 2560x0 --rotate normal \
--output DP-3 --mode 1920x1080 --pos 4480x0 --rotate left
xrandr --output DP-3 --mode 1920x1080 --right-of eDP-1 --output eDP-1 --mode 2560x1600
@sebastianlujan
sebastianlujan / delete_last_commit.sh
Last active May 16, 2024 22:41
How to delete the last commit
# This will remove the last commit from HEAD and uncommited changes
# reset remove the commit
# hard remove discard all the changes and revert it to the previous state
# HEAD in this case is the merkle root tree.
git reset --hard HEAD~1
# If you want to delete the commit but keep the changes in local
git reset HEAD~1
@sebastianlujan
sebastianlujan / mirror_bitbucket_github.md
Created May 16, 2024 21:14
How to mirror a repository from A to Github, when A == Bitbucket
  • Check out the existing Repo THIS PROBABLY WILL BE A FROZEN FORK
  git clone https://[email protected]/USER/PROJECT.git

  # Add the new repository as Upstream remote
  # Upstream means: The original repository sincronized with github.

  cd PROJECT
  git remote add upstream https://github.com:USER/PROJECT.git