Skip to content

Instantly share code, notes, and snippets.

View ChristopherDosin's full-sized avatar
:octocat:
Out sick

Christopher Dosin ChristopherDosin

:octocat:
Out sick
View GitHub Profile
.product--details {
.product--header {
padding-bottom:0;
.product--title {
color:@brand-primary;
.unitize(font-size, 24);
}
.product--features {
.unitize-margin(20, 0);
.unitize(padding-bottom, 20);
{extends file="parent:frontend/detail/tabs.tpl"}
{* New tab *}
{block name="frontend_detail_tabs_description" append}
{if $sArticle.attr4}
<a class="tab--link" title="{s namespace="frontend/detail" name='NewTabsDescription'}{/s}" href="#">{s namespace="frontend/detail" name='NewTabsDescription'}{/s}</a>
{/if}
{/block}
{* New Tab container *}
@ChristopherDosin
ChristopherDosin / Laravoice.skema
Created May 4, 2016 12:33
DB Schema for Laravoice
[{"name":"contacts","color":"Red","position":{"x":100,"y":100},"increment":true,"timestamp":true,"softdelete":false,"column":[{"name":"id","type":"increments","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c137","order":0},{"name":"is_organisation","type":"integer","length":"","defaultvalue":"false","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c129","order":1},{"name":"salutation","type":"string","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":true,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c148","order":2},{"name":"first_name","type":"string","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":true,"ui":false,"in":false,"un":false,"fillable":false,"guarded":fals
@ChristopherDosin
ChristopherDosin / Manager.php
Created May 8, 2016 18:45
PHP - WebPush Manager
<?php
namespace GSS\Component\Push;
use Symfony\Component\DependencyInjection\Container;
class Manager
{
const GCM_URL = 'https://android.googleapis.com/gcm/send/';
const MOZ_URL = 'https://updates.push.services.mozilla.com/push/v1/';
private $db;
@ChristopherDosin
ChristopherDosin / index.tpl
Last active October 26, 2016 10:36
frontend/detail/index.tpl
{extends file='parent:frontend/detail/index.tpl'}
{block name='frontend_detail_data_attributes' append}
{* Product attribute 4 *}
{block name='frontend_detail_data_attributes_attr4'}
{if $sArticle.attr4}
<li class="base-info--entry entry-attribute">
<strong class="entry--label">
{s name="DetailAttributeField4Label"}{/s}:
@ChristopherDosin
ChristopherDosin / php_object_to_array.php
Created May 3, 2017 21:34 — forked from victorbstan/php_object_to_array.php
recursively cast a PHP object to array
<?php
/*
This function saved my life.
found on: http://www.sitepoint.com/forums//showthread.php?t=438748
by: crvandyke
It takes an object, and when all else if/else/recursive functions fail to convert the object into an associative array, this one goes for the kill. Who would'a thunk it?!
*/
$array = json_decode(json_encode($object), true);
@ChristopherDosin
ChristopherDosin / custom.js
Created September 15, 2016 15:28
Shopware Altersabfrage Modal
// check if cookie exist
if(!Cookies.get('of_age1')) {
// if not open the modal
$.modal.open('<div style="padding:20px">'+
'<p>Bist du schon über 18 Jahre alt?</p>'+
'<button class="btn">Ja ich bin über 18</button>'+
'</div>',{
title: 'Bist du schon 18?',
additionalClass: 'of_age',
width: 300,
@ChristopherDosin
ChristopherDosin / gist:c0e639615e6ebcfaec2e1ddda30d958b
Created December 8, 2017 09:33
Linux Durchsuche alle Dateien
/to/path grep -Ril "String"
@ChristopherDosin
ChristopherDosin / array.pug
Created January 25, 2018 15:10
Bilder ausgeben aus Array
section.seasonselement
ul
each season in seasons
li
input(type="radio" name="slide")
label
-var seasonPic = season["picture"]
div(style="background-image: url(" + seasonPic["src"]+")")
.accslide(style="background-color: " + season["backgroundColor"])
.content
@ChristopherDosin
ChristopherDosin / gist:0da262095d45806dac383560007ccfbe
Created January 30, 2018 17:46
Cloud9 smarty syntax highlighting
{
"ace": {
....
"custom-types": {
"json()": {
"tpl": "smarty"
}
}