Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| /* (Optional) Define RGB settings in your config.h */ | |
| #ifdef RGBLIGHT_ENABLE | |
| # define RGBLIGHT_ANIMATIONS | |
| # define RGBLIGHT_HUE_STEP 8 | |
| # define RGBLIGHT_SAT_STEP 8 | |
| # define RGBLIGHT_VAL_STEP 8 | |
| # define RGBLIGHT_LIMIT_VAL 150 | |
| # define RGBLIGHT_SLEEP | |
| // # define RGBLIGHT_LAYERS // We do NOT need the layers! | |
| #endif |
| #!/bin/bash | |
| # This script programmatically moves around the windows on my screens. | |
| # The JavaScript can be prototyped in Looking Glass (ALT+F2 lg). The documentation of MetaWindow can be found here: | |
| # https://developer.gnome.org/meta/stable/MetaWindow.html | |
| set -e | |
| if [ -z "$1" ]; then | |
| echo "Please give a configuration (1-5)." | |
| exit 1; | |
| fi |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| var express = require('express'); | |
| var app = express.createServer(); | |
| app.set('view engine', 'jade'); | |
| app.set('port', parseInt(process.env.PORT || 5000, 10)); | |
| app.get('/', function(req, res) { | |
| res.render('index'); |