As a freelancer, I build a lot of web sites. That's a lot of code changes to track. Thankfully, a Git-enabled workflow with proper branching makes short work of project tracking. I can easily see development features in branches as well as a snapshot of the sites' production code. A nice addition to that workflow is that ability to use Git to push updates to any of the various sites I work on while committing changes.
This file contains hidden or 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
| import serial | |
| import io | |
| import struct | |
| from adafruit_debouncer import Debouncer | |
| PORT = "COM7" # update me to match your setup! | |
| BUTTON_0_MASK = 0b000000000010000 | |
| BUTTON_1_MASK = 0b000000100000000 | |
| BUTTON_2_MASK = 0b000001000000000 |
This file contains hidden or 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
| // fetch ace's language tools module: | |
| var langTools = ace.require('ace/ext/language_tools'); | |
| // data stub: | |
| var sqlTables = [ | |
| { name: 'users', description: 'Users in the system' }, | |
| { name: 'userGroups', description: 'User groups to which users belong' }, | |
| { name: 'customers', description: 'Customer entries' }, | |
| { name: 'companies', description: 'Legal entities of customers' }, | |
| { name: 'loginLog', description: 'Log entries for user log-ins' }, |
Below are many examples of function hoisting behavior in JavaScript. Ones marked as works successfuly print 'hi!' without errors.
To play around with these examples (recommended) clone them with git and execute them with e.g. node a.js
(I may be using incorrect terms below, please forgive me)
This file contains hidden or 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
| ## !! This snippet has been updated, but not tested in practice. It should work, please check / leave comments in case it doesn't. !! ## | |
| # originally from https://groups.google.com/a/webmproject.org/group/webp-discuss/browse_thread/thread/196ac4ea705688d8 | |
| <IfModule mod_rewrite.c> | |
| # TODO: don't forget to put | |
| # AddType image/webp .webp | |
| # in your mods-available/mime.conf | |
| # (though this is optional because we're setting | |
| # the mime type manually in the RewriteRule) |