Skip to content

Instantly share code, notes, and snippets.

View SimonWpt's full-sized avatar

Bertram Simon SimonWpt

View GitHub Profile
@SimonWpt
SimonWpt / example.sass
Created May 26, 2012 19:50
SASS mixin graycity
img
// graycity($gray, $opacity)
@include graycity(0.5, 0.7)
@SimonWpt
SimonWpt / isometric_text.html
Created June 24, 2012 17:48
Isometric Text
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Isometric Text</title>
<meta name="author" content="Bertram Simon / Agentur Simon / http://www.agentur-simon.de">
<style>
/*
*
@SimonWpt
SimonWpt / extTables.php
Created June 26, 2012 15:41
Wenn man in TYPO3 die Seiteneigenschaften um den Typ Datei/PDF erweitern will...
<?php
/**
* Overriding $TCA
*
* The TYPO3 Configuration Array (TCA) is defined by the distributed tables.php and ext_tables.php files.
* If you want to extend and/or modify its content, you can do so with scripts like this.
* Or BETTER yet - with extensions like those found in the typo3conf/ext/ or typo3/ext/ folder.
* Extensions are movable to other TYPO3 installations and provides a much better division between things! Use them!
*
* Information on how to set up tables is found in the document "Inside TYPO3" available as a PDF from where you downloaded TYPO3.
@SimonWpt
SimonWpt / localconf.php
Created September 8, 2012 18:47
TYPO3 - Weiche für 404 oder FE-Login
$TYPO3_CONF_VARS['SYS']['curlUse'] = '1';
$TYPO3_CONF_VARS['FE']['pageNotFound_handling'] = 'USER_FUNCTION:fileadmin/scripts/pageNotFoundHandling.php:user_pageNotFound->pageNotFound';
<NotepadPlus>
<InternalCommands />
<Macros>
<Macro name="Trim Trailing and save" Ctrl="no" Alt="yes" Shift="yes" Key="83">
<Action type="2" message="0" wParam="42024" lParam="0" sParam="" />
<Action type="2" message="0" wParam="41006" lParam="0" sParam="" />
</Macro>
<Macro name="Delete t3conf comments" Ctrl="no" Alt="no" Shift="no" Key="0">
<Action type="3" message="1700" wParam="0" lParam="0" sParam="" />
<Action type="3" message="1601" wParam="0" lParam="0" sParam="\#\#\s+INSTALL\s+SCRIPT\s+.*$" />
@SimonWpt
SimonWpt / example.sass
Created October 15, 2012 07:53
Small sass-mixin for the use of retina-images
body
background: url("bg.png") no-repeat
@include image-2x("bg.png", 100px, 25px)
@SimonWpt
SimonWpt / vendorize.css
Created October 18, 2012 14:33
example for vendor-prefix and rem
.test {
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
-ms-border-radius: 5px;
-o-border-radius: 5px;
border-radius: 5px;
-webkit-border-radius: 0.5rem;
-moz-border-radius: 0.5rem;
-ms-border-radius: 0.5rem;
-o-border-radius: 0.5rem;
@SimonWpt
SimonWpt / responsive-background-image.sass
Created April 16, 2013 13:37
Responsive Backgroundimage
img.bg
/* Set rules to fill background
min-height: 100%
min-width: 1024px
/* Set up proportionate scaling
width: 100%
height: auto
/* Set up positioning
position: fixed
top: 0
@SimonWpt
SimonWpt / t3_empty_temp.sql
Created September 26, 2013 13:38
TYPO3: Löschen der Tabelleninhalte des Caches, der indexed_search und des Crawlers
TRUNCATE TABLE cache_extensions;
TRUNCATE TABLE cache_hash;
TRUNCATE TABLE cache_imagesizes;
TRUNCATE TABLE cache_md5params;
TRUNCATE TABLE cache_pages;
TRUNCATE TABLE cache_pagesection;
TRUNCATE TABLE cache_typo3temp_log;
TRUNCATE TABLE index_fulltext;
TRUNCATE TABLE index_grlist;
TRUNCATE TABLE index_phash;
@SimonWpt
SimonWpt / foo.t3
Created November 9, 2013 17:41
Include special record in TYPO3
temp.foo = RECORDS
temp.foo {
tables = tt_content
source = 1
}