Skip to content

Instantly share code, notes, and snippets.

View NickBolles's full-sized avatar

Nick Bolles NickBolles

View GitHub Profile
@NickBolles
NickBolles / designer.html
Last active August 29, 2015 14:13
designer
<link rel="import" href="../core-drawer-panel/core-drawer-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-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">
<polymer-element name="my-element">
<template>
@NickBolles
NickBolles / designer.html
Last active August 29, 2015 14:13
designer
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icons/core-icons.html">
<script>
PolymerExpressions.prototype.json = function(object) {
return JSON.stringify(object);
}
</script>
@NickBolles
NickBolles / designer.html
Created January 13, 2015 22:50
designer
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="my-element">
<template>
<template>
<ul>
<template repeat="{{items}}" id="t">
<li>{{name}}
<ul>
@NickBolles
NickBolles / designer.html
Last active August 29, 2015 14:13
designer
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-selector/core-selector.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icons/core-icons.html">
<script>
PolymerExpressions.prototype.json = function(object) {
return JSON.stringify(object);
}
@NickBolles
NickBolles / designer.html
Created January 14, 2015 02:51
designer
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-selector/core-selector.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icons/core-icons.html">
<script>
PolymerExpressions.prototype.json = function(object) {
return JSON.stringify(object);
}
@NickBolles
NickBolles / designer.html
Last active August 29, 2015 14:13
designer
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icons/core-icons.html">
<script>
PolymerExpressions.prototype.json = function(object) {
return JSON.stringify(object);
}
</script>
@NickBolles
NickBolles / designer.html
Created January 14, 2015 03:16
designer
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icons/core-icons.html">
<script>
PolymerExpressions.prototype.json = function(object) {
return JSON.stringify(object);
}
</script>
@NickBolles
NickBolles / designer.html
Last active August 29, 2015 14:13
designer
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icons/core-icons.html">
<script>
PolymerExpressions.prototype.json = function(object) {
return JSON.stringify(object);
}
</script>
@NickBolles
NickBolles / getDeepProperty.js
Created February 17, 2016 04:13
Get a deep property of a javascript object. Accepts a property in the form 'foo.bar.deepProp.reallyDeepProp'
/**
* Get the value of a property that is nested in several objects given a string of properties in the form
* 'foo.bar.deepProp.reallyDeepProp' would return the value 'whew that was deep' from the object
* { foo: {
* bar: {
* deepProp:{
* reallyDeepProp: 'whew that was deep'
* }
* }
* }
@NickBolles
NickBolles / seed-data.ts
Last active November 20, 2018 22:25
Feathers seed-data modifications
/* tslint:disable:no-console */
import { join } from 'path';
import { readJsonFileSync } from '@feathers-plus/test-utils';
import { App } from './app.interface'
// !code: imports // !end
// Determine if command line argument exists for seeding data
let ifSeedServices = ['--seed', '-s'].some(str => process.argv.slice(2).includes(str));