Skip to content

Instantly share code, notes, and snippets.

View shaposhnikoff's full-sized avatar
🏠
Working from home

Shaposhnikoff shaposhnikoff

🏠
Working from home
  • Kiev,Ukraine
View GitHub Profile
import os
import cv2
import random
import argparse
def extract_random_interval_frames(
video_path: str,
output_dir: str,
min_interval_sec: float = 2.0,
@leon2017
leon2017 / claude.zsh
Created February 28, 2026 06:04 — forked from LeslieLeung/claude.zsh
A sleek script to switch between Claude Code providers.
function claude() {
# 默认渠道配置
local default_provider=""
# 定义不同服务的配置
local base_url=""
local auth_token=""
local api_key=""
local model=""
local small_fast_model=""
@ajinkya5130
ajinkya5130 / ${NAME}Action.kt
Last active February 28, 2026 06:46
Compose UI Screen with ViewModel
/**
Created by ${USER} on ${DATE}
*/
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME} #end
sealed interface ${NAME}Action {
}
@ManotLuijiu
ManotLuijiu / ssh.config
Last active February 28, 2026 06:48
Connect to Host (Remote Server via SSH)
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_ed25519
Host {human_readable_name}
HostName {remote_server_ip}
User {Ubuntu_server_user}
IdentityFile ~/.ssh/id_ed25519
IdentitiesOnly yes
{
"title": "入部届",
"remark": "${service}で生成した標準的な入部届レイアウト例です。\n必要事項を整理し、学校・団体など幅広い場面で使用できる構成になっています。",
"info": {"rows":[30.17897824470657,17.008,20.119318829804378,20.119318829804378,20.119318829804378,20.119318829804378,20.119318829804378,40.238637659608756,20.119318829804378,40.238637659608756,20.119318829804378],"columns":[91.10899332811714,10.123221480901906,151.8483222135286,10.123221480901906,61.71432179362343,10.123221480901906,40.49288592360762,10.123221480901906,82.05959081751564],"areas":[{"id":"1772235102138","name":"print_area","type":"print","props":[{"name":"name","value":"印刷範囲"},{"name":"paper","value":"A4"},{"name":"paperMarginTop","value":"25"},{"name":"paperMarginBottom","value":"30"},{"name":"paperMarginLeft","value":"25"},{"name":"paperMarginRight","value":"20"}]}],"grids":[{"control":{"type":"label","props":[{"name":"name","value":"入部届"},{"name":"link","value":""}]},"group":"group0","font":{"size":18},"align":{"vertical":"center","horizontal":"center"}},{"group":"group0"},{"group":"g
@calebrob6
calebrob6 / compute_aef_block_stats.py
Created February 28, 2026 03:56
Compute per-block AEF embedding stats and PCA rasterization
#!/usr/bin/env python3
"""Compute mean and stdev of Alpha Earth Foundation embeddings per census block.
Required input data
-------------------
1. Census block shapefiles:
- Go to https://www.census.gov/cgi-bin/geo/shapefiles/index.php
- Select year "2025" (or desired year) and layer type "Blocks (2020)"
- Choose a state (e.g. "Washington") and download the ZIP
- Unzip to get tl_2025_53_tabblock20.shp (and companion files)
@serajmoner20041-ai
serajmoner20041-ai / index.html
Created February 28, 2026 03:56
SERAJ STORE
SERAJ STORE
[
{
"type": "git",
"name": "mitsumori",
"url": "https://gist.githubusercontent.com/KenjiNirasawa/d35b2e2134bd6f7fb06d9ba5c1d2a337/raw/mitshmori.json"
},
{
"type": "git",
"name": "nyuubu",
"url":"https://gist.githubusercontent.com/KenjiNirasawa/6ee364d4925860e1a0e357c06a88d9ef/raw/nyuubu.json"