Skip to content

Instantly share code, notes, and snippets.

@Mythli
Mythli / webbbee-react-hackathon.md
Last active July 15, 2022 20:26
React Hackathon

Webbee React Hackathon

Problem statement:

The company Construction Machine Management Inc. manages a fleet of diverse building machines and rents them out to building companies. The director Mr. Chechnik manages those with multiple paper staple folders. He would like to manage the inventory on his computer and asks you to develop an application for that purpose.

User stories:

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCzA2dqzEoqNfq7onX+rDXwpruQjoxAYaEMuopzICQrnnWxL4mc0HOk99p4JlTcdTY7g8kRik5I53SJQzZ1Sg5h/mtmma5hZCjnYTgIDQzI7Mo7Pg/AmGjGREYi8PghJyk8Yz1BoL+NEd3aukiMrNAM8ujbR20mdDUxuuqjgXsMVtOP1fg9YBY5xiaCK64teiSqgn8VyN3MASRgQy1bTyu6ABRIfz/SwNNRBObabb3EAeZyo9zBTrroh34/U2cVSTLkRen6LM5+vLXGxjgrOtMNpdF1T0n9bB3Jb9xvjDB3msU8UV8le9LGK9WU5E3k0WA3KiBNmCUA+cQ/LNObv9hj github@mythli.net
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
dist: {
files: {
'build/css.css' : 'design/style/design/design.scss'
}
}
this._cache.init('listSize', null, null);
this._cache.init('nodeCount', null, null);
this._cache.init('settings', ['listSize'], this._calcSettings);
this._cache.init('rowNodes', ['listSize', 'nodeCount', 'settings'], this._calcRowNodes);
this._cache.init('emptySpace', ['listSize', 'rowNodes', 'settings'], this._calcEmptySpace);
this._cache.init('scaledSize', ['emptySpace', 'rowNodes', 'settings'], this._calcScaledSize);
this._cache.init('test', ['emptySpace', 'rowNodes'], this._calcScaledSize);
function CacheSet(owner) {
this.flush();
this.owner = owner;
}
CacheSet.prototype.init = function(name, dependencies, functor) {
this._cache[name] = new Array();
this._cache[name][0] = dependencies;
this._cache[name][1] = functor;
}
(function ( $ ) {
function stuffList(listElement, settings) {
this.listElement = listElement;
this.settings = settings;
this.firstListElement = $(this.listElement).find('li');
this.adjust();
}
stuffList.prototype.listWidth = function() {
#!/bin/sh
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
#
# Copyright 1997-2011 Oracle and/or its affiliates. All rights reserved.
#
# Oracle and Java are registered trademarks of Oracle and/or its affiliates.
# Other names may be trademarks of their respective owners.
#
# The contents of this file are subject to the terms of either the GNU
# General Public License Version 2 only ("GPL") or the Common
@Mythli
Mythli / Exceptions.java
Created September 13, 2012 07:04
Exceptions
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package exceptions1;
import java.util.InputMismatchException;
import java.util.Scanner;
/**
*
#!/bin/bash
#
# Init script for TS3.
# The server configuration will be written to the
# SERVER_CONFIG_FILE .ini file on first start to avoid
# display of server parameters in process listings; Thus
# in order for changes to the config in this file to
# be applied, stop the server, delete the .ini file
# and run this script afterwards;
# Do *not* apply config changes to the .ini directly!
#!/bin/sh
# Copyright (c) 2010 TeamSpeak Systems GmbH
# All rights reserved
COMMANDLINE_PARAMETERS="${2}" #add any command line parameters you want to pass here
D1=$(readlink -f "$0")
BINARYPATH="$(dirname "${D1}")"
cd "${BINARYPATH}"
LIBRARYPATH="$(pwd)"