Skip to content

Instantly share code, notes, and snippets.

View stephanecoinon's full-sized avatar

Stéphane Coinon stephanecoinon

View GitHub Profile
@stephanecoinon
stephanecoinon / form_macros.php
Created October 27, 2015 21:59
Macros for Laravel forms
/*
* Macros for Laravel forms
*
* Laravel 4: Illuminate\Html\FormBuilder
* Laravel 5: Collective\Html\FormFacade
*/
/*
* Display validation error for a particular form field
*/
@stephanecoinon
stephanecoinon / keyboard-shortcuts-office.md
Last active May 3, 2019 23:16
MS Office/Google Drive Keyboard Shortcuts

Office 365 (OS X)

  • Tell me what to do now (action fuzzy search): Option+Q
  • Headings: Cmd+Option+1/2/3/4
  • Bullet list: Cmd+Period
  • All styles: Cmd+Shift+S

NPM

List globally installed packages npm list -g --depth=0

svn export https://github.com/twbs/bootstrap/trunk/docs
@stephanecoinon
stephanecoinon / Preferences.sublime-settings
Created July 29, 2014 20:43
My sublime text preferences
{
"bold_folder_labels": true,
"color_scheme": "Packages/daylerees-themes/sublime/peel.tmTheme",
"ensure_newline_at_eof_on_save": true,
"font_size": 11,
"highlight_line": true,
"highlight_modified_tabs": true,
"show_encoding": true,
"show_line_endings": true,
"theme": "peel.sublime-theme",
@stephanecoinon
stephanecoinon / .aliases
Last active June 2, 2016 21:47
Aliases
# Just download this file to your home directory and load it from your ~/.zshrc or ~/.bashrc
### Configuration
# Determine current shell
SHELLNAME=${SHELL##*/}
SHELLCONFIG="~/.${SHELLNAME}rc"
# Set editor
export EDITOR='subl -w'
@stephanecoinon
stephanecoinon / VBA collectionToArray
Created December 11, 2013 20:47
VBA converts a collection to array
' Source: http://www.iwebthereforeiam.com/iwebthereforeiam/2004/06/excel-vba-code-to-convert-coll.html
Function collectionToArray(c As Collection) As Variant()
Dim a() As Variant: ReDim a(0 To c.Count - 1)
Dim i As Integer
For i = 1 To c.Count
a(i - 1) = c.Item(i)
Next
collectionToArray = a
End Function