Skip to content

Instantly share code, notes, and snippets.

View Sebobo's full-sized avatar
:shipit:
Thinking about things

Sebastian Helzle Sebobo

:shipit:
Thinking about things
View GitHub Profile
@Sebobo
Sebobo / responsive-sass-sample.scss
Created November 22, 2013 13:07
Responsive SASS
$page-width: 970px;
$mobile: "only screen and (max-width: #{$page-width})";
// As mixin
@mixin mobile() {
@media #{$mobile} {
@content;
}
}
@Sebobo
Sebobo / gist:0b95d85e6e98de70d1dc
Created February 10, 2015 20:14
Yag Rondell Sample Config
plugin.tx_yag.settings.themes.rondell.javaScriptSettings.rondell {
center {
top = 400
left = 400
}
fadeTime = 1000
autoRotation {
delay = 10000
}
@Sebobo
Sebobo / SortRecursiveOperation.php
Created April 6, 2015 18:46
Sortoperation for nodes in TYPO3 Neos
<?php
namespace Vendor\Package\TypoScript\FlowQueryOperations;
/* *
* This script belongs to the TYPO3 Flow package "Vendor.Package". *
* *
* It is free software; you can redistribute it and/or modify it under *
* the terms of the GNU Lesser General Public License, either version 3 *
* of the License, or (at your option) any later version. *
* *
@Sebobo
Sebobo / Ie8.scss
Created April 14, 2015 17:36
Making the Bootstrap grid work with IE8
@charset 'UTF-8';
// Import your variables
@import 'my/variables';
// Import bootstrap variables
@import 'bootstrap/variables';
// IE 8
// -----------------------------------------------------------------------------
@Sebobo
Sebobo / Styles.scss
Last active August 29, 2015 14:22
Inline editable bootstrap buttons with Neos
.neos-backend .btn {
user-select: initial;
-moz-user-select: initial;
-ms-user-select: initial;
}
@Sebobo
Sebobo / fabfile.py
Created August 3, 2015 10:49
Example fabfile for Neos
from __future__ import with_statement
from fabric.api import *
from fabric.contrib.console import confirm
env.use_ssh_config = True
env.user = 'username'
env.hosts = ['hostname']
release_dir = '/var/www/path/to/website'
remote_context = 'Production'
@Sebobo
Sebobo / FrontendNodeRoutePartHandler.php
Last active October 2, 2015 08:52
Route part handler allowing to ignore nodes
<?php
namespace Foo\Bar\Routing;
/* *
* This script belongs to the TYPO3 Flow package "Foo.Bar". *
* */
use TYPO3\Flow\Annotations as Flow;
use TYPO3\Flow\Security\Authorization\AccessDecisionManagerInterface;
use TYPO3\TYPO3CR\Domain\Model\NodeInterface;
@Sebobo
Sebobo / SortRecursiveOperation.ts2
Last active March 2, 2016 09:09
Sort operation for a set of nodes based on their index
<?php
namespace Foo\Bar\TypoScript\FlowQueryOperations;
use TYPO3\Eel\FlowQuery\Operations\AbstractOperation;
use TYPO3\Flow\Annotations as Flow;
use TYPO3\TYPO3CR\Domain\Model\NodeInterface;
use TYPO3\Eel\FlowQuery\FlowQuery;
/**
@Sebobo
Sebobo / backend.js
Created March 7, 2016 09:32
Detect backendlayout in Neos and reload page
(function () {
/**
* Backend specific scripts
*/
"use strict";
var lastPageLayout,
layouts = {
newsletter: 'typo3:Vendor.Package:Newsletter'
};
@Sebobo
Sebobo / Settings.yaml
Created April 6, 2016 05:25
Disable session timeout in development context
##
# Development/Settings.yaml
#
TYPO3:
Flow:
security:
session:
inactivityTimeout: 0 # Disable session timeout while developing