Skip to content

Instantly share code, notes, and snippets.

View palaniraja's full-sized avatar

palaniraja palaniraja

View GitHub Profile
@samhenrigold
samhenrigold / 001_NEW27_task_overview.txt
Last active August 5, 2026 02:04
iOS 27 system prompts
# Owning binary : TextComposerRuntime
# Status : NEW in iOS 27 (not in 26.5.1)
# Source : embedded __cstring in dyld_shared_cache_arm64e (24A5355q)
======================================================================
# Task Overview:
You are a composition agent that helps users create personalized written content (emails, messages, documents, posts, stories, etc.)
As an Assistant, you must:
1. Analyze the request to determine if you have sufficient information
@robert-saramet
robert-saramet / riscv_guide_1.md
Created July 19, 2025 10:11
Comprehensive Guide to 32-Bit RISC-V Assembly Programming (RV32I)

Comprehensive Guide to 32-Bit RISC-V Assembly Programming (RV32I)

This guide provides a thorough introduction to programming in 32-bit RISC-V assembly language, focusing on the RV32I base integer instruction set. It starts with content from this cheat sheet and expands it into a complete, structured reference. The guide is organized for easy navigation, with clear sections, tables for listings, explanations, examples, and notes. It draws from official specifications and tutorials to ensure accuracy and completeness. Beginners can follow sequentially, while experienced users can reference specific sections.

Key assumptions:

  • We use the GNU Assembler (GAS) syntax, common for RISC-V tools.
  • Examples assume a bare-metal or simple simulator environment (e.g., RARS, Spike, or QEMU).
  • RV32I is the base; extensions like M (multiply/divide) are noted but not required unless specified.
  • Code snippets are testable in simulators; error handling and overflows are ign
@sanjayshreeyans
sanjayshreeyans / Phoneme.py
Created July 2, 2025 23:10
Kokorko ONNX Timestamped - Phoneme Level Timestamps
from pathlib import Path
from misaki import en
import numpy as np
import onnxruntime
def tokenize(phonemes):
"""
Converts a list of phonemes (strings) into a list of their corresponding
integer IDs based on the global VOCAB dictionary.
Filters out any phonemes not found in the vocabulary.
@gingerbeardman
gingerbeardman / volumes.60s.sh
Last active June 24, 2025 12:44
xbar/bitbar shell script to list and clean and eject (unmount using option) volumes as a replacement for CleanMyDrive
#!/bin/zsh
# <bitbar.title>Volume Manager</bitbar.title>
# <bitbar.version>250624</bitbar.version>
# <bitbar.author>Matt Sephton</bitbar.author>
# <bitbar.author.github>gingerbeardman</bitbar.author.github>
# <bitbar.desc>Lists and manages mounted user volumes</bitbar.desc>
# <bitbar.dependencies>zsh</bitbar.dependencies>
# <bitbar.abouturl>https://gist.github.com/gingerbeardman/610f22180117ad20465d7c529cc5faa0</bitbar.abouturl>
setopt EXTENDED_GLOB
@ChaitanyaKatti
ChaitanyaKatti / FlySky_ESP32_BLE.ino
Last active June 27, 2025 20:40
ESP32 + FlyFky Transmiter, PPM to BLE Gamepad for simulation
// 8 Channel PPM output from flysky fs-i6X tranmitter,
// Ch1/2/3/4 - Default
// SwA - Ch5
// SwB - Ch6
// SwC - Ch7
// SwD - Ch8
#define numChannels 8
#define axisMin 0
#define axisMax 32767 // Seems that this should be set to 127 for Android devices
@bjhomer
bjhomer / cross-view-lines.swift
Last active March 22, 2026 17:37
Creating cross-view lines in SwiftUI
//
// ContentView.swift
// SwiftUIPlayground
//
// Created by BJ Homer on 4/26/21.
//
import SwiftUI
@lisamelton
lisamelton / manuscript.latex
Last active August 10, 2025 00:29
LaTeX template for Pandoc to create PDFs in standard manuscript format with both short story and novel layouts.
%
% manuscript.latex
%
% Copyright (c) 2022 Don Melton
%
% LaTeX template for Pandoc to create PDFs in standard manuscript format
% with both short story and novel layouts.
%
% Version: 2022052301
%
import UIKit
extension UITextField {
/// Add a trailing placeholder label that tracks the text as it changes
func addTrailingPlaceholder(_ placeholder: String) {
let label = UILabel()
label.text = placeholder
label.alpha = 0.3
label.isHidden = true
let container = UIView()
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ASCII to Binary</title>
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.14"></script>
<style>
body {
@kevinjalbert
kevinjalbert / mirror.scpt
Last active March 30, 2025 21:44
AppleScript to Mirror iPhone to QuickTime
set deviceName to "Kevin’s iPhone"
activateScreenKeepAwake()
readyQuickTime()
setVideoInput(deviceName)
setAudioInput(deviceName)
setVolume(1.0)
setScreenSize("maximize")
# ----- Functions -----