Skip to content

Instantly share code, notes, and snippets.

View xavierbriand's full-sized avatar

Xavier Briand xavierbriand

View GitHub Profile
@xavierbriand
xavierbriand / for1.php
Last active April 24, 2018 19:01
PHP Loops benchmark
<?php
for ($i = 0; $i < $boundary; $i++) {
$acc++;
}
{
"bitwise" : true,
"camelcase" : true,
"curly" : true,
"eqeqeq" : true,
"es3" : true,
"forin" : true,
"freeze" : true,
"immed" : true,
"indent" : 4,
@xavierbriand
xavierbriand / heritage.base.twig
Created January 4, 2012 23:10
Twig training 2
<html>
<head>
{% block head %}
<link rel="stylesheet" href="style.css" />
<title>{% block title %}{% endblock %} Sensio</title>
{% endblock %}
</head>
<body>
<div>{% block content %}{% endblock %}</div>
<div>
@xavierbriand
xavierbriand / base.twig
Created December 20, 2011 14:51
Twig training
{# manipulation des variables #}
{% set my_var = 'test' %}
<p>
{{ my_var }}
</p>
<hr />
" Alt-right/left to navigate forward/backward in the tags stack
map <M-Left> <C-T>
map <M-Right> <C-]>