The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: October 8th 2015
- Original post
| <!-- Prevent FOUC (flash of unstyled content) - http://johnpolacek.com/2012/10/03/help-prevent-fouc/ --> | |
| <style type="text/css"> | |
| .no-fouc {display: none;} | |
| </style> | |
| <script type="text/javascript"> | |
| document.documentElement.className = 'no-fouc'; | |
| // add to document ready: $('.no-fouc').removeClass('no-fouc'); | |
| </script> |
| #don't send the nginx version number in error pages and Server header | |
| server_tokens off; | |
| # config to enable HSTS(HTTP Strict Transport Security) https://developer.mozilla.org/en-US/docs/Security/HTTP_Strict_Transport_Security | |
| # to avoid ssl stripping https://en.wikipedia.org/wiki/SSL_stripping#SSL_stripping | |
| add_header Strict-Transport-Security "max-age=31536000; includeSubdomains;"; | |
| # config to don't allow the browser to render the page inside an frame or iframe | |
| # and avoid clickjacking http://en.wikipedia.org/wiki/Clickjacking | |
| # if you need to allow [i]frames, you can use SAMEORIGIN or even set an uri with ALLOW-FROM uri |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Notification Bar</title> | |
| <link rel="stylesheet" type="text/css" href="http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css"> | |
| <style type="text/css"> | |
| .container { | |
| padding: 20px; | |
| } | |
| .notificationBar { |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Toggle Switch</title> | |
| <style> | |
| .switch { | |
| position: relative; | |
| } | |
| .switch label { | |
| width: 55px; |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Customized range slider, pure CSS</title> | |
| <style> | |
| body { | |
| background: #f8f8f8; | |
| } | |
| .slider { | |
| width: 302px; |
| <html> | |
| <head> | |
| <title>Step progress bar</title> | |
| <style type="text/css"> | |
| .container { | |
| width: 100%; | |
| } | |
| .progressbar { | |
| counter-reset: step; | |
| } |
Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.
This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would
| # Install QEMU OSX port with ARM support | |
| sudo port install qemu +target_arm | |
| export QEMU=$(which qemu-system-arm) | |
| # Dowload kernel and export location | |
| curl -OL \ | |
| https://github.com/dhruvvyas90/qemu-rpi-kernel/blob/master/kernel-qemu-4.1.7-jessie | |
| export RPI_KERNEL=./kernel-qemu-4.1.7-jessie | |
| # Download filesystem and export location |
| -- LR imports | |
| local LrApplication = import("LrApplication") | |
| local LrApplicationView = import("LrApplicationView") | |
| local LrBinding = import("LrBinding") | |
| local LrDevelopController = import("LrDevelopController") | |
| local LrDialogs = import("LrDialogs") | |
| local LrExportSession = import("LrExportSession") | |
| local LrFileUtils = import("LrFileUtils") | |
| local LrFunctionContext = import("LrFunctionContext") | |
| local LrLogger = import("LrLogger") |