- High level overview https://yogthos.github.io/ClojureDistilled.html
- An Animated Introduction to Clojure https://markm208.github.io/cljbook/
- Interactive tutorial in a browser https://tryclojure.org/
- Interactive exercises http://clojurescriptkoans.com/
- Clerk notebooks with introductory examples https://github.clerk.garden/anthonygalea/notes-on-clojure
- More interactive exercises https://4clojure.oxal.org/
- Lambda Island tutorials https://lambdaisland.com/
- Functional Programming with Clojure resources https://practicalli.github.io/
1 server, 2 clients
Install Wireguard on all machines.
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.
- Follow standard conventions.
- Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
- Boy scout rule. Leave the campground cleaner than you found it.
- Always find root cause. Always look for the root cause of a problem.
| # 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. |
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!
\
| 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, |
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...
- Create new instance of ImageEnhancer
- Change any
divs within the page (which have a class ofdelayed-image-load) into a transparent GIF using a Base64 encoded string.- We set the
width&heightHTML attributes of the image to the required size - We know what size the image needs to be because each
divhas customdata-attrset server-side to the size of the image - We then set a class of
image-replaceonto each newly created transparent image
- We set the
- We use a 250ms
setTimeoutto unblock the UI thread and which calls a functionresizeImageswhich enhances theimage-replaceimages so their source is now set to a URL whe
Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
| #! /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 |
Use node-inspector to debug hubot!
sudo npm install -g node-inspector
coffee --nodejs --debug $(which hubot)