Skip to content

Instantly share code, notes, and snippets.

View novascreen's full-sized avatar

Thomas Hermann novascreen

View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<meta property="og:image" content="http://wildwithin.ca/UI/images/iconics/forests/big/iconics-forests.jpg" />
</head>
<body>
<ko-img itemscope itemtype="http://schema.org/ImageObject">
<link itemprop="image" content="http://wildwithin.ca/UI/images/iconics/forests/big/iconics-forests.jpg" />
@novascreen
novascreen / gist:307b247ba412e1208f2a
Last active October 28, 2015 04:19
boxstarter-win-10
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
# Enable-RemoteDesktop
Update-ExecutionPolicy Unrestricted
# Windows Features
cinst -y Microsoft-Hyper-V-All -source windowsFeatures
cinst -y IIS-WebServerRole -source windowsfeatures
# Chocolatey packages
@novascreen
novascreen / index.html
Created May 31, 2015 08:14
Knockout components IE8
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Knockout components IE8</title>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/knockout/3.3.0/knockout-min.js"></script>
<script>
document.createElement('ko-app')
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-scroll-header-panel/core-scroll-header-panel.html">
<polymer-element name="my-element">
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
<!DOCTYPE html>
<html class="no-js">
<head><meta charset="utf-8" /><title>
Corporate site - Notes From the Wild
</title><meta name="description" content="Explore stories of the Wild Within British Columbia, Canada through the eyes of those who have first-hand." /><meta property="og:type" content="website" /><meta property="og:title" content="The Wild Within" /><meta property="og:site_name" content="The Wild Within" /><meta property="og:description" content="Explore stories of the Wild Within British Columbia, Canada through the eyes of those who have first-hand." /><meta property="og:image" content="http://wildwithin.ca/UI/images/overview-forest-and-river.jpg" /><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" /><link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" /><meta name="theme-color" content="#8ea366" /><script>window.DEBUG = true</script>
<script>
@novascreen
novascreen / boxstarter
Last active August 29, 2015 14:18
Boxstarter setup
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
Update-ExecutionPolicy Unrestricted
# Windows Features
cinst -y Microsoft-Hyper-V-All -source windowsFeatures
cinst -y IIS-WebServerRole -source windowsfeatures
# Chocolatey packages
@novascreen
novascreen / knockout.components.distributeInsertionPoints.js
Created March 31, 2015 02:06
Let's you distribute templateNodes to Shadow DOM style insertion points in your knockout components
define(['jquery'], function ($) {
return function (componentInfo) {
var $templateNodes = $(componentInfo.templateNodes)
$(componentInfo.element).find('content[select]').each(function () {
var $placeholder = $(this),
query = $placeholder.attr('select'),
$content = $templateNodes.filter(query)
$templateNodes = $templateNodes.not($content)
$placeholder.replaceWith($content)
<link rel="import" href="../google-map/google-map.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@novascreen
novascreen / designer.html
Created December 7, 2014 03:00
designer
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;