Skip to content

Instantly share code, notes, and snippets.

View iraizo's full-sized avatar
🖤

raizo iraizo

🖤
View GitHub Profile
@iraizo
iraizo / add_item.sh
Last active May 14, 2024 13:18
script to add items to jacks autopricer
#!/bin/bash
# Base URL for the auto-pricing system (adjusted for item name after /add/)
BASE_URL="http://127.0.0.1:3456/items/add/"
add_item() {
local item_name="$1"
url=$(printf "%s" "$BASE_URL$(sed 's/ /%20/g' <<< "$1")")
! 2023-07-05 https://www.wowhead.com
www.wowhead.com##.premium-promo-row
www.wowhead.com###main-contents > .zaf-unit-wrapper
#!/bin/sh
screencapture -i /tmp/ocr.png && tesseract -l eng /tmp/ocr.png stdout | pbcopy
@iraizo
iraizo / keybase.md
Last active July 9, 2021 22:30
keybase.md

Keybase proof

I hereby claim:

  • I am iraizo on github.
  • I am raizo (https://keybase.io/raizo) on keybase.
  • I have a public key ASDfuS4GILwaL14DsOl8dbP1cl8XarzxPoAr3gEf9R-5cQo

To claim this, I am signing this object:

@iraizo
iraizo / boxplot visualizer rust
Created March 4, 2021 20:28
This calculates and visualizes boxplots in rust, i needed this to do some homework because it is tedious to do it yourself.
use plotly::box_plot::{BoxMean, BoxPoints};
use plotly::common::{ErrorData, ErrorType, Line, Marker, Mode, Orientation, Title};
use plotly::histogram::{Bins, Cumulative, HistFunc, HistNorm};
use plotly::layout::{Axis, BarMode, BoxMode, Layout, Margin};
use plotly::{Bar, BoxPlot, Histogram, NamedColor, Plot, Rgb, Rgba, Scatter};
use rand_distr::{Distribution, Normal, Uniform};
fn main() {
let mut y0: Vec<f64> = Vec::new();
let mut y1: Vec<f64> = Vec::new();
C++ 3 hrs 30 mins ███████▏░░░░░░░░░░░░░ 34.5%
CMake 2 hrs 30 mins █████▏░░░░░░░░░░░░░░░ 24.5%
TypeScript 1 hr 49 mins ███▊░░░░░░░░░░░░░░░░░ 17.9%
Other 37 mins █▎░░░░░░░░░░░░░░░░░░░ 6.2%
Python 34 mins █▏░░░░░░░░░░░░░░░░░░░ 5.6%