- Save as
~/Library/iTunes/Scripts/show cover.scpt
- Run it from iTunes menu → weird unicode symbol I couldn't find → show cover
- Fail and get error message
- Allow iTunes to "control your computer" in macOS System Preferences → Security & Privacy → Privacy → Accessibility
- Try again
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
Copyright (c) 2011 Kir Belevich, http://soulshine.in | |
Permission is hereby granted, free of charge, to any person obtaining | |
a copy of this software and associated documentation files (the | |
"Software"), to deal in the Software without restriction, including | |
without limitation the rights to use, copy, modify, merge, publish, | |
distribute, sublicense, and/or sell copies of the Software, and to | |
permit persons to whom the Software is furnished to do so, subject to | |
the following conditions: | |
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
Copyright (c) 2011 Kir Belevich, http://soulshine.in | |
Permission is hereby granted, free of charge, to any person obtaining | |
a copy of this software and associated documentation files (the | |
"Software"), to deal in the Software without restriction, including | |
without limitation the rights to use, copy, modify, merge, publish, | |
distribute, sublicense, and/or sell copies of the Software, and to | |
permit persons to whom the Software is furnished to do so, subject to | |
the following conditions: | |
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
module.exports = function(grunt) { | |
// https://github.com/tschaub/grunt-newer/issues/52 | |
// https://github.com/gruntjs/grunt/issues/895 | |
var origLogHeader = grunt.log.header; | |
grunt.log.header = function(msg) { | |
if (!/newer(-postrun)?:/.test(msg)) { | |
origLogHeader.apply(this, arguments); | |
} | |
}; | |
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
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>volume to shift+option+volume</name> | |
<identifier>private.volume_to_shift_option_volume</identifier> | |
<autogen> | |
__KeyToKey__ | |
ConsumerKeyCode::VOLUME_UP, | |
ConsumerKeyCode::VOLUME_UP, ModifierFlag::SHIFT_L | ModifierFlag::OPTION_L | |
</autogen> |
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
function isConnectionWorseThan3G() { | |
// https://w3c.github.io/netinfo/#dfn-table-of-maximum-downlink-speeds | |
var mbitsThreshold = 2; | |
var connection = navigator.connection || | |
navigator.mozConnection || | |
navigator.webkitConnection; | |
if (!connection) { | |
return false; | |
} |
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
before_install: | |
- export CHROME_BIN=chromium-browser | |
- export DISPLAY=:99.0 | |
- sh -e /etc/init.d/xvfb start |
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
<div | |
tabIndex="0" | |
ref={onRef} | |
onBlur={onWrapperBlur} | |
> | |
// ... | |
withHandlers(() => { | |
let element = null; |