Skip to content

Instantly share code, notes, and snippets.

View RobertMatkulcik's full-sized avatar
🖥️
Computing....

Róbert Matkulčík RobertMatkulcik

🖥️
Computing....
View GitHub Profile
*/
public function showPagination() {
// Custom rewriting of style. Can be turned off by disabling the variable or customized using variables.
if($this->overwriteStyle) {
echo "
<style>
ul.pagination li a{
background-color: $this->styleColorBg;
color: $this->styleColorText;
border-color: $this->styleColorBorder;
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
@RobertMatkulcik
RobertMatkulcik / RouterFactory.php
Created September 11, 2020 12:46
RouterFactory.php
public function createRouter()
{
$router = new RouteList();
$router[] = new Route('TYPO3/index.php', array(
'presenter' => 'Page',
'action' => 'view'
));
<script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'sk',
includedLanguages: 'cs,en',
layout: google.translate.TranslateElement.InlineLayout.SIMPLE
}, 'google_translate_element');
}
</script>
// DREAM-FACTORY.sk
// thx page URL
// https://www.dream-factory.sk/nakupny-kosik/&objednane
// THX page data
// Ecomm_totalvalue
// Na stránke detailu produktu prepisovať cenu produktu
// Na stránke košíku (v celom nákupnom procese) a na stránke dokončenej objednávky je potrebné
// prepisovať celkovú hodnotu produktov v košíku.
@RobertMatkulcik
RobertMatkulcik / Yablko bashrc aliases
Created February 24, 2019 23:33
Yablko bashrc aliases
# TERMINAL
alias ll="ls -FlAGh"
alias c="clear"
alias h="cd ~/"
# APPS
alias subl="open -a 'Sublime Text 3'"
alias storm="open -a 'PhpStorm'"
alias sublime="subl"
@RobertMatkulcik
RobertMatkulcik / yarcheetsheet
Created December 8, 2018 18:39
Yabluko NPM vs YARN
yarn === npm install
yarn init === npm init
yarn add vue === npm install vue --save
yarn remove vue === npm uninstall vue --save
yarn add vue --dev === npm install vue --save-dev
yarn upgrade === npm update --save
yarn global add vue === npm install vue --global
@RobertMatkulcik
RobertMatkulcik / taskmanager.php
Created September 25, 2018 12:31
EDITOR - TASK MANAGER - registracia tasku
// set up periodic site registration
if(plugins_isEnabled('taskManager') AND plugins_getVersion('taskManager') > 0.00) {
// registering will be handled by a task every week
if(!taskManager_checkTask('registerSite')) {
$task = new Task('registerSite');
$task->setCommand_registerSite();
$task->executionTime = date('Y-m-d', strtotime('+1 day', strtotime(now()))).' 01:00:00';
$task->repeatAfter = '1 day';
$task->source = 'tracker';
$task->description = 'Registers site every day.';
@RobertMatkulcik
RobertMatkulcik / taskmanager.php
Created September 25, 2018 12:31
EDITOR - TASK MANAGER - registracia tasku
// set up periodic site registration
if(plugins_isEnabled('taskManager') AND plugins_getVersion('taskManager') > 0.00) {
// registering will be handled by a task every week
if(!taskManager_checkTask('registerSite')) {
$task = new Task('registerSite');
$task->setCommand_registerSite();
$task->executionTime = date('Y-m-d', strtotime('+1 day', strtotime(now()))).' 01:00:00';
$task->repeatAfter = '1 day';
$task->source = 'tracker';
$task->description = 'Registers site every day.';
@RobertMatkulcik
RobertMatkulcik / debuger.js
Created September 19, 2018 22:03
setTimeout(function(){debugger; }, 3000)
setTimeout(function(){debugger; }, 3000)