Skip to content

Instantly share code, notes, and snippets.

View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
parent: Ember.computed(function() {
var parent = this.get('store').createRecord('parent', {
id: 'Edna',
name: 'Edna'
});
@BenjaminBeck
BenjaminBeck / adapters.album.js
Last active Jan 15, 2019 — forked from vigneshrajarr/controllers.application.js
demo ember-models-table async filter/sort
View adapters.album.js
import DS from "ember-data";
export default DS.RESTAdapter.extend({
//namespace: 'api',
host: 'https://jsonplaceholder.typicode.com',
//coalesceFindRequests: true
handleResponse: function handleResponse(status, headers, payload, requestData) {
let result = this._super(...arguments);
result = {album: result}
return result;
View components.my-component.js
import Ember from 'ember';
export default Ember.Component.extend({
});
View .htaccess
RewriteEngine on
RewriteCond %{HTTP_COOKIE} !^.*cookieconsent_status=dismiss.*$ [NC]
RewriteCond %{HTTP_USER_AGENT} !^.*AltaVista.*$
RewriteCond %{HTTP_USER_AGENT} !^.*Googlebot.*$
RewriteCond %{HTTP_USER_AGENT} !^.*msnbot.*$
RewriteCond %{HTTP_USER_AGENT} !^.*Slurp.*$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteBase /
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@BenjaminBeck
BenjaminBeck / FlexFluidContentTemplate.html
Created Feb 24, 2017
FAL Image placeholder until first saving with display conditions
View FlexFluidContentTemplate.html
<flux:field.custom displayCond="REC:NEW:true" name="savehint">
<div class="alert alert-info" role="alert">
<h2>Bitte zuerst speichern.</h2>
<p>Danach können Bilder zugeordnet werden.</p>
</div>
</flux:field.custom>
<flux:field.inline.fal name="image" label="Bild" displayCond="FIELD:parentRec.uid:>:1" minItems="0" maxItems="1" collapseAll="true">
@BenjaminBeck
BenjaminBeck / RegisterIndexerFluidcontent.php
Last active Mar 13, 2017
ke_search Indexer for fluidcontent (2017: this is replaced by: https://github.com/BenjaminBeck/bdm_kesearchindexer_flux )
View RegisterIndexerFluidcontent.php
<?php
namespace BDM\BdmThemeBootstrap\Hooks\KeSearch;
use TYPO3\CMS\Core\Utility\GeneralUtility;
/**
*
*/
class RegisterIndexerFluidcontent {
View gist:8519011
<?php
/**
*
*
* @package list
* @license http://www.gnu.org/licenses/gpl.html GNU General Public License, version 3 or later
*
*/
View gist:8518877
<?'user' => array(
'exclude' => 0,
'label' => 'LLL:EXT:list/Resources/Private/Language/locallang_db.xml:tx_list_domain_model_article.user',
'config' => array(
'items' => array (
array('',0),
),
'type' => 'select',
'foreign_table' => 'fe_users',
'minitems' => 0,
@BenjaminBeck
BenjaminBeck / Div.php
Created Oct 29, 2013
TYPO3 Link ViewHelper
View Div.php
<?php
/***************************************************************
* Copyright notice
*
* (c) 2012-2013 Andy Hausmann <ah@sota-studio.de>
* (c) 2012-2013 Xaver Maierhofer <xaver.maierhofer@xwissen.info>
*
* All rights reserved
*