Skip to content

Instantly share code, notes, and snippets.

@harshkn
harshkn / CircBuffer.c
Created April 8, 2011 09:26
C Implementation of simple circular buffer, Functionality provided are add to queue, read latest
typedef struct circular_buffer
{
void *buffer; // data buffer
void *buffer_end; // end of data buffer
size_t capacity; // maximum number of items in the buffer
size_t count; // number of items in the buffer
size_t sz; // size of each item in the buffer
void *head; // pointer to head
void *tail; // pointer to tail
} circular_buffer;
@kenbarbour
kenbarbour / OpenSCAD.mk
Last active January 8, 2022 15:50
Generic Makefile for OpenSCAD
# This Makefile generates files for printing SCAD documents
# Copyright (C) 2016 Kenneth Barbour | kenbarbour.com
# License: GNU GPL v3 (or later)
## make all Generate STL for each SCAD file
## make gcode Generate gcode for each SCAD file
## SCAD Compiler
SCADC?=openscad
## Slicing program

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@linc01
linc01 / gist:fec9808ab44be493a43461b50d7cfc3f
Created July 7, 2021 13:45 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@wjdp
wjdp / gitmirror.py
Created January 31, 2023 21:51
Simple script to maintain a local copy of your GitHub repos
#!/usr/bin/env python3
import requests
from requests.auth import HTTPBasicAuth
import click
from tqdm import tqdm
from pathlib import Path
import os.path
import subprocess
from glob import glob

Source and credits

Everything below the separator bar is a mirror of the "Find Alternatives for Ourselves Megathread: Third Strike" post by bettervanilla on the r/RedditAlternatives subreddit, found here.

It was last updated on 2023, Aug 6 at or around 1325 EDT. It may or may not get updates going forward, depending on how much free time I have (e.g. don't expect me to update it but I might if I have time). Also, if bettervanilla decides to move his post off of reddit, I plan to update this page to redirect to the new location.

Also found one more really nice list mentioned on the r/linuxmasterrace sub while trying to find where they are migrating to. Thanks to /u/ball_soup for sharing!

https://github.com/maltfield/awesome-lemmy-instances