jasonmcaffee
const proxyHandler = {
get(target, name){
console.log(`get for target: `, target, name);
return 'tacos';
},
}
const p = new Proxy({}, proxyHandler);
with (p){
console.log(`document with proxy: `, document);
console.log(`access random property: `, a);
}
https://jsfiddle.net/wf02n4gs/It's really simple to start out:
1) Devote 10 minutes of each day to meditation time. Early morning is best, as your mind is fresh and not as distracted.
2) Find a quiet/non-distracting place to sit in a comfortable position. Legs crossed on the floor or in a chair are fine. You want to keep your back straight to help keep from falling asleep.
3) Focus on the sensation of your breath, wherever it is strongest. Typically this is the tip of the nose, or in the nostril, but chest can work as well. Your mind will become distracted with work, worries, thoughts of food, etc. When this happens, congratulate yourself on noticing that it happened, and bring your attention back to your breath.
That's it! It blows my mind how developing concentration can have such a profound impact on your life.
Here are some good resources for those interested:
http://dharmatreasure.org/wp-content/uploads/beginning-medit...
https://www.amazon.com/Mind-Illuminated-Meditation-Integrati...
https://www.reddit.com/r/TheMindIlluminated/wiki/index#wiki_...
The book is called The Mind Illuminated, and is an absolutely fantastic book on meditation. Super cheap too: https://www.amazon.com/Mind-Illuminated-Meditation-Integrati...
As a developer, I've always used whiteboarding as a way to communicate ideas, architecture, etc. There have been whiteboards in every office of every company I've worked at.
I'd say somewhere around 75% of all interviews I've had for positions at other companies have included whiteboarding.
https://github.com/jasonmcaffee/jQueryMediator
Typical mediators for dom libraries such as jQuery, tend to poorly abstract the underlying API, and lead to an inconvenient, verbose syntax that resonates throughout your code base.
This project provides a jQuery API mediator that can be used in a manner that is indistinguishable from jQuery.
If you find it necessary to use a mediator for jQuery, you should definitely give this library a try.
You can test out the API by going here and selecting Project -> Fork
https://codio.com/jasonmcaffee/jQueryMediator/master/tree/te...
(side note: codio.com is awesome, you should check it out)
Feedback appreciated!