Skip to content

Instantly share code, notes, and snippets.

View avindra's full-sized avatar
🙏
Acepit

Avindra Goolcharan avindra

🙏
Acepit
View GitHub Profile
@mikeal
mikeal / No2887.md
Created May 11, 2025 16:42
Sutra on the Profound Kindness of Parents

No. 2887

Sutra on the Profound Kindness of Parents

佛說父母恩重經 The Buddha Speaks the Sutra on the Profound Kindness of Parents

如是我聞。一時佛在王舍城耆闍崛山中。與大菩薩摩訶薩及聲眷屬俱。亦與比丘比丘尼優婆塞優婆夷。一切諸天人民及天龍鬼神。皆來集會。一心聽佛說法。瞻仰尊顏。目不暫捨。 Thus have I heard. One time the Buddha was staying at Gṛdhrakūṭa Mountain in Rājagṛha, together with great bodhisattvas (mahāsattva) and śrāvaka disciples, as well as bhikṣus, bhikṣunīs, upāsakas, and upāsikās. All devas, humans, and also heavenly dragons and spirits gathered together, wholeheartedly listening to the Buddha’s teaching of the Dharma, gazing upon his revered countenance without averting their eyes for even a moment.

package main
import (
"fmt"
"os"
fzf "github.com/junegunn/fzf/src"
)
func main() {
#include <stdio.h>
#include <windows.h>
#include <vector>
RECT gUsableAreaCoords = {0};
RECT gCurrentPos = {0};
INT gVelocityX = 5;
INT gVelocityY = 5;
DWORD gLast = 0;
package main
import (
"crypto/sha256"
"encoding/hex"
"fmt"
"log"
"sync"
)
const LOOKUP =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
export function encodeBase64(buffer) {
const view = new Uint8Array(buffer);
let out = [];
for (let i = 0; i < view.length; i += 3) {
const [b1, b2 = 0x10000, b3 = 0x10000] = view.subarray(i, i + 3);
out.push(
b1 >> 2,
@anotherjesse
anotherjesse / README.md
Created September 25, 2021 13:35
golang ffmpeg imagepipe streaming

using golang to create image pipe for ffmpeg

If you want to stream a slideshow using ffmpeg, it seems like one easy way to do it is to create an imagepipe of the files.

This can then be streamed to twitch.tv or youtube ... https://trac.ffmpeg.org/wiki/StreamingGuide

This sample cycles between images on disk

usage

@DavidBuchanan314
DavidBuchanan314 / life.c
Last active August 9, 2023 23:12
Yet another reformatting of my tiny game of life implementation. Valid ANSI C with no (default) compiler warnings or UB
#define F\
for(i=l;i\
<l*4; i++)
main(){int
i,j,w=512,
n,l=w*w,o[
]={~w,-w,-
w+1,-1,1,w
-1,w,w+1},
b[l*5];F b
@awerlang
awerlang / README
Last active June 24, 2024 15:50
A zypper wrapper that maximizes network throughput
zypper-download
===============
Downloads packages using any amount of available openSUSE mirrors.
Installation
------------
Copy both files to the following locations:
// ==UserScript==
// @name Disable onmousedown in Google search results page
// @namespace https://gist.github.com/chris-kwl/6172eb00971ab81bf99a213682b42e21
// @include http://www.google.tld/search?*
// @include https://www.google.tld/search?*
// ==/UserScript==
(function () {
var disableOnmousedown = function (node) {
var a, i;
@bewuethr
bewuethr / dfinit
Last active November 11, 2023 18:13
Dotfiles initialization script
#!/usr/bin/env bash
while getopts 'l:' opt; do
case $opt in
l) branch=$OPTARG ;;
*) exit 1 ;;
esac
done
if [[ -n $branch ]]; then