Skip to content

Instantly share code, notes, and snippets.

View softmarshmallow's full-sized avatar
putting a dent in the universe

Universe softmarshmallow

putting a dent in the universe
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Top 100 Smallest Font Files in Google Fonts Repository
============================================================
Rank | Size (bytes) | Size (KB) | File Path
--------------------------------------------------------------------------------
1 | 14800 | 14.5 | fonts/ofl/librebarcode39/LibreBarcode39-Regular.ttf
2 | 15920 | 15.5 | fonts/ofl/redacted/Redacted-Regular.ttf
3 | 17396 | 17.0 | fonts/ofl/librebarcode39extended/LibreBarcode39Extended-Regular.ttf
4 | 19072 | 18.6 | fonts/ofl/squadaone/SquadaOne-Regular.ttf
5 | 19596 | 19.1 | fonts/ofl/allerta/Allerta-Regular.ttf
@softmarshmallow
softmarshmallow / performance.now.html
Created June 24, 2025 08:59
frame budget - performance.now.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Scheduler with performance.now()</title>
</head>
<body>
<h1>Running units of work per frame…</h1>
@softmarshmallow
softmarshmallow / raf.html
Created June 24, 2025 08:56
raf.html - measure fps with raf
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>rAF Hz Test</title>
</head>
<body>
<h1>Estimated Refresh Rate: <span id="hz">Calculating...</span></h1>
@softmarshmallow
softmarshmallow / sketch-typings.v3.ts
Created April 11, 2021 17:20
this is a copy of sketch typings
/**
* UUID string.
*/
export declare type Uuid = string;
/**
* Collection of global document objects
*/
export declare type AssetCollection = {
_class: 'assetCollection';
do_objectID: Uuid;
// from dartpad.dev
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
import React from "react";
import { useRecoilBridgeAcrossReactRoots_UNSTABLE, useRecoilState } from "recoil";
function accessGlobalStateUnderKonvaCanvas(){
// https://github.com/konvajs/react-konva/issues/533
const RecoilBridge = useRecoilBridgeAcrossReactRoots_UNSTABLE()
return (