Skip to content

Instantly share code, notes, and snippets.

(lldb) process attach --pid 6936
Process 6936 stopped
* thread #9, stop reason = Exception 0x80000003 encountered at address 0x7ff8f9f03d80
frame #0: 0x00007ff8f9f03d81 ntdll.dll`DbgBreakPoint + 1
ntdll.dll`DbgBreakPoint:
->  0x7ff8f9f03d81 <+1>: retq
  0x7ff8f9f03d82 <+2>: int3
  0x7ff8f9f03d83 <+3>: int3
  0x7ff8f9f03d84 <+4>: int3
Executable module set to "D:\a\ruffle\ruffle\target\debug\deps\tests-8b6a3f6194ee2f95.exe".
// ==UserScript==
// @name @chaoticvibing Twitter Blue red ticks - twitter.com
// @namespace Violentmonkey Scripts
// @match *://*.twitter.com/*
// @grant none
// @version 1.5.2
// @author @chaoticvibing - GH @busybox11, modified by @arturo182
// @description 11/9/2022, 11:45:28 PM
// @updateURL https://gist.githubusercontent.com/arturo182/85251cbc370a12d9de6766dd44b88d5c/raw/twitterblue-red.user.js
// @downloadURL https://gist.githubusercontent.com/arturo182/85251cbc370a12d9de6766dd44b88d5c/raw/twitterblue-red.user.js
@FronkonGames
FronkonGames / TinyTween.cs
Created October 30, 2022 23:20
A Complete and Easy to use Tweens library in One File.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// _____ _ _____
// |_ _|_|___ _ _ |_ _|_ _ _ ___ ___ ___
// | | | | | | | | | | | | | -_| -_| |
// |_| |_|_|_|_ | |_| |_____|___|___|_|_|
// |___|
// A Complete and Easy to use Tweens library in One File
//
// Basic use:
@rrika
rrika / test.cpp
Created February 15, 2021 19:41
HIP without HIP
// clang++
// -x hip
// test.cpp
// -O3
// --cuda-gpu-arch=gfx1010
// --hip-device-lib=dummy.bc
// --hip-device-lib-path=path_to_dummy_bc
// -nogpuinc
// -fuse-ld=lld
// -fgpu-rdc
@carlos-jenkins
carlos-jenkins / to_iso8601_and_back.py
Last active May 8, 2022 21:19
Create and parse ISO8601 with Offset with standard library only in Python 3.5 and 3.6
# PARSING AN ISO8601 WITH OFFSET FORMATTED STRING USING A PYTHON VERSION PRIOR
# TO 3.7 WITH THE STANDARD LIBRARY ONLY
#
#
# For the formatting:
#
# This returns a datetime object with the timezone set to UTC.
# The internal time can now be interpreted as UTC.
#
# datetime.now(timezone.utc)
@ctrlcctrlv
ctrlcctrlv / rust-maintainer-perfectionism.md
Last active January 4, 2024 15:42
Rust maintainer perfectionism

Rust maintainer perfectionism, or, the tragedy of Alacritty

I did not submit this to Hacker News and did not intend that this post would have high circulation but have no real problem with it being there or with it having such. I have more recent comments below. This post is from January 2020 and predates the Modular Font Editor K (MFEK) project.

I have not worked on Rust projects in quite a while, and don't know if I ever will again. I feel many crate maintainers are way too perfectionist, for example, despite all the developer hours that went into this PR, it took the effort within years to be (halfway) merged.

There's always a reason not to merge, isn't there? It would be better done with a new nightly language feature, or the function signature should have a where clause, or the documentation is not perfect. There's always a new nit to pick in the world of Ru

@fay59
fay59 / Quirks of C.md
Last active January 23, 2024 04:24
Quirks of C

Here's a list of mildly interesting things about the C language that I learned mostly by consuming Clang's ASTs. Although surprises are getting sparser, I might continue to update this document over time.

There are many more mildly interesting features of C++, but the language is literally known for being weird, whereas C is usually considered smaller and simpler, so this is (almost) only about C.

1. Combined type and variable/field declaration, inside a struct scope [https://godbolt.org/g/Rh94Go]

struct foo {
   struct bar {
 int x;
@stevecheckoway
stevecheckoway / fa.sty
Created March 10, 2018 22:54
Finite automata and (deterministic) Turing machine running/drawing.
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{fa}
[2018/03/09 v0.3 Construct finite automata and Turing machines]
\RequirePackage{tikz}
\RequirePackage{etoolbox}
\usetikzlibrary{arrows.meta,automata,calc,chains,positioning}
% Define \emptystring to \varepsilon
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define LARGENUM 0x80000001
int main()
{
char* buf = malloc(LARGENUM + 1);
memset(buf, 'X', LARGENUM);