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!
\
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
| GIMP Palette | |
| Name: Web design | |
| # | |
| 105 210 231 Giant Goldfish | |
| 167 219 219 | |
| 224 228 204 | |
| 243 134 48 | |
| 250 105 0 | |
| 255 255 255 separator | |
| 233 76 111 Cardsox |
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
| 931 | Oxfordshire | 9314125 | 123255 | Larkmead School | Abingdon | 125 | 124 | 20 | SUPP | 8 | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 931 | Oxfordshire | 9314126 | 123256 | John Mason School | Abingdon | 164 | 164 | 25 | 6 | 16 | |
| 931 | Oxfordshire | 9314127 | 123257 | Fitzharrys School | Abingdon | 150 | 149 | 9 | 0 | 11 | |
| 931 | Oxfordshire | 9316076 | 123298 | Our Lady's Abingdon | Abingdon | 57 | 57 | SUPP | SUPP | 16 |
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
| // Load Ember into the global scope by requiring it | |
| require('ember'); | |
| // Go have fun | |
| var app = Ember.Application.create(); |
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
| #!/bin/python | |
| import os | |
| from flask import Flask, Response, request, abort, render_template_string, send_from_directory | |
| import Image | |
| import StringIO | |
| app = Flask(__name__) | |
| WIDTH = 1000 |
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
| /* | |
| See dev dependencies https://gist.github.com/isimmons/8927890 | |
| Compiles sass to compressed css with autoprefixing | |
| Compiles coffee to javascript | |
| Livereloads on changes to coffee, sass, and blade templates | |
| Runs PHPUnit tests | |
| Watches sass, coffee, blade, and phpunit | |
| Default tasks sass, coffee, phpunit, watch | |
| */ |
TLDR: I now add the following snippet to all my Dockerfiles:
# If host is running squid-deb-proxy on port 8000, populate /etc/apt/apt.conf.d/30proxy
# By default, squid-deb-proxy 403s unknown sources, so apt shouldn't proxy ppa.launchpad.net
RUN route -n | awk '/^0.0.0.0/ {print $2}' > /tmp/host_ip.txt
RUN echo "HEAD /" | nc `cat /tmp/host_ip.txt` 8000 | grep squid-deb-proxy \
&& (echo "Acquire::http::Proxy \"http://$(cat /tmp/host_ip.txt):8000\";" > /etc/apt/apt.conf.d/30proxy) \
&& (echo "Acquire::http::Proxy::ppa.launchpad.net DIRECT;" >> /etc/apt/apt.conf.d/30proxy) \
|| echo "No squid-deb-proxy detected on docker host"
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
| #include <MPU6050.h> | |
| #include <I2Cdev.h> | |
| #include <Wire.h> | |
| MPU6050 accelgyro; | |
| int ax, ay, az; | |
| int gx, gy, gz; | |
| int led = 13; |
- Related Setup: https://gist.github.com/hofmannsven/6814278
- Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
- Interactive Beginners Tutorial: http://try.github.io/
- Git Cheatsheet by GitHub: https://services.github.com/on-demand/downloads/github-git-cheat-sheet/
Press minus + shift + s and return to chop/fold long lines!

