Skip to content

Instantly share code, notes, and snippets.

View dealloc's full-sized avatar

Wannes Gennar dealloc

View GitHub Profile
@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
Created October 26, 2023 14:48
A simple widget that selects the approperiate layout depending on the application width
import 'package:flutter/material.dart';
/// The ResponsiveLayout widget handles showing the corrct widget based on
/// screen sizes.
///
/// Similar to UI libraries like TailwindCSS it chooses the layout on width.
class ResponsiveLayout extends StatelessWidget {
/// The [Widget] shown when the screen size is mobile, this is the default child.
final Widget mobile;
@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": [