Skip to content

Instantly share code, notes, and snippets.

View th3hamburgler's full-sized avatar

Jim Wardlaw th3hamburgler

View GitHub Profile

Super Drafty

The two leagues of 8 would essentially operate as separate draft leagues. So one team in each league can have Erling. I think the league would need an admin with a team in the division.

Top 3 get prizes in both divisions. 3 relegation and promotion places

A cup competition would have to be manually tracked so players are able to use the same team in the cup. We’d have to do a draw and work out the format and keep track of the results.

Could be home and away legs to stretch the cup out a bit. 16 teams. Think we’d get 7 game weeks out of it with 2 leg rounds then a 1 game final.

@th3hamburgler
th3hamburgler / 2022.md
Last active January 4, 2023 08:17
Music I've discovered/enjoyed in 2022
@th3hamburgler
th3hamburgler / app.css
Created July 26, 2021 15:51
Tailwind safe area inset utilities
@layer utilities {
/* extra helper classes to account for mobile safe areas */
.p-safe {
padding: env(safe-area-inset-top) env(safe-area-inset-right)
env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.px-safe {
padding-left: env(safe-area-inset-left);
padding-right: env(safe-area-inset-right);
@th3hamburgler
th3hamburgler / controller.js
Created June 23, 2021 17:22
will-transition-custom
import Controller from '@ember/controller';
import {action} from '@ember/object';
import {tracked} from '@glimmer/tracking';
export default class FormController extends Controller {
// Tracking
@tracked showExitModal = false;
import Route from '@ember/routing/route';
import { action } from '@ember/object';
export default class FormRoute extends Route {
@action
willTransition(transition) {
if (this.controller.userHasEnteredData &&
!confirm('Are you sure you want to abandon progress?')) {
transition.abort();
} else {
import Ember from 'ember';
export default Ember.Component.extend({
tagName:'form',
});
@th3hamburgler
th3hamburgler / auth-route.js
Created September 21, 2017 16:29
Ember Auth Route
import Ember from 'ember';
const {
Mixin
} = Ember;
/*
* This mixin will prevent an authorised user from
* accessing any route that does not allow their role
*
* Usage:
@th3hamburgler
th3hamburgler / Useful PHP code
Created April 4, 2013 23:09
List of useful php code snippits
// Convert an array into an object
$object = json_decode(json_encode($array), FALSE);
@th3hamburgler
th3hamburgler / Useful Terminal Commands
Last active December 14, 2015 04:29
List of useful terminal commands
# list files in directory including hidden
ls -f
# Remove all files and directories (recursive removal)
rm -rf /tmp/foo
# copy the contents of file to clipboard (location: ~/.ssh/id_rsa.pub)
cat ~/.ssh/id_rsa.pub | pbcopy
# add public key to fortrabbit server (remove all new lines)