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
// Empty | |
module.exports = { | |
images: [ | |
`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAADCCAYAAADzRP8zAAAMQGlDQ1BJQ0MgUHJvZmlsZQAASImVVwdYU8kWnluSkJDQAghICb0JIlICSAmhBZDebYQkQCgxBoKKHVlUcC2oWMCGrooodpodsbMo9r5YUFDWxYJdeZMCuu4r35vvmzv//efMf86cO3PvHQDUT3DF4hxUA4BcUb4kJtifkZScwiB1AwLQAVTgASy5vDwxKyoqHMAy2P69vLsBEFl71UGm9c/+/1o0+YI8HgBIFMRp/DxeLsQHAcCreGJJPgBEGW8+NV8sw7ACbQkMEOKFMpyhwFUynKbAe+U2cTFsiFsBUKFyuZIMANQuQ55RwMuAGmp9EDuJ+EIRAOoMiH1ycyfzIU6F2AbaiCGW6TPTftDJ+Jtm2pAml5sxhBVzkReVAGGeOIc7/f9Mx/8uuTnSQR9WsFIzJSExsjnDvN3Knhwmw1SIe0VpEZEQa0H8QciX20OMUjKlIfEKe9SQl8eGOQO6EDvxuQFhEBtCHCTKiQhX8mnpwiAOxHCFoNOE+Zw4iPUgXijIC4xV2mySTI5R+kLr0yVslpI/x5XI/cp8PZBmx7OU+q8zBRylPqZWmBmXCDEFYosCYUIExGoQO+Zlx4YpbcYUZrIjBm0k0hhZ/BYQxwhEwf4KfawgXRIUo7Qvzc0bnC+2KVPIiVDi/fmZcSGK/GCtPK48fjgX7LJAxIof1BHkJYUPzoUvCAhUzB3rFojiY5U6H8T5/jGKsThFnBOltMfNBDnBMt4MYpe8gljlWDwhHy5IhT6eLs6PilPEiRdmcUOjFPHgy0A4YIMAwABSWNPAZJAFhO29Db3wTtETBLhAAjKAADgomcERifIeEbzGgkLwJ0QCkDc0zl/eKwAFkP86xCquDiBd3lsgH5ENnkKcC8JADryXykeJhrwlgCeQEf7DOxd |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Programmatic Drag Event</title> | |
<style> | |
#drag-source { | |
width: 200px; | |
height: 200px; | |
background-color: lightgreen; | |
margin-bottom: 20px; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Color Change Boxes</title> | |
<style> | |
body, html { | |
margin: 0; | |
padding: 0; |
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
// Modules to control application life and create native browser window | |
const { app, BrowserWindow } = require('electron') | |
const childProcess = require('child_process') | |
async function createWindow () { | |
childProcess.execSync('osascript -e \'tell application "Finder" to activate\''); | |
// Create new window | |
w = new BrowserWindow({ | |
type: 'panel', |
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
const url = new URL('https://api.tidesandcurrents.noaa.gov/api/prod/datagetter'); | |
url.search = new URLSearchParams({ | |
station: '9414290', | |
product: 'water_temperature', | |
time_zone: 'lst', | |
units: 'english', | |
date: 'today', | |
application: 'GGTC', | |
format: 'json' | |
}).toString(); |
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
// Open up the Slack Developer Tools by entering "/slackdevtools" | |
// in the message input. | |
// First, run this. The client will reload. | |
slackDebug.enable() | |
// Then, get channels. See "filterChannels" to remove channels | |
// beginning with a certain prefix. | |
(function getMyChannels() { | |
const allChannels = slackDebug.storeInstance.getStateByTeamId(slackDebug.activeTeamId).channels.__proto__ |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP --> | |
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src https://js.stripe.com 'self'; connect-src https://api.stripe.com; frame-src https://js.stripe.com https://hooks.stripe.com"> | |
<meta http-equiv="X-Content-Security-Policy" content="default-src 'self'; script-src https://js.stripe.com 'self'; connect-src https://api.stripe.com; frame-src https://js.stripe.com https://hooks.stripe.com"> | |
<title>Hello World!</title> | |
<script src="https://js.stripe.com/v3" async></script> | |
</head> |
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
{ | |
"master": { | |
"electron": "33.2.0", | |
"chromium": "130.0.6723.118", | |
"date": "2024-11-08" | |
}, | |
"4.41.97": { | |
"electron": "33.0.2", | |
"chromium": "130.0.6723.59", | |
"date": "2024-10-23" |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Hello World!</title> | |
<link rel="stylesheet" type="text/css" href="./styles.css"> | |
</head> | |
<body> | |
<h1>Hello World!</h1> | |
<!-- All of the Node.js APIs are available in this renderer process. --> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Hello World!</title> | |
<link rel="stylesheet" type="text/css" href="./styles.css"> | |
</head> | |
<body> | |
<h1>Hello World!</h1> | |
<!-- All of the Node.js APIs are available in this renderer process. --> |
NewerOlder