Skip to content

Instantly share code, notes, and snippets.

{
"html_attributions" : [],
"next_page_token" : "CoQC8gAAAJKZgs_o5q0Ei5GjY8xFHF_-MwPe0RIwVAx3wob5WBUxEsaR_BOYkmv-Mr_S8WNMniN9ZpNOgnlJlECm_KHjF8jyg3c919GZvXeq0lzcK20nJB3y-0sAD3ARhMivSV3X6TX29D30dzs3sU52qrQIHGjeuHiehJr7JMzVeE7F0im-E0otckxoJvogBsaxGBnQZf7kacVJn6WBWjMVhZ5goeBHMl-VvOZIfMUUCZhUGkk5HZdNo_YRIUAWpF2XJ3fnsrSm41O4MWLzL0hXLwWStegVWdTrKoQe2nF6nFwkC_PUDIvD3EU6_trtf6aRFDD9jg9eWlpSpnraMaKc312L0fkSECJBiamUxrHknscoX35N_7oaFD9dCJaMMY5eDeGNdG2YUVUyV9ru",
"results" : [
{
"geometry" : {
"location" : {
"lat" : 38.731829,
"lng" : -9.146993999999999
}
@manuelcabral
manuelcabral / gist:e7438ca8e8994de7bdfb
Created September 12, 2014 17:45
Cloudfront invalidations in Node.js with aws-sdk
aws = require('aws-sdk')
accessKeyId = ""
secretAccessKeydistribution = ""
region = 'us-east-1'
distribution = ""
items = [ '/index.html' ]
cf = new aws.CloudFront(new aws.Config({ accessKeyId, secretAccessKeydistribution, region }))
invalidations = items.map(encodeURI)
@manuelcabral
manuelcabral / gist:5bd849bd23f341300df7
Created August 27, 2014 15:56
Facebook like button bubble position
<html>
<head>
<style>
.fbcontainer { position:absolute; }
.top { top: 10px;}
.bottom { bottom: 10px;}
.left { left: 10px;}
.right { right: 10px;}
</style>
</head>
@manuelcabral
manuelcabral / gist:6365383
Created August 28, 2013 12:17
Compass mixin to simulate text-stroke using text-shadow
@import "compass/css3/text-shadow";
@mixin text-stroke-with-shadow($thickness, $color, $blur) {
@include text-shadow( $thickness 0 $blur $color,
(-$thickness) 0 $blur $color,
0 $thickness $blur $color,
0 (-$thickness) $blur $color,
($thickness/2) ($thickness/2) $blur $color,
((-$thickness)/2) ((-$thickness)/2) $blur $color,
($thickness/2) ((-$thickness)/2) $blur $color,
@manuelcabral
manuelcabral / switch_inside_object.coffee
Last active December 16, 2015 18:59
Switch inside object literal
param = 'foo'
someObject =
someKey: 'some value'
someOtherKey: switch param
when 'foo' then "something"
when 'bar' then "something else"
when 'fooo' then "something different"
else "some other thing"