Skip to content

Instantly share code, notes, and snippets.

@tkrotoff
tkrotoff / FrontendFrameworksPopularity.md
Last active April 4, 2026 00:29
Front-end frameworks popularity (React, Vue, Angular and Svelte)
@Rich-Harris
Rich-Harris / what-is-svelte.md
Last active March 3, 2026 06:56
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:

@Zhentar
Zhentar / Description.md
Last active March 1, 2024 04:35
I knew the Span<T> stuff was supposed to be fast, but this is ridiculous!

I have a program that parses data from both delimited files and Excel spreadsheets. I was trying out Span to speed up parsing the delimited files, but the ref struct restrictions mean I can't just hide the two different file formats behind an interface (without the small added overhead of repeatedly pulling Spans from Memory).

But what if I just wrote the ASCII strings from the Excel spreadsheets into a byte buffer, so that the same Span based parser could be used with both file formats? Seems like the overhead cost could be fairly low, and the Excel parsing is already intrinsically slower because of the decompression & XML parsing costs, so I'd be willing to take a small performance hit there for a big gain on the delimited files.

BenchmarkDotNet=v0.10.14, OS=Windows 10.0.17134
Intel Core i7-6600U CPU 2.60GHz (Skylake), 1 CPU, 4 logical and 2 physical cores
.NET Core SDK=2.1.301
[Host] : .NET Core 2.1.1 (CoreCLR 4.6.26606.02, CoreFX 4.6.26606.05), 64bit RyuJIT
@zentavr
zentavr / clone_medium.sh
Created July 5, 2018 14:57
Cuckoo Helpers for Building OS X Images
#!/bin/bash
function usage() {
cat << EOF
usage: $0 options
The script creates MacOS X Guest VM.
OPTIONS:
-h, --help
@ShinobiWPS
ShinobiWPS / ShinobiWPS-Unity_WebGL_tips.txt
Last active August 29, 2022 16:14
ShinobiWPS - Tips to optimize a WebGL build of a Unity game
http://docs.unity3d.com/Manual/webgl-building.html
http://docs.unity3d.com/Manual/ReducingFilesize.html
https://www.youtube.com/watch?v=gVUgF2ZHveo - AssetBundles
Webgl game size Info:
When we compile a Webgl project,it generates 3 folders along with html file.
Compressed
Release
TemplateData
@martinruenz
martinruenz / ffmpeg-snippets.md
Last active March 7, 2025 22:28
ffmpeg snippets / cheatsheet
@luca1337
luca1337 / FCurveData.h
Last active October 29, 2023 07:45
Unreal Engine Plugin that allow user to create a 2D curve with it's given params from console command
#pragma once
#include "CoreMinimal.h"
#include "Runtime/Engine/Classes/Curves/CurveVector.h"
#include "Runtime/Engine/Classes/Curves/CurveFloat.h"
#include "ModuleManager.h"
namespace Curve
{
@numtel
numtel / AWSPingTest.js
Created May 14, 2017 07:59
Find your closest AWS region
'use strict';
(function() {
// inspired by cloudping.info
var regions = {
'us-east-1': 'US-East (Virginia)',
'us-east-2': 'US East (Ohio)',
'us-west-1': 'US-West (California)',
'us-west-2': 'US-West (Oregon)',
'ca-central-1': 'Canada (Central)',
'eu-west-1': 'Europe (Ireland)',
@derofim
derofim / MyActor.cpp
Last active August 4, 2025 18:48
UE4 logging, Overlap & Hit events, playing sounds, Actor location, Particle System Parameter
// Fill out your copyright notice in the Description page of Project Settings.
#include "SCP.h"
#include "MyActor.h"
#include <EngineGlobals.h>
#include <Runtime/Engine/Classes/Engine/Engine.h>
// https://wiki.unrealengine.com/Logs,_Printing_Messages_To_Yourself_During_Runtime#Related_Tutorial
#define print(text) if (GEngine) GEngine->AddOnScreenDebugMessage(-1, 1.5, FColor::White,text)
@65
65 / mailchimp-googlescript.txt
Last active January 15, 2022 17:15
On Google Spreadsheet / Google Form submission, push new entry to a MailChimp subscription list with an `onformsubmit` trigger. Uses the MailChimp 3.0 API and Google Apps Script.
/**
* Mailchimp API v3
* Add a subscriber to a list with interests on Google Form submit
*
* Updated to 3.0 from https://gist.github.com/acarrillo/5772508
*
* Edit the Google Sheet connected to your form
* Menu > Tools > Script Editor
* Copy and paste this into the file, remove anything there already
* Update the variables in the top section