Suppose you're opening an issue and there's a lot noisey logs that may be useful.
Rather than wrecking readability, wrap it in a <details> tag!
<details>
Summary Goes Here| # copy and paste to /sbin/remove-desktop | |
| #!/bin/sh | |
| PREFIX= | |
| : ${LIBDIR=$PREFIX/lib} | |
| . "$LIBDIR/libalpine.sh" | |
| usage() { | |
| cat <<-__EOF__ |
| #!/usr/bin/env python | |
| """ | |
| Stitch multiple files worth of AWS transcripts together. | |
| Does not attempt to match speakers across filesm but does label all speaker changes. | |
| Usage: | |
| python stitch_transcript.py *.mp3.json -o out.txt | |
| See blog post: http://turtlemonvh.github.io/aws-transcribe-for-long-zoom-meetings.html |
| import sys | |
| debug = True | |
| def exceptionHandler(exception_type, exception, traceback, debug_hook=sys.excepthook): | |
| '''Print user friendly error messages normally, full traceback if DEBUG on. | |
| Adapted from http://stackoverflow.com/questions/27674602/hide-traceback-unless-a-debug-flag-is-set | |
| ''' | |
| if debug: | |
| print('\n*** Error:') | |
| # raise |
The Leaflet JS mapping library has lots of plugins available. The Leaflet package for R provides direct support for some, but far from all, of these plugins, by providing R functions for invoking the plugins.
If you as an R user find yourself wanting to use a Leaflet plugin that isn't directly supported in the R package, you can use the technique shown here to load the plugin yourself and invoke it using JS code.
| yum install httpd yum-utils createrepo |
refer to: https://stackoverflow.com/questions/39371772/how-to-install-anaconda-on-raspberry-pi-3-model-b
{USER}: pi
Install Miniconda 3:
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-armv7l.sh
sudo md5sum Miniconda3-latest-Linux-armv7l.sh # (optional) check md5
sudo /bin/bash Miniconda3-latest-Linux-armv7l.sh # -> change default directory to /home/pi/miniconda3
| #!/bin/sh | |
| # Get MacOSX idletime. Shamelessly stolen from http://bit.ly/yVhc5H | |
| /usr/sbin/ioreg -c IOHIDSystem | /usr/bin/awk '/HIDIdleTime/ {print int($NF/1000000000); exit}' |