Skip to content

Instantly share code, notes, and snippets.

View azz0r's full-sized avatar
🎯
Focusing

FedSimulator azz0r

🎯
Focusing
View GitHub Profile
@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
{"lastUpload":"2021-03-08T16:28:36.253Z","extensionVersion":"v3.4.3"}
@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

@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 () {
import React, { Component } from 'react';
import styled, { ThemeProvider } from 'styled-components';
import { modularScale, hiDPI } from 'polished';
import Grid from 'styled-components-grid';
import defaultState from './context';
const extraWrestler = {
id: 3,
name: 'Shawn Michaels'
case "STORE_MATCH_DATA":
{
let bouts = Object.assign([], action.payload.matches)
bouts = bouts.filter(item => !item.resultStored && item.simulated)
bouts.forEach(bout => {
const winningTeamId = bouts.wrestlers.find(item => item.winner)
const losingTeamId = bouts.wrestlers.find(item => item.loser)
if (winningTeamId && losingTeamId) {
import React from 'react';
import { expect } from 'chai';
import shallow from 'react-test-renderer/shallow';
import sinon from 'sinon';
import Page from '../src/pages/dashboard/dashboard';
import HeaderOne from '../src/components/h1/h1';
import Ranking from '../src/components/ranking/ranking';
import Wrestlers from "./wrestlers.json"
//src/services/parts/custom-elements-es5-adapter.js
(function() {
'use strict';
function initialise () {
'use strict';
if (!window.customElements) return;
var a = window.HTMLElement,
b = window.customElements.define,
c = window.customElements.get,
@azz0r
azz0r / double-slash
Created June 24, 2017 21:51
Regex to remove // comments
(/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+/)|(//.*)
@azz0r
azz0r / react-lifecycle.js
Created February 6, 2017 09:43
React.js Lifecycle Events
// Invoked once before first render
componentWillMount() {
console.log('componentWillMount');
// Calling setState here does not cause a re-render
}
// Invoked once after the first render
componentDidMount(){
console.log('componentDidMount');
}