I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
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 notice = (e) => new Notice(e, 5e3); | |
const log = (e) => console.log(e); | |
const logError = (e) => console.error(e); | |
const GOOGLE_BOOKS_API_URL = "https://www.googleapis.com/books/v1/volumes"; | |
const GOOGLE_BOOKS_TITLE_TERM = "intitle:"; | |
function replaceIllegalFileNameCharactersInString(e) { | |
return e.replace(/[\\,#%&\{\}\/*<>?$\'\":@]*/g, ""); | |
} |
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
[ | |
{ | |
"SiteNumber": "50009.*A", | |
"Type": "AIRPORT", | |
"LocationID": "'ADK", | |
"EffectiveDate": "3/2/17", | |
"Region": "AAL", | |
"State": "AK", | |
"StateName": "ALASKA", | |
"County": "ALEUTIANS WEST", |
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
# Node for LinkedList | |
class Node: | |
def __init__(self, value): | |
self.value = value | |
self.next = null | |
# A data structure that is a series of nodes, | |
# and each node points to the next node of the list | |
# Linked lists use the “last-in-first-out” method (similar to a stack)where nodes are added to and deleted from the same end. |
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 dateFormat = "YYYY-MM-DD"; | |
const dateBasisStr = await tp.system.prompt("When is the meeting?"); | |
if (dateBasisStr) { | |
function createMessage(daysBefore, dateFormat, dateBasisStr) { | |
let parseResult; | |
let newDate; | |
let parseResultLink; | |
let nlDatesPlugin = app.plugins.getPlugin('nldates-obsidian'); |
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
https://crontab.guru/ |
Published: 24 Jul 2007.
By: Simone Busoli
Inversion of Control (IoC) and Dependency Injection (DI) are two related practices in software development which are known to lead to higher testability and maintainability of software products. While some people employ them daily in their work, many others still don't know much about them, mostly because they require in the former a shift in the usual thinking process.
This article introduces these notions in a simple and affordable fashion, with a real example which evolves step by step to take advantage from IoC and DI, leveraging the features offered by an open source framework called Castle Project.
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
# brew install switchaudio-osx | |
headphoneson() { | |
SwitchAudioSource -t "input" -s "<NAME OF DEVICE>" | |
SwitchAudioSource -t "output" -s "<NAME OF DEVICE>" | |
} | |
headphonesoff() { | |
SwitchAudioSource -t "input" -s "MacBook Pro Microphone" | |
SwitchAudioSource -t "output" -s "MacBook Pro Speakers" | |
} |
NewerOlder