Skip to content

Instantly share code, notes, and snippets.

View sean0x72's full-sized avatar

Sean Roche sean0x72

  • San Francisco Ca
View GitHub Profile
@sean0x72
sean0x72 / privacy policy.txt
Created January 21, 2022 16:35
Privacy policy
Do not collect any personal information
{
"preview": false,
"init_offset": 0,
"messages": [],
"fields": [
"SRC",
"count"
],
"rows": [
[
12.101.95.37
1.4.137.246
1.20.160.178
1.28.76.174
1.30.119.214
1.31.87.35
1.32.17.120
1.32.54.109
1.32.119.42
1.32.200.98
@sean0x72
sean0x72 / electron-win-drag.js
Created July 10, 2018 06:17
simulating windows areosnap feature when dragging a frameless window without using a draggable region
/*
There is no api for windows areosnap feature that I could find or not way to trigger it with the windows hotkeys.
*/
const titleBar = document.getElementById('title-bar');
const { remote, screen } = require('electron');
let activate = false;
const win = {
offsetX: 0,