- What/Why JSON schema
- Apply to rails model validation
- Test your API endpoint with schema matcher
- Homework for a curious reader
- References
| #!/usr/bin/env bash | |
| set -o errexit | |
| set -o nounset | |
| set -o xtrace | |
| sudo cat > /usr/local/bin/json2yaml <<EOT | |
| #!/usr/bin/env ruby | |
| require 'json' | |
| require 'yaml' |
Today, single page web apps are driving many websites that we use each and every day. Instead of having your browser request a new web page for each and every action you perform on a web page, single page web apps may load all in one request to smoothly and quickly transition with every action you perform.
When building single page web apps, you may decide to retrieve all of the HTML, CSS and Javascript with one single page load or dynamically load these resources as the user moves about your site. Either way, it can be a pain to bundle all of these assets together for the end user to download from your web server. This is where webpack comes into play.
webpack does all of the heavy lifting bundling all of your HTML, CSS and Javascript together. If you write your site all from scratch or depend on dependencies from npm, webpack takes care of packaging it all together for you. It has the ability to take your single page web app, cut out all of the code you don't need, then packa
| #!/bin/sh | |
| # Get the current non-leaf focused node | |
| NODE=$(bspc query -N -n focused.\!leaf) | |
| if [ $? -ne 0 ]; then | |
| # No non-leaf, then select parent of focused node | |
| NODE=$(bspc query -N -n @parent) | |
| fi |
First, add pry-rails to your Gemfile:
https://github.com/rweng/pry-rails
gem 'pry-rails', group: :developmentThen you'll want to rebuild your Docker container to install the gems
| #stop all containers: | |
| docker kill $(docker ps -q) | |
| #remove all containers | |
| docker rm $(docker ps -a -q) | |
| #remove all docker images | |
| docker rmi $(docker images -q) |
| # Setting Up ExpressVPN (OpenVPN) On OSMC | |
| ## References | |
| - [Brian Hornsby' Kodi OpenVPN plugin](http://brianhornsby.com/blog/how-to-setup-your-vpn-client) | |
| - [Install and Configure OpenVPN on OSMC/Kodi](https://nerddrivel.com/2016/03/25/install-and-configure-openvpn-on-osmckodi/) | |
| - [ExpressVPN - High speed, ultra secure, and easy to use. Instant setup.](https://www.expressvpn.com/) | |
| - [[HOWTO] OSMC/Rasp Pi as OpenVPN client](https://discourse.osmc.tv/t/howto-osmc-rasp-pi-as-openvpn-client/1844/71) | |
| ## Steps |
| # add this into application.rb | |
| initializer_file = Rails.root.join('config', 'initializers', 'my_initializer.rb') | |
| reloader = ActiveSupport::FileUpdateChecker.new([initializer_file]) do | |
| load initializer_file | |
| end | |
| ActiveSupport::Reloader.to_prepare do | |
| reloader.execute | |
| end |
- http://absulit.com/portfolio/demo/webvr/001/
- https://www.clicktorelease.com/code/polygon-shredder/vr/ #positional
- https://www.clicktorelease.com/tmp/threejs/webvr-physics/ #positional #input #haptic
- https://janusweb.metacade.com/ https://github.com/jbaicoianu/janusweb/
- https://jzitelli.github.io/poolvr/
- https://kuva.io/block-background/ #positional #input
- https://www.shadertoy.com/results?filter=vr
- https://vr-batted-ball-vis.herokuapp.com/index.html
| #! /usr/bin/env python3 | |
| """Fixing bluetooth stereo headphone/headset problem in debian distros. | |
| Workaround for bug: https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1577197 | |
| Run it with python3.5 or higher after pairing/connecting the bluetooth stereo headphone. | |
| This will be only fixes the bluez5 problem mentioned above . | |
| Licence: Freeware |