Skip to content

Instantly share code, notes, and snippets.

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

Rafael Felini rafaelfelini

🏠
Working from home
View GitHub Profile
@rafaelfelini
rafaelfelini / ltm.clj
Created December 15, 2011 00:09 — forked from paulosuzart/mkhash.clj
Makes a clojure Map from a given coll.
(defn ltm
"Makes a clojure map from a given collection. lst should have an even number of elements"
[lst]
(reduce merge
(map (fn [l] { (first l) (second l) } ) (partition 2 lst))))
;kudos to @paulosuzart
;user=> (ltm '(:a 1 :b 2 :c 3 :d 4))
;{:d 4, :c 3, :b 2, :a 1}
@rafaelfelini
rafaelfelini / ltm.clj
Created December 15, 2011 00:27 — forked from paulosuzart/ltm.clj
Makes a clojure Map from a given coll.
(defn ltm
"Makes a clojure map from a given collection. lst should have an even number of elements"
[lst]
(reduce merge
(map (fn [l] {(keyword (str (first l))) (second l)}) (partition 2 lst))))
;;kudos to @paulosuzart
;;user=> (ltm '(:a 1 :b 2 :c3 :d 4))
;;{:c3 :d, :b 2, :a 1}
@rafaelfelini
rafaelfelini / ux_referencias
Created February 13, 2012 13:53 — forked from eshiota/ux_referencias
UX para Developers - Referências
# UX para Developers - Referências
## Soluções prontas
- Bootstrap from Twitter (http://twitter.github.com/bootstrap)
- jQuery Mobile (http://www.jquerymobile.com)
- HTML 5 Boilerplate (http://html5boilerplate.com)
## Ferramentas
@rafaelfelini
rafaelfelini / s3.sh
Last active August 29, 2015 14:22 — forked from chrismdp/s3.sh
# You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine
# This is how I upload my new Sol Trader builds (http://soltrader.net)
# Based on a modified script from here: http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash
S3KEY="my aws key"
S3SECRET="my aws secret" # pass these in
function putS3
{
path=$1