Skip to content

Instantly share code, notes, and snippets.

View gokaybiz's full-sized avatar
🌪️
Focusing

Gökay Biz gokaybiz

🌪️
Focusing
View GitHub Profile
# tailwindcss.com llms.txt
> Tailwind CSS offers a utility-first CSS framework that enables developers to create custom designs quickly and efficiently, promoting consistency and maintainability without the complexities of traditional CSS.
- [Tailwind CSS Order Utilities](https://raw.githubusercontent.com/tailwindlabs/tailwindcss.com/main/src/docs/order.mdx): Explains how to use Tailwind CSS order utilities for flex and grid layouts.
- [Font Family Documentation](https://raw.githubusercontent.com/tailwindlabs/tailwindcss.com/main/src/docs/font-family.mdx): Guide on how to use and customize font families in Tailwind CSS.
- [Box Decoration Break Guide](https://raw.githubusercontent.com/tailwindlabs/tailwindcss.com/main/src/docs/box-decoration-break.mdx): Explain how to use the box decoration break utilities in Tailwind CSS for styling elements.
- [List Style Position Guide](https://raw.githubusercontent.com/tailwindlabs/tailwindcss.com/main/src/docs/list-style-position.mdx): To explain how to use Tailwind CSS
const randomiser = (array: any[], current: number): number =>
(current + 1 + (Math.random() * (array.length - 1) | 0)) % array.length;
// Example with array.length = 8, current = 7:
// 1. (7 + 1) = 8 // Shift start point after current
// 2. random * 7 | 0 // Get random 0-6
// 3. (8 + random) % 8 // Wrap around length, never hits 7
#!/bin/bash
if [ "$#" -ne 2 ]; then
echo "Usage: $0 <file_path> <md5|sha256>"
exit 1
fi
file_path="$1"
algorithm="$2"
@gokaybiz
gokaybiz / main.go
Last active March 7, 2024 08:51
Clientless vavoo.tv ip tv
package main
import (
"bufio"
"encoding/json"
"errors"
"fmt"
"net/http"
"os"
"strings"
@gokaybiz
gokaybiz / adsController.class.js
Last active July 23, 2023 17:03
Iframe onclick
/**
* Usage:
* try {
* var Advert = new Advert('adscontainer1', 'https://google.com.tr/');
* Advert.willClick().isOnHover();
* } catch(success) {
* location = success;
* }
*
**/
@gokaybiz
gokaybiz / main.py
Created February 8, 2023 07:58
DiabloIII zoom utility
import pymem
import windows
PROCESS_NAME = 'Diablo III64.exe'
THREADSTACK0 = 0x000007D8
OFFSETS = [0xC10, 0xAD8, 0x48, 0x18]
def get_thread_local_storage(process_name: str):
target_process = None
pointer_size = 4 * 2
@gokaybiz
gokaybiz / m3u8ToMp4.txt
Created October 26, 2022 13:56
Download movies from vidmoly.
aria2c -x 5 $MasterM3U8URL
aria2c -x 5 -i master.m3u8
aria2c -x 20 -i index-v1-a1.m3u8
find ../seg-*.ts -print0 | sort -zV | xargs -0 cat > noCountryForOldMen.ts
ffmpeg -i noCountryForOldMen.ts -vcodec copy -acodec copy -bsf:a aac_adtstoasc noCountryForOldMen.mp4
@gokaybiz
gokaybiz / main.py
Last active October 7, 2022 23:14
pubhtml pdf book downloader
import requests
import re
import json
from os.path import realpath, dirname, exists
from os import makedirs
from shutil import rmtree
from PIL import Image
BASE_PATH = dirname(realpath(__file__))
@gokaybiz
gokaybiz / updateEncoding.sh
Created March 30, 2021 14:40
Change encodings of old windows files to utf-8 without unreadable characters. This will be day saver for old subtitles. windows-1254 => Turkish Windows Encoding
$ find . -name '*.txt' -exec iconv --verbose -f windows-1254 -t utf-8 -o {} {} \;
$ find . -name '*.srt' -exec iconv --verbose -f windows-1254 -t utf-8 -o {} {} \;
@gokaybiz
gokaybiz / fix.js
Last active March 3, 2021 06:03
Cytoscape.js custom style comma bug fixer
styles[19].style = Object.values(styles[19].style).map(obj => {
const pattern = /(\d*\,\d*)/g
let numsWithComma = [...(obj.selector).matchAll(pattern)]
console.log(numsWithComma)
if (numsWithComma.length > 0) {
Object.entries(obj.css).forEach(([key, value]) => {
if (value.toString().startsWith('mapData')) {
numsWithComma.forEach(([num]) => {
obj.css[key] = obj.css[key].replace(new RegExp(num, 'g'), num.replace(',', '.'))
})