Skip to content

Instantly share code, notes, and snippets.

@steelx
steelx / getGravatarUrl
Created December 2, 2013 16:03
AngularJS get Gravatar url on email
var ajinkyaApp = angular.module('ajinkyaApp', []);
ajinkyaApp.controller('EditProfileController', function($scope){
$scope.user = {};
$scope.getGravatarUrl = function(email) {
// MD5 (Message-Digest Algorithm) by WebToolkit
//
var defaultGravatarPic = 'http://www.gravatar.com/avatar/000.jpg?s=200';
@istepanov
istepanov / gist:3950977
Created October 25, 2012 07:00
Remove PHPStorm settings from Mac OS X 10.8 Mountain Lion
#!/usr/bin/sh
rm -rf "$HOME/Library/Preferences/WebIde40"
rm -rf "$HOME/Library/Caches/WebIde40"
rm -rf "$HOME/Library/Application Support/WebIde40"
rm -rf "$HOME/Library/Logs/WebIde40"