Skip to content

Instantly share code, notes, and snippets.

View gabrieljo's full-sized avatar

Gabriel Jo gabrieljo

  • Home
View GitHub Profile
@gabrieljo
gabrieljo / gist:18c053d0537e64a5711b4d3d8983c429
Created August 10, 2016 14:18 — forked from jcsrb/gist:1081548
get avatar from google profiles, facebook, gravatar, twitter, tumblr
function get_avatar_from_service(service, userid, size) {
// this return the url that redirects to the according user image/avatar/profile picture
// implemented services: google profiles, facebook, gravatar, twitter, tumblr, default fallback
// for google use get_avatar_from_service('google', profile-name or user-id , size-in-px )
// for facebook use get_avatar_from_service('facebook', vanity url or user-id , size-in-px or size-as-word )
// for gravatar use get_avatar_from_service('gravatar', md5 hash email@adress, size-in-px )
// for twitter use get_avatar_from_service('twitter', username, size-in-px or size-as-word )
// for tumblr use get_avatar_from_service('tumblr', blog-url, size-in-px )
// everything else will go to the fallback
// google and gravatar scale the avatar to any site, others will guided to the next best version
@gabrieljo
gabrieljo / gist:3f79b5dec8da045acfd11e3372e4c396
Last active June 28, 2016 10:40
Side Bar Enhancements shot cut key
[
{ "keys": ["ctrl+alt+n"] , "command": "side_bar_new_file" },
{ "keys": ["f2"] , "command": "side_bar_rename" },
{ "keys": ["f12"] , "command": "side_bar_open_in_browser"},
{ "keys": ["ctrl+alt+m"] , "command": "side_bar_move" },
{ "keys": ["ctrl+alt+d"] , "command": "side_bar_delete" },
{ "keys": ["ctrl+shift+c"] , "command": "color_pick" }, //color picker
{ "keys": ["ctrl+."] , "command": "run_emmet_action", "args":{"action": "balance_inward"}},
]