I hereby claim:
- I am rathorevaibhav on github.
- I am rathorevaibhav (https://keybase.io/rathorevaibhav) on keybase.
- I have a public key ASBPxPzVsAUg6kVrX8QTcRg0k5UHEl1eBHiojwxMyTTtKwo
To claim this, I am signing this object:
| #!/bin/bash | |
| # Split an audio file into chunks of ~20MB each | |
| # Usage: ./audio-chunk.sh [-s size_mb] [-o output_dir] audio_file | |
| # -s <size> Chunk size in MB (default: 20) | |
| # -o <dir> Output directory (default: ./chunks/) | |
| chunk_size_mb=20 | |
| outdir="" | |
| while getopts "s:o:" opt; do |
| import React, { useState, useEffect, useRef } from "react"; | |
| const generateRows = (start, count) => | |
| Array.from({ length: count }, (_, i) => ({ | |
| id: start + i + 1, | |
| name: `Item ${start + i + 1}`, | |
| })); | |
| const MultiSelectTable = () => { | |
| const [rows, setRows] = useState(generateRows(0, 20)); // Initial 20 rows |
| -- changing charset and utf types for macOS to Windows import | |
| sed -i '' 's/utf8mb4_0900_ai_ci/utf8_general_ci/g' db.sql | |
| sed -i '' 's/CHARSET=utf8mb4/CHARSET=utf8/g' db.sql | |
| sed -i '' 's/utf8mb4_unicode_520_ci/utf8_general_ci/g' db.sql | |
| sed -i '' 's/utf8mb4/utf8/g' db.sql |
I hereby claim:
To claim this, I am signing this object:
| # clean stale branches except `master` and `develop` | |
| alias clean-branches='git branch | grep -v "master\|develop" | xargs git branch -D' |
| function hexToRgb(hex){ | |
| var r, g, b, parts; | |
| hex = hex.replace('#', ''); | |
| if(hex.length !== 3 && hex.length !== 6){ | |
| return [255,255,255]; | |
| } | |
| if(hex.length == 3){ | |
| hex = hex[0]+hex[0]+hex[1]+hex[1]+hex[2]+hex[2]; | |
| } | |
| r = parseInt(hex.substr(0, 2), 16); |