Skip to content

Instantly share code, notes, and snippets.

View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
louim / uploads.yml
Last active Feb 14, 2021
Drop-in playbook for Trellis to push and pull uploads from the server to your local machine.
View uploads.yml
- name: Sync uploads between environments
hosts: web
remote_user: "{{ web_user }}"
project: "{{ wordpress_sites[site] }}"
project_root: "{{ www_root }}/{{ site }}"

Keybase proof

I hereby claim:

  • I am louim on github.
  • I am louim ( on keybase.
  • I have a public key whose fingerprint is 94AC 8D58 9C1E F159 8936 1971 289E 3E82 121D 32B7

To claim this, I am signing this object:

louim / reg_replace.json
Created Apr 22, 2013
Add space around brackets and square brackets using SublimeText RegReplace
View reg_replace.json
"replacements": {
"add_space_around_opening_brackets": {
"find": "\\((?! |\\)|\\n)",
"replace": "( ",
"greedy_scope": true,
"scope_filter": ["source.js,source.php","-comment", "-string.regexp", "-string.quoted.single.php", "-string.quoted.double.php"]
"add_space_around_closing_brackets": {
"find": "(?<! |\\(|\\t)\\)",
louim / nametohash.rb
Created Feb 23, 2013
#take a string and split it in hash, based on letter frequency
View nametohash.rb
#take a string and split it in hash, based on letter frequency
class NameToHash
def initialize(name = "Louis-Michel")
@name = name.downcase
def name_convert
hash =
@name.each_char do |lettre|