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
#!/bin/bash | |
# create folders. Ensure your directory is writable | |
mkdir -p jpegs/share; | |
# loops .NEF files in this directory. Subdirectories aren't supported | |
for f in *.NEF; | |
do | |
# gets filename and inserts .jpg at the end |
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" } | |
] |
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
# Becareful! This is not tested with every kind of names and isn't ok to use in production. | |
# So, never execute rm in these files. Please. Or the world will end. | |
# | |
# Be sure to run this command in wp-content/uploads. | |
# Please comment if any strange behavior. | |
# creates backup folder | |
mkdir -p ~/bkp | |
# finds thumbs and move then to ~/bkp. You can run any command after the -exec flag. |
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
# add this function to your .bash_profile to be able to use it everywhere | |
# usage: git-ahead-behind [local-branch] [remote-branch] | |
function git-ahead-behind() { | |
branch="`git symbolic-ref --short -q HEAD`"; | |
loc="${1-$branch}"; | |
remote="${2-origin/$loc}"; | |
git fetch $remote &> /dev/null | |
wait | |
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 [email protected]: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
# 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" |
OlderNewer