Skip to content

Instantly share code, notes, and snippets.

@h3llr4iser
h3llr4iser / RedsysGatewayConfigurationType.php
Last active August 3, 2020 07:55
redsys bundle configuration in sylius
<?php
namespace AppBundle\Form\Type\Payment;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Validator\Constraints\NotBlank;
class RedsysGatewayConfigurationType extends AbstractType
{
/**
@h3llr4iser
h3llr4iser / App.vue
Created February 28, 2018 08:16 — forked from CaptainJojo/App.vue
<template>
<div id="app">
{{ message }}
</div>
</template>
<script>
export default {
data() {
return {
message: 'Hello World'
@h3llr4iser
h3llr4iser / _usage.md
Created January 2, 2018 19:10 — forked from tbranyen/_usage.md
OpenWeatherMap / Weather Icons integration
  1. Include Weather Icons in your app: https://github.com/erikflowers/weather-icons

  2. Include the below JSON in your application, for example purposes, lets assume it's a global named weatherIcons.

  3. Make a request to OpenWeatherMap:

req = $.getJSON('http://api.openweathermap.org/data/2.5/weather?q=London,uk&callback=?');
@h3llr4iser
h3llr4iser / phpversion.sh
Last active August 30, 2017 10:18 — forked from vjandrea/phpversion.sh
Change php cli version in plesk
#!/bin/sh
printf "Switching php to version 7.1 with symlinks.\n"
printf "Press any key to continue...\n"
read CONTINUE
printf "Creating backups..."
# Backup original binaries