Skip to content

Instantly share code, notes, and snippets.

{
"module_id": 2,
"title": "The Overworld (Atmosphere & Decorations)",
"objective": "Transform your party space into a pixelated wonderland using cheap and creative materials.",
"decorations": [
{
"name": "Blocky Terrain",
"materials": [
"Amazon boxes",
"Brown kraft paper",
{
"module_id": 6,
"title": "The Boss Fight (The Cake Ceremony)",
"objective": "The grand finale before the party wraps up.",
"cake_details": {
"name": "The Dirt Block Cake",
"base": "Standard chocolate sheet cake or cube-shaped cake",
"layers": [
{
"element": "Dirt",
{
"module_id": 3,
"title": "The Hunger Bar (Food & Drink Station)",
"concept": "In Minecraft, players must eat to keep their 'Hunger Bar' full.",
"presentation_notes": [
"Serve food in square containers",
"Place a printed, pixelated food label next to each item"
],
"menu": {
"food_items": [
import 'package:existence/src/app_libs.dart';
import 'package:flutter/material.dart';
class ParallaxGridSpike extends StatefulWidget {
const ParallaxGridSpike({super.key});
@override
State<ParallaxGridSpike> createState() => _ParallaxGridSpikeState();
}
import 'dart:math' as math;
import 'package:flutter/material.dart';
class DropExtraChildren extends StatelessWidget {
final double spacing;
final List<Widget> children;
const DropExtraChildren({
super.key,
required this.spacing,
import 'package:flutter/material.dart';
class DropExtraChildren extends StatelessWidget {
final Axis direction;
final double spacing;
final List<Widget> children;
const DropExtraChildren({
super.key,
this.direction = Axis.horizontal,

import 'package:flutter/material.dart';

void main() { runApp(SomeWidget()); }

class SomeWidget extends StatefulWidget { @override State createState() => SomeWidgetState(); }

@esDotDev
esDotDev / main.dart
Last active August 10, 2023 15:49
flying-neutron-5516
mport 'package:flutter/material.dart';
void main() { runApp(SomeWidget()); }
class SomeWidget extends StatefulWidget { @override State createState() => SomeWidgetState(); }
class SomeWidgetState extends State { int count = 0;
void incrementCount() => setState(() => count++);
@esDotDev
esDotDev / ReactFlashCardGame.ts
Last active December 8, 2022 20:34
Build a flash card game in React to help learn basic addition. It should show a series of 10 questions, one at a time. When all 10 questions have been answered, it should have a game over view showing their score and a button to restart the game.
import React, {useState, useEffect} from 'react';
const FlashCardGame = () => {
const [score, setScore] = useState(0);
const [quesNum, setQuesNum] = useState(0);
const [questions, setQuestions] = useState([]);
useEffect(() => {
generateQuestions();
// Controller
class TodoController {
constructor(api) {
this.api = api;
}
async getAllTodos() {
const todos = await this.api.getAllTodos();
return todos;
}