Skip to content

Instantly share code, notes, and snippets.

View ing-norante's full-sized avatar

Ing.Norante ing-norante

  • Florence, Italy
View GitHub Profile
@ing-norante
ing-norante / model-prices.csv
Created March 25, 2025 16:40
LLM model pricing
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
| Name | Input | Output |
| :----------------------- | :------ | :------ |
| Gemini 2.0 Flash-Lite | \$0.075 | \$0.30 |
| Mistral 3.1 Small | \$0.10 | \$0.30 |
| Gemini 2.0 Flash | \$0.10 | \$0.40 |
| DeepSeek v3 (old) | \$0.14 | \$0.28 |
| ChatGPT 4o-mini | \$0.15 | \$0.60 |
| DeepSeek v3 | \$0.27 | \$1.10 |
| DeepSeek r1 | \$0.55 | \$2.19 |
| ChatGPT o3-mini | \$1.10 | \$4.40 |
0x907aED7b095f68eC572E1A861Eaff0B8A47a0502
pragma solidity ^0.4.6;
contract FourWaySplit {
// balances and account list are publicly visible
mapping(address => uint) public beneficiaryBalance;
address[4] public beneficiaryList;
// emit events for real-time listeners and state history
/**
* @title TokenizedSplitter
* @author Jonathan Brown <jbrown@bluedroplet.com>
*/
contract TokenizedSplitter {
struct Account {
bool activated;
uint248 tokens;
uint cash;
contract splitter {
address[] recipients = [0x3E05811dc66ce3B43dEe2b4B1F71b949a76F385d,
0xd750A20dA221fe5C3F77EdD53f848290F240610C,
0x121B4B6470c2A30369195b0878f354138C248B0C,
0x761348d4193C699b7Cc208800dd2851Cd8f81cd7
];
address owner = 0x3E05811dc66ce3B43dEe2b4B1F71b949a76F385d;
#!/bin/bash
# LOCAL/FTP/SCP/MAIL PARAMETERS
SERVER="localhost" # IP of Network disk, used for ftp
USERNAME="username" # FTP username of Network disk used for ftp
PASSWORD="password" # FTP password of Network disk used for ftp
DESTDIR="xxxxx" # used for temorarily storage
DOMO_IP="localhost" # Domoticz IP
DOMO_PORT="8080" # Domoticz port
### END OF USER CONFIGURABLE PARAMETERS
TIMESTAMP=`/bin/date +%Y%m%d%H%M%S`
@ing-norante
ing-norante / vimeo_url_parser.rb
Created July 6, 2016 10:26
Vimeo url_parser and validator
class VimeoUrlParser < Attrs.new(:url)
VALID_VIMEO_URL = %r{^https?://(www\.)?vimeo\.com/(\d+)/?}
def video_id
matches = VALID_VIMEO_URL.match(url)
matches ? matches[2] : nil
end
def iframe_url(protocol = nil)
"#{protocol}//player.vimeo.com/video/#{video_id}"
@ing-norante
ing-norante / ascii_skull
Created June 29, 2016 18:54
A skull in ascii art
████▀░░░░░░░░░░░░░░░░░▀████
███│░░░░░░░░░░░░░░░░░░░│███
██▌│░░░░░░░░░░░░░░░░░░░│▐██
██░└┐░░░░░░░░░░░░░░░░░┌┘░██
██░░└┐░░░░░░░░░░░░░░░┌┘░░██
██░░┌┘▄▄▄▄▄░░░░░▄▄▄▄▄└┐░░██
██▌░│██████▌░░░▐██████│░▐██
███░│▐███▀▀░░▄░░▀▀███▌│░███
██▀─┘░░░░░░░▐█▌░░░░░░░└─▀██
██▄░░░▄▄▄▓░░▀█▀░░▓▄▄▄░░░▄██
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1
mQINBFcoqhMBEAC0hMS02ddMEvIOlT7Pi+gd8f/HWvIYYuP43CO8MHVSpw95Ppdh
++htsjMuU+0B1VEVx1ctUgJgK+oXx0UvlVYRtwS9CHVxNver8E1EhnM6b/O2LFYU
b9p4p00eWNLX0uKZGipjGCvcgma2qmw3YkMhkpJ1cQ1LC9vkjULShuK6cpL/EtZr
hMa2uWUR0JgJY91/AgnWMZod1CVf9dzechsmyP/LURsb5ypR1TtFXoQpIS76qFwx
8ZiWCdWl5hGXk6rIyEWZVkTPzraW2OGpYXF89W/SMQmiAQhhtK02SyaAURUROSQI
AzK9amQekQKp9tbrt/sGEZsN9ZO4u+2oDIJBhVqFXJxZmFG294B3ik0n0hslnhlb
Wn61JsUk/K9OduGb1zO3+1GLHUtZbsJ786/qvwQ2P5ETs/ga3BD9EM/LSDEtmG6s
@ing-norante
ing-norante / cfg-install.sh
Created March 3, 2016 11:38
Move dotfiles to Git bare repository
git clone --bare git@github.com:eppemela/dotfiles.git $HOME/.cfg
function config {
/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME $@
}
mkdir -p .config-backup
config checkout
if [ $? = 0 ]; then
echo "Checked out config.";
else
echo "Backing up pre-existing dot files.";