most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat
# SSL self signed localhost for rails start to finish, no red warnings. | |
# 1) Create your private key (any password will do, we remove it below) | |
$ openssl genrsa -des3 -out server.orig.key 2048 | |
# 2) Remove the password | |
$ openssl rsa -in server.orig.key -out server.key |
<!-- Raven.js Config --> | |
<script src="{{ JS_PATH }}/lib/raven.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
// Ignore list based off: https://gist.github.com/1878283 | |
var ravenOptions = { | |
// Will cause a deprecation warning, but the demise of `ignoreErrors` is still under discussion. | |
// See: https://github.com/getsentry/raven-js/issues/73 | |
ignoreErrors: [ | |
// Random plugins/extensions | |
'top.GLOBALS', |
Software for the Project: | |
Raspbian Wheezy Debian Linux | |
Win32Disk Imager | |
The CanaKit comes with a pre-loaded SD card that includes the same version of Debian Wheezy that I used for this project. However, in an effort to get a little more speed out of the system, I used the 95MB/s Sandisk extreme listed above. It seemed to help, but I did not bench mark it beyond observation. | |
Anyway, lets get down to building a Raspberry Pi Web Kiosk. | |
Step 0: Get all of the hardware. | |
Step 1: Get all of the software. |
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
const Article = require('../../../../app/models/article');
Those suck for maintenance and they're ugly.
<div class="row"> | |
<div class="col-md-2 col-sm-2 col-xs-12"> | |
<button id="authorize-button" style="visibility: hidden" class="btn btn-primary">Authorize</button> | |
</div><!-- .col --> | |
<div class="col-md-10 col-sm-10 col-xs-12"> | |
<script type="text/javascript"> | |
// date variables | |
var now = new Date(); | |
today = now.toISOString(); |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
The basic structure of a React+Flux application (see other examples)
- /src/actions/AppActions.js - Action creators (Flux)
- /src/components/Application.js - The top-level React component
- /src/constants/ActionTypes.js - Action types (Flux)
- /src/core/Dispatcher.js - Dispatcher (Flux)
- /src/stores/AppStore.js - The main store (Flux)
var webpack = require('webpack'), | |
path = require('path'), | |
ExtractTextPlugin = require("extract-text-webpack-plugin"), | |
isDev = process.env.NODE_ENV; | |
var config = { | |
cache: true, | |
resolve: { | |
extensions: ["", ".js", ".css", ".styl"] |