Skip to content

Instantly share code, notes, and snippets.

View techniq's full-sized avatar

Sean Lynch techniq

View GitHub Profile
<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-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">
<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-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">
<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-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@techniq
techniq / left-tabs.scss
Created June 26, 2014 13:01
Bootstrap 3 left tabs
.nav-tabs.nav-tabs-left {
border: transparent;
border-right: 1px solid #ddd;
& > li {
margin: 0;
margin-right: -3px;
}
<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>
<style>
:host {
position: absolute;
@techniq
techniq / .bash_profile
Last active August 29, 2015 14:05
Docker Helpers
# Get the last container ID
alias docker-last="docker ps -l"
# Get a container's IP
alias docker-get-ip="docker inspect --format '{{ .NetworkSettings.IPAddress }}'"
# Get a container's image
alias docker-get-image="docker inspect --format '{{ .Image }}'"
# Remove all exited docker containers
@techniq
techniq / Change Network Interface.md
Last active August 29, 2015 14:06
Virtualbox tips
function vagrantId() {
    cat .vagrant/machines/default/virtualbox/id
}

Current interface config

VBoxManage showvminfo `vagrantId` | grep NIC

@techniq
techniq / index.js
Created October 1, 2014 19:38
Find unique object keys across an array of objects
var _ = require('lodash');
var allKeys = _.map(items, function(i) { return Object.keys(i); });
var uniqueKeys = _.uniq(_.flatten(allKeys));