A mixin for writing @font-face rules in SASS.
Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.
@include font-face(Samplino, fonts/Samplino);
import path from 'path' | |
const applyPrefixToRoute = (prefix) => (request, response) => { | |
console.log('received request for: ', request.url) | |
const redirectTo = path.join(prefix, request.url) | |
console.log('redirecting to: ', redirectTo) | |
response.redirect(redirectTo) | |
} | |
const applyRouteHack = (app, routePrefix) => { |
#!/usr/bin/env bash | |
osascript -e 'tell application "Spotify" to set player position to 0' | |
osascript -e 'tell application "Spotify" to previous track' | |
echo -n -e "\033]0;previousTrack\007" | |
osascript -e 'tell application "Terminal" to close (every window whose name contains "previousTrack")' & | |
exit 0 |