Pure JavaScript Zoom and Pan, taken from http://phrogz.net/tmp/canvas_zoom_to_cursor.html
A Pen by TechSlides on CodePen.
| const highlight = (fuseSearchResult: any, highlightClassName: string = 'highlight') => { | |
| const set = (obj: object, path: string, value: any) => { | |
| const pathValue = path.split('.'); | |
| let i; | |
| for (i = 0; i < pathValue.length - 1; i++) { | |
| obj = obj[pathValue[i]]; | |
| } | |
| obj[pathValue[i]] = value; |
Pure JavaScript Zoom and Pan, taken from http://phrogz.net/tmp/canvas_zoom_to_cursor.html
A Pen by TechSlides on CodePen.
Steps:
Create Digital Ocean Droplet with Dokku v0.3.16 on 14.04 image
Login into the droplet and Update local settings.
sh -c "echo 'LANG=en_US.UTF-8\nLC_ALL=en_US.UTF-8' > /etc/default/locale"
reboot
Note: these are pretty rough notes I made for my team on the fly as I was reading through some pages. Some could be mildly inaccurate but hopefully not terribly so. I might resort to convenient fiction & simplification sometimes.
My top contenders, mostly based on popularity / community etc:
Mostly about MVC (or derivatives, MVP / MVVM).
| <html> | |
| <head> | |
| <title>AudioPlayground</title> | |
| <style>* {box-sizing: border-box;}</style> | |
| </head> | |
| <body> | |
| <h3>AudioPlayground</h3> | |
| <p>If you're happy and you know it, clap your hands!</p> | |
| <script> | |
| var Recording = function(cb){ |
Install portaudio using homebrew (or method of your choice)
brew install portaudiocreate $HOME/.pydistutils.cfg using the include and lib directories of your portaudio install:
[build_ext]
A lot of these are outright stolen from Edward O'Campo-Gooding's list of questions. I really like his list.
I'm having some trouble paring this down to a manageable list of questions -- I realistically want to know all of these things before starting to work at a company, but it's a lot to ask all at once. My current game plan is to pick 6 before an interview and ask those.
I'd love comments and suggestions about any of these.
I've found questions like "do you have smart people? Can I learn a lot at your company?" to be basically totally useless -- everybody will say "yeah, definitely!" and it's hard to learn anything from them. So I'm trying to make all of these questions pretty concrete -- if a team doesn't have an issue tracker, they don't have an issue tracker.
I'm also mostly not asking about principles, but the way things are -- not "do you think code review is important?", but "Does all code get reviewed?".
| import markdown as mkdn | |
| from django import template | |
| from django.utils.safestring import mark_safe | |
| register = template.Library() | |
| @register.filter() | |
| def markdown(value): |