This is a rough draft for backing up and restoring data contained in a Docker volume. I can't say that this is a "best practice". For my limited testing at the moment, it seems sufficient.
version: '3'
// ---- | |
// Sass (v3.4.12) | |
// Compass (v1.0.3) | |
// ---- | |
@mixin stateColor($normal, $hover:"") { | |
background-color: $normal; | |
@if $hover != '' { | |
&:hover { |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title>Demo of conflict between jQuery and webcomponent.js in Chromecast framework</title> | |
<link href="https://unpkg.com/[email protected]/dist/video-js.css" rel="stylesheet"> | |
<script src="https://unpkg.com/[email protected]/dist/video.js"></script> | |
<script> | |
window.SILVERMINE_VIDEOJS_CHROMECAST_CONFIG = { | |
preloadWebComponents: true, |
#!/bin/bash | |
# usage: ./gifize.sh -x left -y top image.gif | |
X_POS_LEFT='10' | |
X_POS_RIGHT='(w-text_w-10)' | |
Y_POS_TOP='10' | |
Y_POS_BOTTOM='(h-text_h-10)' | |
X_POS=$X_POS_LEFT |
$('.widget').each(function() { | |
var GRID_SIZE = 12, | |
el = $(this), | |
title = el.find('.title_text').text(), | |
roundToGrid; | |
roundToGrid = function(value) { | |
return Math.ceil(value / GRID_SIZE) * GRID_SIZE; | |
}; |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
set -e | |
SRC_DIR=$1 | |
DEST_DIR=$2 | |
TMP_DIR=/tmp/photo-frame | |
if [ -z "${SRC_DIR}" ] || [ -z "${DEST_DIR}" ]; then | |
echo "Usage: $(basename $0) ./src-dir ./dest-dir" |
const { StringDecoder } = require('string_decoder'), | |
input = 'abc😧🤕', | |
length = Buffer.byteLength(input); | |
function trimToSize(str, byteLength) { | |
const decoder = new StringDecoder('utf8'), | |
buffer = new Buffer(str); | |
return decoder.write(buffer.slice(0, byteLength)); | |
} |
; Set bed and extruder temps | |
M190 S70 | |
M109 S180 | |
; Home X/Y | |
G28 X0.00 Y0.00 | |
G1 Y150 X0 Z10 F3000 | |
G30 S-1 | |
G1 Y150 X0 Z10 F3000 |