Skip to content

Instantly share code, notes, and snippets.

@danieltnaves
danieltnaves / callback-promise.js
Created July 7, 2019 08:04
Callback x Promise comparison
const sampleCallBack = (callback) => {
setTimeout(() => {
callback('This is an error', undefined)
}, 2000)
}
sampleCallBack((error, result) => {
if (error) {
return console.log(error)
}
@danieltnaves
danieltnaves / theorie.md
Last active August 15, 2021 11:42
Theorieprüfung

Personal Qualifications; Human Risk Factor

What could cause the vehicle to leave the road?

  • ✅ Distraction
  • ✅ Inattention
  • ✅ Tiredness

Drivers often leave the road due to inattention or lack of concentration. Distractions, such as using a mobile phone, can also lead to such driving errors. A third reason for leaving the road is fatigue combined with microsleep.

How can you tell that you are getting tired while you are driving?

  • ✅ Frequent yawning

Topic 1

Topic 2

Topic 3

What does this traffic sign require of you?

  • ✅ Reduction in speed
  • ✅ Greatest alertness
  • ✅ Readiness to brake