Skip to content

Instantly share code, notes, and snippets.

@sgotre
sgotre / ion-scroll-smooth.js
Last active Jan 15, 2019
Scroll an ion-scroll smooth
View ion-scroll-smooth.js
/**
HTML
<ion-scroll #mapScroll scrollX="true" zoom="true" scrollY="true" >
<img #image alt="loading.." src="https;//placehold.it/1000x1000">
</ion-scroll>
View fuck.java
/*
This file is part of the Evolis SDK.
The Evolis SDK is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any later version.
The Evolis SDK is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
View ManyToEntityTransformer.php
<?php
namespace Acme\DemoBundle\Form\DataTransformer;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\PersistentCollection;
use Doctrine\Common\Collections\ArrayCollection;
use Symfony\Component\Form\DataTransformerInterface;
use Symfony\Component\Form\Exception\TransformationFailedException;
@sgotre
sgotre / composer.json
Created Nov 29, 2013
An composer JSON to use Composer update Commands with CloudControl Related to https://gist.github.com/sgotre/7706500
View composer.json
{
"name": "APPNAME",
"description": "Desc",
"version" : "0.0.1",
"require": {
"php": ">=5.3.3"
},
@sgotre
sgotre / cloudcontrol_composer_install.php
Created Nov 29, 2013
How i would like to use Composer Install Commands with CloudControl
View cloudcontrol_composer_install.php
<?php
namespace APPNAME\Composer;
use Composer\Script\Event;
class Install
{
private static $appName = 'APPNAME';