Skip to content

Instantly share code, notes, and snippets.

View abe33's full-sized avatar

Cédric Néhémie abe33

  • Clermont-Ferrand, France
View GitHub Profile
@abe33
abe33 / agnoster-abe.zsh-theme
Created May 21, 2014 14:38
Custom Agnoster Theme
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).
#

My Atom Config

Atom Editor Screenshot

Community Packages
├── Stylus@3.1.0
├── Zen@0.16.4
├── atom-eco@0.2.0
├── atom-material-syntax@0.4.6
@abe33
abe33 / haml_embedded_languages.xml
Last active August 29, 2015 13:56
Enable color highlighting of Ruby, JavaScript, CoffeeScript and Sass source code within haml files in SublimeText
<!--
Add the code below into your 'Ruby Haml.tmLanguage' file.
The file should be located in your sublime packages path.
If you don't have one, take the 'Ruby.sublime-package' file
from the 'Installed Packages' directory, change the file extension
to zip and extract it into your 'Packages' directory.
Edit: The previous version failed to match all the cases with a single begin/end pair.
This version uses two rules instead of one. One for embedded language that starts without
@abe33
abe33 / form.html.haml
Last active January 2, 2016 19:28
nested_form and strong_parameters issues with 2 nested models forms. The customs gem (https://github.com/inkstak/customs) is used to provide basic resource flow in controllers (hence the `resource_params` method)
-# Here resource is the timeline
= simple_nested_form_for resource, url: [resource] do |form|
%table.nested_form
= form.fields_for :marker_sections, wrapper: false do |section_form|
%tr.fields
%td
%table.nested_form
%thead
%tr.section