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
{ | |
"name": "DS4 Custom", | |
"extend": "DualShockGamepad", | |
"extendMultiple": [], | |
"format": "HID ", | |
"beforeRender": "", | |
"commonUsages": [], | |
"displayName": "DS4 Custom", | |
"description": "", | |
"type": "UnityEngine.InputSystem.DualShock.DualShock4GamepadHID, Unity.InputSystem, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null", |
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
alert(`DPR: ${window.devicePixelRatio},\n` + | |
`screen.width: ${window.screen.width}, screen.height: ${window.screen.height},\n` + //Least useful | |
`availWidth: ${window.screen.availWidth}, availHeight: ${window.screen.availHeight},\n` + | |
`innerWidth: ${window.innerWidth}, innerHeight: ${window.innerHeight}`); //Media queries are based on this | |
// To match inner dimensions with screen dimensions on mobiles, you can add this in the header: | |
// <meta name="viewport" content="width=device-width,initial-scale=1"> |
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
//query (q) format: https://support.google.com/mail/answer/7190?hl=en | |
function unreadCnt() { | |
var response = Gmail.Users.Messages.list('me', {'q':'-category:promotions -category:forums -category:social', 'labelIds':['UNREAD', 'INBOX']}); | |
var unreadIds = response.messages; | |
unreadIds = (unreadIds === undefined) ? [] : unreadIds.map(getId); | |
var newCnt = updateSheet(unreadIds); | |
if (newCnt > 0) | |
notifySlack(newCnt); | |