Skip to content

Instantly share code, notes, and snippets.

@Skyl0
Skyl0 / mainmenu.java
Created June 21, 2017 14:34
Why doesn't this implementation of Runnables (want to run it at a later stage) work at all? ( SEE The Important Part at the bottom)
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.skyit.consolemenu.helper;
import com.skyit.consolemenu.model.MenuItem;
import java.util.Scanner;
Plan hash value: 1691833290
-------------------------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
-------------------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 7 | 1085 | 6 (34)| 00:00:01 |
| 1 | HASH UNIQUE | | 7 | 1085 | 6 (34)| 00:00:01 |
| 2 | NESTED LOOPS | | | | | |
| 3 | NESTED LOOPS | | 7 | 1085 | 5 (20)| 00:00:01 |
| 4 | VIEW | VW_DTP_BA8ECEFB | 7 | 91 | 4 (25)| 00:00:01 |
//BINDS
bind KP_PLUS "buy defuser"
bind KP_HOME "buy p250"
bind KP_UPARROW "buy vest"
bind KP_PGUP "buy vesthelm"
bind KP_LEFTARROW "buy mp7"
bind KP_5 "buy ak47;buy m4a1-s"
bind KP_RIGHTARROW "buy awp"
bind KP_END "buy flashbang"
bind KP_DOWNARROW "buy hegrenade"
//BINDS
bind KP_PLUS "buy defuser"
bind KP_HOME "buy p250"
bind KP_UPARROW "buy vest"
bind KP_PGUP "buy vesthelm"
bind KP_LEFTARROW "buy mp7"
bind KP_5 "buy ak47;buy m4a1-s"
bind KP_RIGHTARROW "buy awp"
bind KP_END "buy flashbang"
bind KP_DOWNARROW "buy hegrenade"
// Server config
sv_cheats 1
mp_limitteams 0
mp_autoteambalance 0
mp_roundtime 60
mp_roundtime_defuse 60
mp_maxmoney 60000
mp_startmoney 60000
mp_freezetime 0
mp_buytime 9999
@Skyl0
Skyl0 / my.ts
Created September 2, 2015 07:54
TypoScript to Unwrap Textpic Elements at certrain colPos
tt_content = CASE
tt_content {
key.field = colPos
#10 = CASE
10 {
#key.field = CType
stdWrap.innerWrap.cObject >
stdWrap.innerWrap2 >
dataWrap >
prepend >
<div class="tx-y7-fahrzeugdatenbank-parts">
<f:debug>{fahrzeug}</f:debug>
<p class="clearfix">
<f:for each="{fahrzeug.bild}" as="bilder" >
<f:debug>{bilder}</f:debug>
<a href="{bilder.originalResource.publicUrl}" data-lightbox="fz_db" data-title="{fahrzeug.name}" style="float:right; margin-left:10px;">
<f:image src="{bilder.originalResource.publicUrl}" width="270" />
</a>
{fahrzeug.beschreibung}<br/>
@Skyl0
Skyl0 / constant.txt
Created March 25, 2015 11:40
in my main Constant Template File
plugin.tx_y7fahrzeugdatenbank {
settings {
144 = 1
145 = 2
146 = 3
}
}
@Skyl0
Skyl0 / gist:550f63ede27029e203ac
Created March 25, 2015 10:06
var_dump output of findByCategoryAction
TYPO3\CMS\Extbase\Persistence\Generic\QueryResultprototypeobject (3 items)
0 => Y7group\Y7Fahrzeugdatenbank\Domain\Model\Fahrzeugprototypepersistent entity (uid=1, pid=143)
name => 'Löschzug' (9 chars)
beschreibung => 'Ein Löschzug' (13 chars)
bild => TYPO3\CMS\Extbase\Domain\Model\FileReferenceprototypepersistent entity (uid=12, pid=143)
datenblatt => TYPO3\CMS\Extbase\Domain\Model\FileReferenceprototypepersistent entity (uid=13, pid=143)
kategorie => Y7group\Y7Fahrzeugdatenbank\Domain\Model\FzKategorieprototypepersistent entity (uid=1, pid=143)
name => 'Löschfahrzeuge' (15 chars)
beschreibung => 'Löschfahrzeuge Beschreibung' (28 chars)
bild => NULL
@Skyl0
Skyl0 / FahrzeugController.php
Created March 25, 2015 07:59
My Controller for my template (VehicleController)
<?php
namespace Y7group\Y7Fahrzeugdatenbank\Controller;
/***************************************************************
*
* Copyright notice
*
* (c) 2015 Marc Ernst <ernst.marc@gmail.com>, Y7 group
*