Skip to content

Instantly share code, notes, and snippets.

View EtienneLem's full-sized avatar

Etienne Lemay EtienneLem

View GitHub Profile
@EtienneLem
EtienneLem / react-dom.js
Created May 6, 2014 13:50
A JavaScript example
Hello = React.createClass({
componentWillMount: function() { console.log('componentWillMount') },
componentDidMount: function() { console.log('componentDidMount') },
render: function() {
return DOM.div({ class: 'container' }, [
DOM.span({
data: {
foo: { bar: 'baz' },
much: { much: 'fun' },
# GIFme
# This is a really simple/stupid command line (specifically zsh) function to copy public Dropbox links to your gifs.
#
# Put this somewhere in your .zshrc and replace {{YOUR_PUBLIC_ID}} with your public Dropbox ID (find this by going to dropbox.com, finding a file in your "Public" folder, selecting it and clicking "Copy public link", and looking for the long number in the URL)
#
# This assumes your gifs (and other images you want to share) are stored in your Dropbox "Public" folder in a directory called "gifs".
# This whole thing ain't pretty, and it could be much better. But it's a start.
#
# Usage:
# "$ gifme yup.gif" will copy a public link to "{{Dropbox Directory}}/Public/gifs/yup.gif"
@EtienneLem
EtienneLem / .zshrc
Last active March 11, 2021 16:30
Homebrew, CocoaPods & rbenv ARM64 / X86_64 configuration
# Homebrew
case $(uname -m) in
"arm64")
export PATH="/opt/homebrew/bin:$PATH"
export RBENV_ROOT="/opt/homebrew/opt/rbenv"
;;
"x86_64")
export PATH="/usr/local/bin:$PATH"
export RBENV_ROOT="~/.rbenv"
;;