This file contains hidden or 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
import Foundation | |
// 1056 emoji in the range | |
let emoji: [UnicodeScalar] = (0x1F300...0x1F9FF).compactMap { | |
if let scalar = UnicodeScalar($0), scalar.properties.isEmoji { // see also: isEmojiPresentation | |
return scalar | |
} | |
return nil | |
} |
This file contains hidden or 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
var s = '['; | |
'STRING_GOES_HERE'.split ('').map (function (c) { s += '0x'+c.charCodeAt (0).toString(16)+','; }); | |
console.log(s+']'); |
This file contains hidden or 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
var r = R.player, oVol = r.volume(), tf = r._onTrackFinished, ar = r._onAudioReady, n = r._next; | |
r._onTrackFinished = function() { | |
R.logger.log("iree:trackFinished:"+arguments); | |
return .001 !== r.volume() && (oVol = r.volume()), r.volume(.001), tf.apply(this, arguments); | |
}; | |
r._onAudioReady = function() { | |
R.logger.log("iree:audioReady:"+r.playingAd()); | |
return r.playingAd() || r.volume(oVol), ar.apply(this, arguments); |