Skip to content

Instantly share code, notes, and snippets.

View sebastianhomeier's full-sized avatar

Sebastian Homeier sebastianhomeier

View GitHub Profile
@sebastianhomeier
sebastianhomeier / _breakpoint.scss
Created November 3, 2014 23:48
SCSS mixin for inline media queries (breakpoints)
/* #Breakpoint Mixin
================================================== */
$breakpoints: (
tiny: 320px,
extra-small: 480px,
small: 768px,
medium: 1020px,
large: 1200px
<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="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
<polymer-element name="my-element">
@sebastianhomeier
sebastianhomeier / index.html
Created November 28, 2015 16:32
Time (hh:mm:ss) input with number input elements
<div class="input-time-wrapper">
<input id="hour" class="input-time input-time__hour" type="number" value="00" min="-1" max="24" />
:<input id="min" class="input-time input-time__min" type="number" value="00" min="-1" max="60" />
:<input id="sec" class="input-time input-time__sec" type="number" value="00" min="-1" max="60" />
</div>
@sebastianhomeier
sebastianhomeier / nvm-list
Last active March 13, 2021 19:11 — forked from mabhub/nvm-list
NVM list global packages
#!/usr/bin/env node
const { promises: fs } = require('fs');
const path = require('path');
(async () => {
const nvmPath = process.env.NVM_DIR;
if (!nvmPath) {
console.error('Unable to detect nvm path. Exiting.');
process.exit(1);
# START: .nvmrc autoload
autoload -U add-zsh-hook
load-nvmrc() {
local node_version="$(nvm version)"
local nvmrc_path="$(nvm_find_nvmrc)"
if [ -n "$nvmrc_path" ]; then
local nvmrc_node_version=$(nvm version "$(cat "${nvmrc_path}")")
if [ "$nvmrc_node_version" = "N/A" ]; then