Send Airtable content to your physical (or virtual) Vestaboard. My first Airtable script.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react' | |
| import { type FC } from 'react' | |
| import { Retool } from '@tryretool/custom-component-support' | |
| export const IframeReader: FC = () => { | |
| const iframeRef = React.useRef<HTMLIFrameElement>(null); | |
| const [error, setError] = React.useState<string | null>(null); | |
| const observerRef = React.useRef<MutationObserver | null>(null); | |
| const intervalRef = React.useRef<number | null>(null); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| UEFSMRUAFd5AFYwxLBWKCBUAFQYVBgAAryBEAwAAAIoIAQCkk96QJQYAQOaiBQgIgCiyBQgIwGrBBQgIAK3QBQgIQO/fBQgIgDHvBQgIwHP+BQgMALYN3wVABPgcBQgIgDosBQgIwHw7BQgIAL9KBQgIQAFaBQgIgENpBQgIwIV4BQgIAMiHBQgIQAqXBQgIgEymBQgIwI61BQgIANHEBQgIQBPUBQgIgFXjBQgIwJfyBQgMANoB4AWABBwRBQgIgF4gBQgIwKAvBQgIAOM+BQgIQCVOBQgIgGddBQgIwKlsBQgIAOx7BQgIQC6LBQgIgHCaBQgIwLKpBQgIAPW4BQgIQDfIBQgIgHnXBQgIwLvmBQgIAP71BQgMQEAF4QGICICCFAUICMDEIwUICAAHMwUICEBJQgUICICLUQUICMDNYAUICAAQcAUICEBSfwUICICUjgUICMDWnQUICAAZrQUICEBbvAUICICdywUICMDf2gUICAAi6gUICEBk+QUIDICmCOIBiAjA6BcFCAgAKycFCAhAbTYFCAiAr0UFCAjA8VQFCAgANGQFCAhAdnMFCAiAuIIFCAjA+pEFCAgAPaEFCAhAf7AFCAiAwb8FCAjAA88FCAgARt4FCAhAiO0FCAiAyvwFCAzADAzjAYgIAE8bBQgIQJEqBQgIgNM5BQgIwBVJBQgIAFhYBQgIQJpnBQgIgNx2BQgIwB6GBQgIAGGVBQgIQKOkBQgIgOWzBQgIwCfDBQgIAGrSBQgIQKzhBQgIgO7wBQgMwDAA5AWABHMPBQgIQLUeBQgIgPctBQgIwDk9BQgIAHxMBQgIQL5bBQgIgABrBQgIwEJ6BQgIAIWJBQgIQMeYBQgIgAmoBQgIwEu3BQgIAI7GBQgIQNDVBQgIgBLlBQgIwFT0BQgMAJcD5QGICEDZEgUICIAbIgUICMBdMQUICACgQAUICEDiTwUICIAkXwUICMBmbgUICACpfQUICEDrjAUICIAtnAUICMBvqwUICACyugUICED0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| UEFSMRUAFd5AFYwxLBWKCBUAFQYVBgAAryBEAwAAAIoIAQCkk96QJQYAQOaiBQgIgCiyBQgIwGrBBQgIAK3QBQgIQO/fBQgIgDHvBQgIwHP+BQgMALYN3wVABPgcBQgIgDosBQgIwHw7BQgIAL9KBQgIQAFaBQgIgENpBQgIwIV4BQgIAMiHBQgIQAqXBQgIgEymBQgIwI61BQgIANHEBQgIQBPUBQgIgFXjBQgIwJfyBQgMANoB4AWABBwRBQgIgF4gBQgIwKAvBQgIAOM+BQgIQCVOBQgIgGddBQgIwKlsBQgIAOx7BQgIQC6LBQgIgHCaBQgIwLKpBQgIAPW4BQgIQDfIBQgIgHnXBQgIwLvmBQgIAP71BQgMQEAF4QGICICCFAUICMDEIwUICAAHMwUICEBJQgUICICLUQUICMDNYAUICAAQcAUICEBSfwUICICUjgUICMDWnQUICAAZrQUICEBbvAUICICdywUICMDf2gUICAAi6gUICEBk+QUIDICmCOIBiAjA6BcFCAgAKycFCAhAbTYFCAiAr0UFCAjA8VQFCAgANGQFCAhAdnMFCAiAuIIFCAjA+pEFCAgAPaEFCAhAf7AFCAiAwb8FCAjAA88FCAgARt4FCAhAiO0FCAiAyvwFCAzADAzjAYgIAE8bBQgIQJEqBQgIgNM5BQgIwBVJBQgIAFhYBQgIQJpnBQgIgNx2BQgIwB6GBQgIAGGVBQgIQKOkBQgIgOWzBQgIwCfDBQgIAGrSBQgIQKzhBQgIgO7wBQgMwDAA5AWABHMPBQgIQLUeBQgIgPctBQgIwDk9BQgIAHxMBQgIQL5bBQgIgABrBQgIwEJ6BQgIAIWJBQgIQMeYBQgIgAmoBQgIwEu3BQgIAI7GBQgIQNDVBQgIgBLlBQgIwFT0BQgMAJcD5QGICEDZEgUICIAbIgUICMBdMQUICACgQAUICEDiTwUICIAkXwUICMBmbgUICACpfQUICEDrjAUICIAtnAUICMBvqwUICACyugUICED0 |
Down below is a quick script that lets you update your Vestaboard from the command line using curl and `jq
Try a rainbow:
bash vestaboard.sh " \
{63}{64}{65}{66}{67}{68} All \n \
{63}{64}{65}{66}{67}{68} You \n \
{63}{64}{65}{66}{67}{68} Need \n \
{63}{64}{65}{66}{67}{68} Is \n \
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh -e | |
| if command -v matlab >/dev/null 2>&1; then | |
| if [ $# -gt 1 ]; then | |
| # Remove ".m" script suffix if it exists, see http://www.mathworks.com/help/matlab/ref/matlablinux.html | |
| COMMAND="${2%.m}" | |
| matlab -nodisplay -nosplash -nodesktop -r "run $COMMAND; quit;" | |
| else | |
| echo "Error: Expecting argument 2 to contain the command to run in Matlab" | |
| exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RUN \ | |
| yum install -y gmp-devel latex2rtf | |
| # Install relatively up-to-date Haskell and Cabal | |
| RUN \ | |
| mkdir -p /tmp/tex && \ | |
| cd /tmp/tex && \ | |
| wget http://www.haskell.org/ghc/dist/7.8.2/ghc-7.8.2-x86_64-unknown-linux-centos65.tar.bz2 && \ | |
| tar xf ghc-7.8.2-x86_64-unknown-linux-centos65.tar.bz2 && \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alwaysSaveHistory="1" | |
| cleanTexi2DviOutput="1" | |
| cleanupAfterRCmdCheck="1" | |
| contextIdentifier="26321B8F" | |
| cranMirrorCountry="us" | |
| cranMirrorHost="RStudio" | |
| cranMirrorName="Global (CDN)" | |
| cranMirrorUrl="http://cran.rstudio.com/" | |
| enableLaTeXShellEscape="0" | |
| errorHandlerType="3" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### Method 1-A | |
| mkdir -p /home/domino/.rstudio/monitored/user-settings/ | |
| echo 'uiPrefs={"theme" : "Mono Industrial"}' >> /home/domino/.rstudio/monitored/user-settings/user-settings | |
| chown -R domino:domino /home/domino/.rstudio | |
| if [ -f .domino/launch-rstudio-server ]; then | |
| sed -i.bak 's# > ~/.rstudio/monitored/user-settings/user-settings# >> ~/.rstudio/monitored/user-settings/user-settings#' .domino/launch-rstudio-server | |
| chown domino:domino .domino/launch-rstudio-server | |
| fi | |
| ### Method 2 - snippet 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from theano import function, config, shared, sandbox | |
| import theano.tensor as T | |
| import numpy | |
| import time | |
| vlen = 10 * 30 * 768 # 10 x #cores x # threads per core | |
| iters = 1000 | |
| rng = numpy.random.RandomState(22) | |
| x = shared(numpy.asarray(rng.rand(vlen), config.floatX)) |
NewerOlder