Use node-inspector to debug hubot!
sudo npm install -g node-inspector
coffee --nodejs --debug $(which hubot)
| <?xml version="1.0" encoding="utf-8"?> | |
| <project> | |
| <!-- <meta /> | |
| Use meta nodes to set metadata for your application. The description is ignored | |
| on most targets, but is useful for packaging like Chrome Apps or Opera Widgets. | |
| For compatibility with Android and webOS, the package name must include at least |
Use node-inspector to debug hubot!
sudo npm install -g node-inspector
coffee --nodejs --debug $(which hubot)
| #! /bin/bash | |
| # originaly from http://tinyurl.com/twitch-linux from taladan | |
| # www.youtube.com/user/taladan | |
| # gist created by brodul | |
| INRES="1280x800" # input resolution | |
| #OUTRES="1024x640" # Output resolution | |
| OUTRES="800x500" # Output resolution |
Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
The BBC has a server-side image service which provides developers with multiple sized versions of any image they request. It works in a similar fashion to http://placehold.it/ but it also handles the image ratios returned (where as placehold.it doesn't).
The original BBC News process (and my re-working of the script) follows roughly these steps...
divs within the page (which have a class of delayed-image-load) into a transparent GIF using a Base64 encoded string.
width & height HTML attributes of the image to the required sizediv has custom data-attr set server-side to the size of the imageimage-replace onto each newly created transparent imagesetTimeout to unblock the UI thread and which calls a function resizeImages which enhances the image-replace images so their source is now set to a URL whe| var Twit = require("twit"); | |
| var config = require('./oauthconfig'); | |
| console.log("config:"); | |
| console.log(config); | |
| var T = new Twit({ | |
| consumer_key: config.consumer_key, | |
| consumer_secret: config.consumer_secret, | |
| access_token: config.access_token, |
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!
\
| # Hello, and welcome to makefile basics. | |
| # | |
| # You will learn why `make` is so great, and why, despite its "weird" syntax, | |
| # it is actually a highly expressive, efficient, and powerful way to build | |
| # programs. | |
| # | |
| # Once you're done here, go to | |
| # http://www.gnu.org/software/make/manual/make.html | |
| # to learn SOOOO much more. |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
1 server, 2 clients
Install Wireguard on all machines.