This Gist is similar to https://gist.github.com/noteed/8656989 which uses Open vSwitch instead of Tinc.
Download the install.sh
script and run it:
> https://gist.githubusercontent.com/noteed/11031504/raw/install.sh
error: Error running command deploy | |
error: Nodejitsu Error (500): Internal Server Error | |
error: npm http GET http://nj-npm.irisnpm.com/serialport | |
npm http GET http://nj-npm.irisnpm.com/colors | |
npm http GET http://nj-npm.irisnpm.com/kickstart | |
npm http GET http://nj-npm.irisnpm.com/socket.io | |
npm http GET http://nj-npm.irisnpm.com/requirejs | |
npm http 200 http://nj-npm.irisnpm.com/colors | |
npm http GET http://nj-npm.irisnpm.com/colors/-/colors-0.6.0-1.tgz | |
npm http 200 http://nj-npm.irisnpm.com/serialport |
#!/usr/bin/ruby | |
# Create display override file to force Mac OS X to use RGB mode for Display | |
# see http://embdev.net/topic/284710 | |
require 'base64' | |
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay` | |
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten | |
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten |
This Gist is similar to https://gist.github.com/noteed/8656989 which uses Open vSwitch instead of Tinc.
Download the install.sh
script and run it:
> https://gist.githubusercontent.com/noteed/11031504/raw/install.sh
#!/bin/sh | |
docker events --filter 'event=start' --filter 'event=stop' | while read event | |
do | |
container_id=`echo $event | sed 's/.*Z\ \(.*\):\ .*/\1/'` | |
echo $container_id |
This is a simple snippet for adding a loading screen to a Polymer application. It is useful if your Polymer application is rather large and some users may be on a very slow internet connection.
The basic idea is that a very simple (and small) loading screen page will be loaded by the browser. When the browser has fully loaded and displayed the loading page then it will start loading all the files required for the Polymer application.
For a further speed improvement: the loading.css
, and polymerAppLoader.js
files can be placed inline with the index.html
thus reducing the amount of files to be loaded from the server.
filestoload.html
is a seperate file so that the usual grunt/gulp build functions can still be applied as before. Shouldn't require re-writting your build scripts.
Any improvements/comments are encouraged.
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
body.loading #splash { | |
opacity: 1; | |
} | |
#splash { | |
position: absolute; | |
top: 0; |
defmodule MyApp do | |
use Application | |
def start(_type, _args) do | |
import Supervisor.Spec, warn: false | |
children = [ | |
Plug.Adapters.Cowboy.child_spec(:http, MyApp.Router, [], [ | |
dispatch: dispatch | |
]) |
JSONEditor.defaults.custom_validators.push(function(schema, value, path) { | |
let errors = []; | |
if (schema.type !== 'object') { | |
return errors; | |
} | |
let property = ''; | |
let uniqueValues = []; | |
let uniqueFieldsStr = ''; |