Skip to content

Instantly share code, notes, and snippets.

Avatar

Erwan Richard erichard

View GitHub Profile
View Slim cropper
The big image :
<img src="/image/800x800/big-image.png">
The thumb (360x270) :
<div class="slim"
style="width:360px; height:270px"
data-ratio="4:3"
data-download="true"
>
View create_method.py
import sublime, sublime_plugin, re
class CreateMethodCommand(sublime_plugin.TextCommand):
# Runs the plugin
def run(self, edit, stub, offset):
self.view.insert(edit, offset, stub)
View .credentials_commun
# /root/.credentials_commun
domain=<your_domain>
user=<your_user>
password=<your_password>
@erichard
erichard / gist:4722171
Created Feb 6, 2013
Doctrine IndexBy utilisation at runtime
View gist:4722171
$doctrine
->getRepository('FarosAdminBundle:User')
@erichard
erichard / parameters.yml
Created Feb 5, 2013
Permet l'ajout de lien sur les noms de fichiers dans la callstack Symfony 2. Liens qui permettent l'ouverture directe dans sublime text.
View parameters.yml
parameters:
# ...
templating.helper.code.file_link_format: "subl://%%f:%%l"
@erichard
erichard / .ctags
Created Sep 24, 2012
Ctags configuration for PHP > 5.4
View .ctags
--recurse
--languages=PHP
--exclude=.svn
--exclude=.git
--exclude="*/_*cache/*"
--exclude="*/_*logs{0,1}/*"
--exclude="*/_*data/*"
--totals=yes
--tag-relative=yes
--PHP-kinds=+cf
You can’t perform that action at this time.