Skip to content

Instantly share code, notes, and snippets.

View Heliodex's full-sized avatar
📉
Programstinating

Lewin Kelly Heliodex

📉
Programstinating
View GitHub Profile
@tylerneylon
tylerneylon / json.lua
Last active March 11, 2026 21:48
Pure Lua json library.
--[[ json.lua
A compact pure-Lua JSON library.
The main functions are: json.stringify, json.parse.
## json.stringify:
This expects the following to be true of any tables being encoded:
* They only have string or number keys. Number keys must be represented as
strings in json; this is part of the json spec.
@s0enke
s0enke / php_equality_table.php
Created January 3, 2015 12:32
PHP Equality Table
<?php
$values = array(
'true' => true,
'false' => false,
'1' => 1,
'0' => 0,
'-1' => -1,
'"true"' => "true",
'"false"' => "false",
'"1"' => "1",
@Microsofttechies
Microsofttechies / gist:d5eb04e6201f2177eff2
Last active December 9, 2025 15:24
How to prevent XDocument from adding XML version and encoding information C#
XmlDocument xdoc = new XmlDocument();
TextWriter wwriter = new StreamWriter("c:/a.xml");
//Do your logic to add all tags to xdoc
////with Tag <?xml version="1.0" encoding="utf-8"?>
//xdoc.Save(wwriter);
////without tag- <?xml version="1.0" encoding="utf-8"?>
XmlWriterSettings xws = new XmlWriterSettings { OmitXmlDeclaration = true };
using (XmlWriter xw = XmlWriter.Create(wwriter, xws))
@swlaschin
swlaschin / ConstrainedTypesExamples.fsx
Last active January 7, 2026 17:22
Examples of creating constrained types in F#
// General hints on defining types with constraints or invariants
//
// Just as in C#, use a private constructor
// and expose "factory" methods that enforce the constraints
//
// In F#, only classes can have private constructors with public members.
//
// If you want to use the record and DU types, the whole type becomes
// private, which means that you also need to provide:
// * a constructor function ("create").
@MasazI
MasazI / cstdlib.cpp
Created May 19, 2015 13:24
cstdlib.cpp
//
// cstdlib.cpp
// CplusplusPractice
//
// Created by masai on 2015/05/19.
// Copyright (c) 2015年 masai. All rights reserved.
//
#include <iostream>
#include <cstdlib>
@lmarkus
lmarkus / README.MD
Last active March 20, 2026 13:01
Extracting / Exporting custom emoji from Slack

Extracting Emoji From Slack!

Slack doesn't provide an easy way to extract custom emoji from a team. (Especially teams with thousands of custom emoji) This Gist walks you through a relatively simple approach to get your emoji out.

If you're an admin of your own team, you can get the list of emoji directly using this API: https://api.slack.com/methods/emoji.list. Once you have it, skip to Step 3

HOWEVER! This gist is intended for people who don't have admin access, nor access tokens for using that list.

Follow along...

@bkaradzic
bkaradzic / orthodoxc++.md
Last active April 2, 2026 12:34
Orthodox C++

Orthodox C++

This article has been updated and is available here.

@lopezjurip
lopezjurip / Caddyfile
Last active August 5, 2025 00:24
Fix Too Many Redirect error using Caddy + Cloudflare
www.mysite.com, mysite.com {
proxy / webapp:3000 {
proxy_header Host {host}
proxy_header X-Real-IP {remote}
proxy_header X-Forwarded-Proto {scheme}
}
gzip
tls your@email.com
}
@nathan-osman
nathan-osman / win32.go
Last active December 30, 2025 19:01
Simple Windows GUI application written in Go
package main
import (
"log"
"syscall"
"unsafe"
)
var (
kernel32 = syscall.NewLazyDLL("kernel32.dll")
@TUSF
TUSF / Valbli Orthography.md
Last active December 3, 2025 10:49
A draft for a block writing system, designed for Lojban.

https://tusf.page/valbli

(Note: This is a draft, and subject to change.)

Many writing systems have been proposed for Lojban. Hangul is the writing system used in Korean, and potentially a great option to use for Lojban. It's a featural writing system, meaning that most of its symbols are chosen for a reason, and not just arbitrarily. The most attractive feature of Hangul is the syllable-blocks that well compress the language.