This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on run {input, parameters} | |
tell application "Spotify" | |
set t_artist to artist of current track | |
set t_name to name of current track | |
end tell | |
display notification t_name & " by " & t_artist | |
return input | |
end run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Sometimes activity stream is so long | |
// it's not possible to keep up with it | |
// and everyone deserves a prop for their effort | |
var propCounter = 0; | |
var interval = setInterval(function() { | |
var $propers = $('.give_prop'), $proper; | |
if ($propers.length) { | |
$proper = $propers.first(); | |
console.log($proper.parents('.stream_item').find('.stream-author').text()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Calculate bounds for the whole map or just the shifted area | |
* @param {Boolean} reset Force calculation for the whole map | |
* @return {Array} Array of map bounds arrays | |
*/ | |
function calculateNewBounds(reset) { | |
var curSW = currentBounds.getSouthWest(), | |
curNE = currentBounds.getNorthEast(), | |
curNW = new google.maps.LatLng(curNE.lat(), curSW.lng()), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//MIXINS | |
.borderRadius (@radius: 5px) { | |
-webkit-border-radius: @radius; | |
-moz-border-radius: @radius; | |
border-radius: @radius; | |
} | |
.gradientImage (@fallback, @stop1, @stop2) { | |
background-color: @fallback; | |
background-image: -webkit-linear-gradient(top, @stop1, @stop2); |