Skip to content

Instantly share code, notes, and snippets.

@import "compass/utilities/sprites/base";
// General Sprite Defaults
// You can override them before you import this file.
$emblem-sprite-base-class: ".emblem-sprite" !default;
$emblem-sprite-dimensions: false !default;
$emblem-position: 0% !default;
$emblem-spacing: 0 !default;
$emblem-repeat: no-repeat !default;
@overcome
overcome / gist:0c273a8557213ba989f6
Created January 25, 2016 07:12
CSS - 垂直居中 (SCSS)
.foo {
$width: 500px;
$height: 300px;
width: $width;
height: $height;
position: absolute;
top: 50%;
left: 50%;
margin-left: - $width/2;
margin-top: - $height/2;
@overcome
overcome / app.js
Created April 26, 2016 03:42 — forked from shazron/app.js
RequireJS with Cordova example (app.js)
requirejs(['cordova.js'],
function () {
// start of require
// cordova is now available globally
var exec = cordova.require('cordova/exec');
var app = {
// Application Constructor
@overcome
overcome / install_typo3_62_ft3.sh
Created January 13, 2017 10:00 — forked from NamelessCoder/install_typo3_62_ft3.sh
Bash script to install TYPO3 6.2 LTS (dev) and FluidTYPO3 extensions (dev)
#!/usr/bin/env bash
# phase one: core install
# Pro tip: edit the script and use this repository instead to try out the
# codename "Awesome Ocelot" project - which should be even faster than the
# bare 6.2 core: https://github.com/NamelessCoder/TYPO3.CMS.git
# Live demo of "Awesome Ocelot" is at http://staging.namelesscoder.net
git clone https://github.com/TYPO3/TYPO3.CMS.git --depth 1
@overcome
overcome / gist:2e8f86ec2d4a609b1d6b363eee03fb72
Created March 1, 2017 19:07 — forked from maddy2101/gist:5668835
TCA, Model and Fluid Partial to display FAL images as a simple gallery using TYPO3 and Extbase 6.1
SQL:
images int(11) unsigned DEFAULT '0',
=======================================================
TCA
....
'images' => array(
'exclude' => 0,
'label' => 'images',
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
'images',
@overcome
overcome / UsingAjaxUrl.html
Created March 7, 2017 05:59 — forked from helhum/UsingAjaxUrl.html
Using TS rendering
{namespace t=Helhum\TyposcriptRendering\ViewHelpers}
<button class="ajax-button" data-ajaxUri="{t:uri.ajaxAction(action: 'foo', controller: 'bar') -> f:format.htmlentities()}">
Click Me
</button>
<script type="text/javascript">
jQuery.ajax(
jQuery(".ajax-button").data("ajaxUri")
).done(
@overcome
overcome / gulpfile.js
Created March 11, 2017 09:53 — forked from torgeir/gulpfile.js
Example gulpfile.js
// Load plugins
var gulp = require('gulp'),
sass = require('gulp-ruby-sass'),
autoprefixer = require('gulp-autoprefixer'),
minifycss = require('gulp-minify-css'),
jshint = require('gulp-jshint'),
uglify = require('gulp-uglify'),
imagemin = require('gulp-imagemin'),
rename = require('gulp-rename'),
clean = require('gulp-clean'),
@overcome
overcome / flexform.xml
Created March 23, 2017 06:21 — forked from alrnz/flexform.xml
TypoLink in flexform for TYPO3 7.6
<settings.link>
<TCEforms>
<exclude>1</exclude>
<label>
Link to Page or a File or a Content-Element
</label>
<config>
<type>input</type>
<size>30</size>
<eval>trim</eval>
@overcome
overcome / gist:8b56a9196a5633e89716deec1db1b8d7
Created March 24, 2017 03:12
[typo3][composer][config] Config token in composer.json
You can solve it by creating a new github token to authenticate your composer requests.
You can do this two ways:
By defining your token globally:
composer config --global github-oauth.github.com <TOKEN>
Or by defining your token in a project composer.json:
{
"config": {
@overcome
overcome / IndexUserFunc.php
Created April 12, 2017 10:29 — forked from htuscher/IndexUserFunc.php
TYPO3 Solr userFunc IndexQueue
<?php
namespace Vendor\Extension\Solr\UserFunc;
class IndexUserFunc
{
/**
* This value is automatically inserted by userFunc handling
* @var \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer
*/