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
do shell script "open x-apple.systempreferences:com.apple.Sound-Settings.extension" | |
delay 1 | |
tell application "System Events" to tell process "System Settings" | |
tell table 1 of scroll area 1 of group 2 of scroll area 1 of group 1 of group 2 of splitter group 1 of group 1 of window "Sound" | |
select (row 1 where value of static text 1 of group 1 of UI element 1 is "YOUR MICROPHONE NAME HERE") | |
end tell | |
end tell | |
delay 1 | |
tell application "System Settings" to quit |
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
:root { | |
--xxs: 0.125rem; | |
--xs: 0.25rem; | |
--sm: 0.5rem; | |
--md: 1rem; | |
--lg: 2rem; | |
--xl: 4rem; | |
--xxl: 8rem; | |
} |
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
/** | |
* Assign an ID to an object. Will make sure the ID doesn't already exist. | |
* @param {object} entity Object to which to assign an ID | |
* @param {array} list list of existing entities | |
* @returns {object} | |
*/ | |
export const assignRandomId = (entity, list) => { | |
const idExists = (id) => list.some((entity) => entity.id === id); | |
do { |
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
@namespace url(http://www.w3.org/1999/xhtml); | |
body { | |
background-color: #262626 !important; | |
} | |
body > center > table, input, textarea { | |
background-color: #222 !important; | |
} | |
body > center > table > tbody > tr:first-child > td { |
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
// Place your key bindings in this file to overwrite the defaults | |
[ | |
{ | |
"key": "cmd+/", | |
"command": "editor.action.blockComment", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "shift+alt+a", | |
"command": "-editor.action.blockComment", |
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
/* Increase the font size of the first line of a note. */ | |
.note-detail [data-block]:first-of-type { | |
line-height: 1.5em; | |
font-size: 1.5em; | |
} | |
/* Style the note list scrollbar (in dark mode) in Firefox */ | |
.theme-dark .note-list { | |
scrollbar-color: rgba(255, 255, 255, 0.5) transparent; | |
} |
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
var dom = (selector, el = null) => { | |
if(el) { | |
return Array.from(el.querySelectorAll(selector)); | |
} else { | |
return Array.from(document.querySelectorAll(selector)); | |
} | |
}; | |
dom.first = (selector, el = null) => { | |
if(el) { |
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
Show hidden characters
{ | |
"always_show_minimap_viewport": true, | |
"bold_folder_labels": true, | |
"caret_extra_bottom": 1, | |
"caret_extra_top": 0, | |
"caret_extra_width": 0, | |
"caret_style": "smooth", | |
"color_scheme": "Packages/User/blake-eighties.tmTheme", | |
"enable_tab_scrolling": false, | |
"font_face": "Operator Mono", |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>author</key> | |
<string>Template: Chris Kempson, Scheme: Chris Kempson (http://chriskempson.com)</string> | |
<key>name</key> | |
<string>Base16 Eighties Dark</string> | |
<key>semanticClass</key> | |
<string>base16.eighties.dark</string> |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |