Skip to content

Instantly share code, notes, and snippets.

View bolabola's full-sized avatar
🎯
Focusing

lesiry bolabola

🎯
Focusing
View GitHub Profile
@bolabola
bolabola / celestia-rpc.md
Created December 17, 2023 08:38 — forked from silentnoname/celestia-rpc.md
celestia rpc

基础环境安装

sudo apt update -y &&sudo apt upgrade -y 
sudo apt install curl tar wget lz4 jq build-essential git make   -y

go 安装

@bolabola
bolabola / nocturne-v1_attestation.log
Created October 31, 2023 07:52
Attestation for nocturne-v1 MPC Phase 2 Trusted Setup ceremony
Hey, I'm bolabola-7332446 and I have contributed to the nocturne-v1 MPC Phase2 Trusted Setup ceremony.
The following are my contribution signatures:
Circuit # 1 (canonaddrsigcheck)
Contributor # 49
Contribution Hash: ba47ff58 157b3a3f c5211f5c be229f50
204b2df1 dd161ee3 e3cf7a9f 4fac4f1c
de0a38b5 8a6439cf 9b6c1b02 4f8e2dd4
69e782b4 2e9bf467 014892c9 8dc1f5a7
@bolabola
bolabola / discord_bot.py
Created February 8, 2022 04:05 — forked from danielgxm/discord_bot.py
Discord自动聊天机器人,撸白名单必备!
# -*- coding: utf-8 -*-
"""
@Time : 2021/10/3 19:18
@Auth : d1rrick DanielGao.eth
@File :autochat.py
@IDE :vscode
"""
import requests
import json
@bolabola
bolabola / KeyboardHook.cs
Created February 17, 2021 01:24 — forked from Lunchbox4K/KeyboardHook.cs
C# Global Keyboard Hooks
// MP Hooks © 2016 Mitchell Pell
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Windows.Forms;
namespace mp.hooks{
@bolabola
bolabola / color-conversion-algorithms.js
Created November 7, 2019 01:56 — forked from mjackson/color-conversion-algorithms.js
RGB, HSV, and HSL color conversion algorithms in JavaScript
/**
* Converts an RGB color value to HSL. Conversion formula
* adapted from http://en.wikipedia.org/wiki/HSL_color_space.
* Assumes r, g, and b are contained in the set [0, 255] and
* returns h, s, and l in the set [0, 1].
*
* @param Number r The red color value
* @param Number g The green color value
* @param Number b The blue color value
* @return Array The HSL representation
@bolabola
bolabola / Matrix.hlsl
Created September 9, 2019 03:51 — forked from mattatz/Matrix.hlsl
Matrix operations for HLSL
#ifndef __MATRIX_INCLUDED__
#define __MATRIX_INCLUDED__
#define IDENTITY_MATRIX float4x4(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)
float4x4 inverse(float4x4 m) {
float n11 = m[0][0], n12 = m[1][0], n13 = m[2][0], n14 = m[3][0];
float n21 = m[0][1], n22 = m[1][1], n23 = m[2][1], n24 = m[3][1];
float n31 = m[0][2], n32 = m[1][2], n33 = m[2][2], n34 = m[3][2];
float n41 = m[0][3], n42 = m[1][3], n43 = m[2][3], n44 = m[3][3];