Skip to content

Instantly share code, notes, and snippets.

@airglow923
airglow923 / clang-tidy-readability-identifier-naming-google.yml
Last active July 23, 2024 12:58
clang-tidy readability-identifier-naming for Google's naming convention
CheckOptions:
- key: readability-identifier-naming.ClassCase
value: CamelCase
- key: readability-identifier-naming.ClassMemberCase
value: lower_case
- key: readability-identifier-naming.ConstexprVariableCase
value: CamelCase
- key: readability-identifier-naming.ConstexprVariablePrefix
value: k
- key: readability-identifier-naming.EnumCase
{
"$schema": "https://biomejs.dev/schemas/1.7.1/schema.json",
"organizeImports": {
"enabled": true
},
"javascript": {
"formatter": {
"quoteStyle": "single"
}
},
@ardakazanci
ardakazanci / TextTweern.kt
Created July 20, 2024 08:15
Text Tween Animation
val colors = listOf(
Color(0xFFF3C623),
Color(0xFFF2AAAA),
Color(0xFFF37121),
Color(0xFFF2AAAA),
Color(0xFF8FC0A9),
Color(0xFF84A9AC),
Color(0xFFD54062),
Color(0xFF8FC0A9)
)
@unakatsuo
unakatsuo / raw_udp4.go
Last active July 23, 2024 12:55
Send UDP packet using Linux raw socket.
// +build linux
package main
import (
"fmt"
"net"
"os"
"syscall"
@AndrewMast
AndrewMast / disable_vanguard.vbs
Last active July 23, 2024 12:54
Commands to disable Riot Vanguard when you aren't playing Valorant
' Disables Vanguard from starting when you boot your computer
Call CreateObject("Shell.Application").ShellExecute("cmd.exe", "/c ""sc config vgc start= disabled & sc config vgk start= disabled""", "", "runas")
@benigumocom
benigumocom / build.gradle.kts
Last active July 23, 2024 12:53
Dagget-Hilt + KSP
// Project
plugins {
alias(libs.plugins.ksp) apply false
alias(libs.plugins.hilt) apply false
}
// Module
plugins {
alias(libs.plugins.ksp)
alias(libs.plugins.hilt)
@empirefx
empirefx / Dockerfile
Last active July 23, 2024 12:52
Docker apache php mssql
FROM php:7.0-apache
COPY src/ /var/www/html/
# Add Microsoft repo for Microsoft ODBC Driver 13 for Linux
RUN apt-get update && apt-get install -y \
apt-transport-https \
gnupg \
&& curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
&& curl https://packages.microsoft.com/config/debian/9/prod.list > /etc/apt/sources.list.d/mssql-release.list \
@AnandPilania
AnandPilania / Socialite.php
Last active July 23, 2024 12:51
LARAVEL: Social Auth via Socialite with Breeze
<?php
namespace App\Models;
use App\Traits\BelongsToUser;
use Illuminate\Database\Eloquent\Concerns\HasTimestamps;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Socialite extends Model
@chibiegg
chibiegg / attest.py
Last active July 23, 2024 12:51
SEV-SNP / COCONUT-SVSM Remote Attestation Demo
"""
MIT License
Copyright (c) 2024 chibiegg.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@disler
disler / README_MINIMAL_PROMPT_CHAINABLE.md
Last active July 23, 2024 12:50
Minimal Prompt Chainables - Zero LLM Library Sequential Prompt Chaining & Prompt Fusion

Minimal Prompt Chainables

Sequential prompt chaining in one method with context and output back-referencing.

Files

  • main.py - start here - full example using MinimalChainable from chain.py to build a sequential prompt chain
  • chain.py - contains zero library minimal prompt chain class
  • chain_test.py - tests for chain.py, you can ignore this
  • requirements.py - python requirements

Setup