Skip to content

Instantly share code, notes, and snippets.

@dealloc
dealloc / macro.js
Created February 23, 2023 09:35
Foundry Skill Check Macro
const skills = [
{ label: 'Perception', value: 'perception' },
{ label: 'Acrobatics', value: 'acrobatics' },
{ label: 'Deception', value: 'deception' },
{ label: 'Intimidation', value: 'intimidation' },
{ label: 'Nature', value: 'nature' },
{ label: 'Performance', value: 'performance' },
{ label: 'Society', value: 'society' },
{ label: 'Survival', value: 'survival' },
{ label: 'Arcana', value: 'arcana' },
@dealloc
dealloc / responsive_layout.dart
Last active February 16, 2026 19:25
A simple widget that selects the approperiate layout depending on the application width
import 'package:flutter/material.dart';
/// The ResponsiveLayout widget handles showing the correct widget based on
/// screen sizes.
///
/// Similar to UI libraries like TailwindCSS it chooses the layout on width.
///
/// Breakpoints:
/// - Mobile: 0px - 959px (default)
/// - Tablet: 960px - 1439px
@dealloc
dealloc / module.json
Last active December 27, 2024 22:38
foundry-vtt-preset
{
"id": "deallocs-preset",
"title": "dealloc's preset",
"version": "1.0.0",
"compatibility": {
"minimum": "12",
"verified": "12"
},
"relationships": {
"requires": [