A script to fix EDID problems on external monitors in macOS.
-
Connect only the problem display.
-
Create this directory structure (if it doesn't already exist):
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Document</title> | |
| <script> | |
| console.log('head') | |
| </script> |
s/Daylight/GitHub/<< < > >> next to top date text| # Install | |
| # via http://askubuntu.com/questions/510056/how-to-install-google-chrome | |
| wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
| sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' | |
| sudo apt-get update | |
| sudo apt-get install google-chrome-stable | |
| # Update |
| // Find the difference between two lists of objects | |
| const xor = <T>( | |
| listA: T[], | |
| listB: T[], | |
| keys: (keyof T)[] // which obj keys to use for uniqueness check | |
| ): T[] => { | |
| // el -> string (for map key) | |
| const stringify = el => keys.reduce((str, key) => str + el[key], '') |
| { | |
| "folders": [ | |
| { | |
| "path": "/home/alexb/depot-ui" | |
| } | |
| ], | |
| "settings": { | |
| "js_prettier": { | |
| "debug": false, | |
| "prettier_cli_path": "/home/alexb/depot-ui/node_modules/.bin/prettier", |
| new Promise((resolve, reject) => setTimeout(() => resolve('yay'), 100)) | |
| .then(val => console.log(val)) // yay | |
| .catch(err => console.error(err)) // (never hit) | |
| .then(() => console.log('finally 1')); | |
| new Promise((resolve, reject) => setTimeout(() => reject('nay'), 200)) | |
| .then(val => console.log(val)) // (never hit) | |
| .catch(err => console.error(err)) // nay | |
| .then(() => console.log('finally 2')); |
| { | |
| "caret_extra_width": 1, | |
| "caret_style": "phase", | |
| "color_scheme": "Packages/User/SublimeLinter/Oceanic Next (SL).tmTheme", | |
| "copy_with_empty_selection": false, | |
| "drag_text": false, | |
| "enable_tab_scrolling": false, | |
| "ensure_newline_at_eof_on_save": false, | |
| "font_face": "Source Code Pro", | |
| "font_options": |
| // varyd/Math.js | |
| export function lerp(min, max, val) { /*...*/ } | |
| export function etc(yes, no, maybe) { /*...*/ } | |
| export function coinFlip() { /*...*/ } | |
| // varyd/geom.js | |
| export function thing(vector, angle) { /*...*/ } | |
| export function thang(voctor, dangle) { /*...*/ } | |
| // varyd/index.js |
| // ActivityMapFrame.tsx | |
| componentWillReceiveProps(nextProps: Props) { | |
| // Destroy & re-create with config opts if they've changed | |
| if (this.props.is3D !== nextProps.is3D) { | |
| this.map.destroy(); | |
| this.loadMap(nextProps); | |
| return; | |
| } | |
| // Update edges/devices if they've changed |