Skip to content

Instantly share code, notes, and snippets.

// Copyright 2015 Palantir Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0.
@import "~@presslabs/icons/src/icons";
// the icon class which will contain an SVG icon
.#{$ns}-icon {
// ensure icons sit inline with text & isolate svg from surrounding elements
// (vertical alignment in flow is usually off due to svg - not an issue with flex.)
display: inline-block;
import Sticky from 'sticky-js'
const sticky = new Sticky('.sticky')
@desero
desero / navigation.md
Last active March 19, 2019 08:37
Nested navigation

Folder structure

content
├── _index.md
...
├── dashboard
│   ├── _index.md
| | ...
<!-- // Before -->
<script type='text/javascript'>
(function () {
var pl_beacon = document.createElement('script');
pl_beacon.type = 'text/javascript';
pl_beacon.async = true;
var host = 'https://www.presslabs.com';
if ('https:' == document.location.protocol) {
host = host.replace('http://', 'https://');
@desero
desero / convert.sh
Created April 29, 2017 08:40
convert web video macOS
#!/bin/bash
# brew install ffmpeg --with-libvpx --with-libvorbis --with-theora --with-fdk-aac
# For this to work, you need to have ffmpeg
# installed with libvorbis, theora and libvpx ENABLED
# to do that in Homebrew:
# brew reinstall ffmpeg --with-libvpx --with-libvorbis --with-theora
#
# encoding reference: