Skip to content

Instantly share code, notes, and snippets.

@jgimenez
jgimenez / gist:da69495b2ce30f96a065
Created March 4, 2015 14:40
Asana notifications for FluidApp
// For use with fluidapp.com (pro version)
// For Google Chrome/Firefox/Safari: https://greasyfork.org/en/scripts/6118-asana-notifications-favicon
(function() {
// changes the favicon. avoids setting the same favicon twice.
function updateFavicon(unread) {
if(this.lastState != unread) { // ensures we're not changing the icon all the time
window.fluid.dockBadge = unread ? '★' : '';
this.lastState = unread;
}
@ttscoff
ttscoff / itunesicon.rb
Last active January 13, 2022 10:07
Retrieve a 512 x 512px icon for an iOS app
#!/usr/bin/ruby
# encoding: utf-8
#
# Updated 2017-10-25:
# - Defaults to large size (512)
# - If ImageMagick is installed:
# - rounds the corners (copped from @bradjasper, https://github.com/bradjasper/Download-iTunes-Icon/blob/master/itunesicon.rb)
# - replace original with rounded version, converting to png if necessary
#
# Retrieve an iOS app icon at the highest available resolution