When a user selects a text, display a simple button to tweet that text. Maybe will evolve to a JavaScript plugin.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tracker = | |
### | |
Sends Analytics events | |
@param {String} | |
@param {String} | |
@param {String} | |
@returns {Tracker} | |
### | |
trackEvent: (category, action, label) -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
[ | |
{ "keys": ["super+v"], "command": "paste_and_indent" }, | |
{ "keys": ["super+shift+v"], "command": "paste" } | |
] |
CSS Wizardry recently wrote a great post about styling: Contextual Styling: UI Components, Nesting, and Implementation Detail. He showed three ways to solve the problem of implementation details in a component's styles. I want to propose another way to solve this problem, one that uses composition.
The original styles of a .nav-primary
component are:
.nav-primary {
/* This is how the nav should always look: */
margin: 0;
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sync fork with original repository | |
# | |
# Requires an "upstream" remote, pointing to original repo | |
# e.g. `git remote add upstream git@github.com:user/repo.git` | |
alias git-sync-fork="git fetch upstream; git checkout master; git merge upstream/master" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Mounts FTP server | |
open -a Finder ftp://login:password@ftp_host/path | |
# Rsync from there (add --dry-run option to simulate transfer) | |
rsync -arvz --no-o --no-g /Volumes/ftp_host/path/ ./ | |
# WIN! |
jack-in into normal Clojure nREPL. Run:
(require '[cljs.repl :as repl] '[cljs.repl.node :as node])
(compile 'cljs.repl.node)
(cemerick.piggieback/cljs-repl (cljs.repl.node/repl-env))
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Mais usados -- | |
alias ga="git add" | |
alias gc="git commit -m" | |
alias gca="git commit -am" | |
alias gs="git status" | |
alias gp="git push" | |
alias gpl="git pull" | |
# Diff -- | |
alias gd="git diff" |