Skip to content

Instantly share code, notes, and snippets.

View XANOZOID's full-sized avatar
♾️
You can not win.

Xanozoid XANOZOID

♾️
You can not win.
  • The machine
View GitHub Profile
@9214
9214 / scrape.red
Last active August 19, 2024 04:18
The world's smallest web scraper.
Red [
Title: "A Parse-based port of Michael Gilliland's web scraper"
Author: @9214
Date: 16-Oct-2020
Link: https://youtu.be/HDMa4gcgEgI
]
page: read-thru/binary to url! system/script/args
link: [copy match [ahead https:// url!]]
rule: [collect any [link keep (to url! match) | skip]]
@thejustinwalsh
thejustinwalsh / efx.c
Created March 30, 2019 21:54
EFX shim for OpenAL when using OpenAL without the EFX extension [iOS]
#include <hl.h>
void openal_al_get_auxiliary_effect_slotfv(int a, int b, vbyte* c) { }
float openal_al_get_auxiliary_effect_slotf(int a, int b) { return 0.f; }
void openal_al_get_auxiliary_effect_slotiv(int a, int b, vbyte* c) { }
int openal_al_get_auxiliary_effect_sloti(int a, int b) { return 0; }
void openal_al_auxiliary_effect_slotfv(int a, int b, vbyte* c) { }
void openal_al_auxiliary_effect_slotf(int a, int b, float c) { }
void openal_al_auxiliary_effect_slotiv(int a, int b, vbyte* c) { }
void openal_al_auxiliary_effect_sloti(int a, int b, int c) { }
@Rich-Harris
Rich-Harris / what-is-svelte.md
Last active March 20, 2025 20:49
The truth about Svelte

I've been deceiving you all. I had you believe that Svelte was a UI framework — unlike React and Vue etc, because it shifts work out of the client and into the compiler, but a framework nonetheless.

But that's not exactly accurate. In my defense, I didn't realise it myself until very recently. But with Svelte 3 around the corner, it's time to come clean about what Svelte really is.

Svelte is a language.

Specifically, Svelte is an attempt to answer a question that many people have asked, and a few have answered: what would it look like if we had a language for describing reactive user interfaces?

A few projects that have answered this question:

@thejustinwalsh
thejustinwalsh / Hashlink AppCenter
Last active April 4, 2024 17:45
Build script for building a heaps based project on iOS
@nadako
nadako / 1 Main.hx
Last active October 16, 2021 04:38
ocaml-like `with` for Haxe
using WithMacro;
typedef Player = {
final name:String;
final level:Int;
}
class Main {
static function main() {
var player = {name: "Dan", level: 15};
@greggirwin
greggirwin / red-object-browser.red
Last active October 16, 2020 17:48
Red Object Browser
Red [
title: "Red Object Browser"
author: "Gregg Irwin"
needs: 'View
]
e.g.: :comment
map-ex: func [
"Evaluates a function for all values in a series and returns the results."
@floooh
floooh / NetClient.cc
Created January 18, 2017 16:07
NetClient.h (emscripten/osx/win)
//------------------------------------------------------------------------------
// NetClient.cc
//------------------------------------------------------------------------------
#if ORYOL_WINDOWS
#define _WINSOCK_DEPRECATED_NO_WARNINGS (1)
#include <WinSock2.h>
typedef int ssize_t;
#endif
#if ORYOL_POSIX