Skip to content

Instantly share code, notes, and snippets.

View azz0r's full-sized avatar
🎯
Focusing

FedSimulator azz0r

🎯
Focusing
View GitHub Profile
@azz0r
azz0r / benchmark.js
Created January 23, 2019 14:35
benchmark.js
import Benchmark from "benchmark";
import modifiers from "./modifiers";
import data from "./fixtures";
import factory from "../src";
const suite = new Benchmark.Suite();
suite
.add("Factory", function () {
@azz0r
azz0r / FedSimulatorStory.md
Last active November 3, 2019 13:18
FedSimulatorStory.md

Story Mode

Goals

  • Make use of data and simulations to engage users longer
  • Create an interactive bout with branching stories taken from fedsimulatorstory.com
  • Mono repo the app

TODO https://github.com/wojtekmaj/react-calendar - schedule view

{"lastUpload":"2021-03-08T16:28:36.253Z","extensionVersion":"v3.4.3"}
@azz0r
azz0r / fs goals
Last active February 27, 2020 14:52
- [ ] Set budget for brand
- [x] Allow import of previous data
- [ ] Select frequency and date
- [ ] TV shows have a lower cost
- [ ] House shows have a lower cost
- [x] PPV have a cost
- [ ] Calendar vie: add repeating instances of weekly shows
Shows

Fed Sim X

Scope of release

For the 10th version of FedSim I would like to pay homage to Smackdown vs Raw 2006 to 2008. Currently FedSim is a confusing mix of book keeping and calendar cycling. The new versions intent is to become a fun game with the option to go into the old management area and tweak data.

It is also a great time to kill off features that haven't progressed in many releases (shows, bouts) and re-imagine how they might work. Fights (Bout) will use with health bars and be based on stats. Productions (Show) will be more fluid with story or rumble segments, not just fights!

Game time will become linear, progression will be simple. The UI will be less assuming and will give players a clear idea of what to do next.

/* eslint-disable no-undef */
const { Themes } = require('@namespace/themes');
const atomicComponentsMap = require('../fixtures/urls');
const storybookUrl = 'STORYBOOK URL';
const ignoredThemes = [ 'test-theme' ];
const themes = Object.keys(Themes).filter(themeName => !ignoredThemes.includes(themeName));
const atomicComponents = Object.keys(atomicComponentsMap);
describe('namespace VRT component tests', () => {
const MESSAGES = {
notClicked: 'Click to Disable',
clicked: 'Disabled'
};
const Template = (args) => {
const [ disabled, setDisabled ] = useState(false);
const clickHandler = useCallback(() => {
setDisabled(true);
import React from "react";
import Skeleton from '@mui/material/Skeleton';
import { Box, Grid } from "@mui/material";
const skeletonProps = {
animation: "wave",
width: "100%",
variant: "rect"
};
@azz0r
azz0r / tabs
Created September 15, 2022 12:58
import PropTypes from "prop-types"
import { makeStyles, } from "@material-ui/core/styles"
import { track, } from "track"
import useLocalStorageState from "hooks/useLocalStorageState"
import { zIndexes, } from "constants/layers"
import { borderRadius, } from "theme"
import { AppBar, Box, Tabs as MuiTabs, Tab, Typography, } from "@material-ui/core"
export function a11yProps(index) {
import React, { useReducer, useEffect } from 'react';
const userReducer = (state, action) => {
switch (action.type) {
case 'MOVE_UP':
return { ...state, position: [state.position[0] - 1, state.position[1]] };
case 'MOVE_DOWN':
return { ...state, position: [state.position[0] + 1, state.position[1]] };
case 'MOVE_LEFT':
return { ...state, position: [state.position[0], state.position[1] - 1] };