Skip to content

Instantly share code, notes, and snippets.

View jion's full-sized avatar

Manuel Schnidrig jion

View GitHub Profile
@jion
jion / MyClass.js
Last active January 11, 2017 20:40
Base template for create OOP classes in Javascript ES5
{ // MyClass
var MyClass = function () {
var self = this;
setupPublicProperties({
publicVariable1: 'foo',
publicVariable2: 'bar',
});
setupPrivateProperties({
@jion
jion / .vimrc
Created December 16, 2016 15:20
set nocompatible " be iMproved
filetype on
"""""""""""""""""""
" Begin Plug Block (https://github.com/junegunn/vim-plug)
"""""""""""""""""""
function! BuildYCM(info)
" info is a dictionary with 3 fields
" - name: name of the plugin
" - status: 'installed', 'updated', or 'unchanged'
@jion
jion / rot13Reader.go
Created February 9, 2016 23:38
My solution to "rot13Reader" excercise of "A Tour of Go"
package main
import (
"io"
"os"
"strings"
)
type rot13Reader struct {
r io.Reader
@jion
jion / PersonaController.php
Last active November 3, 2015 21:06
Controller basico + Servicio Symfony (php)
<?php
namespace Bundle\PersonaBundle\Controller;
class PersonaController extends Controller
{
public function nuevaAction (Request $request)
{
// Validar permisos de usuario
if ($this->get('security.context')->isGranted(Permiso::AUTH_CREAR_PERSONA) === false) {
Verifying that +mschnidrig is my blockchain ID. https://onename.com/mschnidrig