I hereby claim:
- I am onebytegone on github.
- I am onebytegone (https://keybase.io/onebytegone) on keybase.
- I have a public key whose fingerprint is 4071 BFAF 2C34 4904 10B1 9C00 3025 37F3 89FE E7DB
To claim this, I am signing this object:
| // ---- | |
| // 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/video.js@6.1.0/dist/video-js.css" rel="stylesheet"> | |
| <script src="https://unpkg.com/video.js@6.1.0/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 |
cd /tmp
time dd if=/dev/zero bs=2048k of=tstfile count=8192 2>&1 | awk '/sec/ {print $1 / $5 / 1048576, "MB/sec" }'
ls -al tstfile
time dd if=tstfile bs=2048k of=/dev/null count=8192 2>&1 | awk '/sec/ {print $1 / $5 / 1048576, "MB/sec" }'Note: If the machine has more than 16GB of free RAM, the read speed may be incorrect due to RAM caching.