Skip to content

Instantly share code, notes, and snippets.

//
// AlgoForme.h
// AlgoForme
//
// Created by ARIAS Johann on 02/07/2015.
// Copyright (c) 2015 ARIAS Johann. All rights reserved.
//
#ifndef __AlgoForme__AlgoForme__
#define __AlgoForme__AlgoForme__
@choomz
choomz / gist:4361768
Created December 22, 2012 23:19 — forked from reel/gist:1638095
<?php
/*
* This class will give us a simple interface to interact with Datatables
*
* Meant to work with Datatables v1.9
*
* DO NOT FORGET TO ADD A GET() METHOD TO YOUR ENTITIES...
*
@choomz
choomz / gist:4361766
Created December 22, 2012 23:18 — forked from reel/gist:1638094
<?php
/*
* This class will give us a simple interface to interact with Datatables
*
* Meant to work with Datatables v1.9
*
* DO NOT FORGET TO ADD A GET() METHOD TO YOUR ENTITIES...
*
vim /etc/init.d/firewall
#!/bin/bash
### BEGIN INIT INFO
# Provides: firewall
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
@choomz
choomz / collection_widget.twig
Created August 5, 2012 22:21 — forked from cowlby/collection_widget.twig
Customizing form collections in Symfony2
{% block collection_widget %}
{% spaceless %}
<div class="collection">
{% if prototype is defined %}
{% set attr = attr|merge({'data-prototype': block('collection_item_widget') }) %}
{% endif %}
<div {{ block('widget_container_attributes') }}>
{{ form_errors(form) }}
<ul>
{% for rows in form %}