Skip to content

Instantly share code, notes, and snippets.

View heliohead's full-sized avatar
🏠
Working from home

Helio Oliveira heliohead

🏠
Working from home
View GitHub Profile
; -*- mode: dotspacemacs -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun global-set-keys (key def &rest bindings)
(while key
(global-set-key (kbd key) def)
(setq key (pop bindings)
def (pop bindings))))
### Keybase proof
I hereby claim:
* I am heliohead on github.
* I am heliohead (https://keybase.io/heliohead) on keybase.
* I have a public key whose fingerprint is 3879 A5A6 9ECE 6C45 9301 4B6A EE4D 2089 E743 CC53
To claim this, I am signing this object:
#!/usr/bin/env bash
# bash completion for azk
#
# If you using zsh needed to.... echo 'autoload -U bashcompinit && bashcompinit' >> ~/.zshrc
_azk(){
local cur commands
# lib/tasks/deploy.rake
namespace :deploy do
desc 'Deploy to staging environment'
task :staging do
exec 'mina deploy -f config/deploy/staging.rb'
end
end
<% @uploads.each do |upload| %>
<%= link_to image_tag(upload.img.url(:thumb), rel: "prettyPhoto"), image_path(upload.img.url(:original)) %>
<% end %>
output:
<a href="/system/uploads/imgs/000/000/016/original/pics06.jpg?1402887326"><img alt="Pics06" rel="prettyPhoto" src="/system/uploads/imgs/000/000/016/thumb/pics06.jpg?1402887326" /></a>
How to put "rel" in to anchor? instead image tag.