Shiny Reference Sheet
A web application framework for R quick function reference sheet.
Function | Creates |
---|---|
actionButton() |
Action button element |
submitButton() |
Submit button element |
-- Launch all your desired apps at once, with a single call. | |
-- Works wonderful right after startup/reboot without compromising boot time | |
set appsFolder to "/Applications" | |
set Apps to {"Mail", "Google Drive", "MenuMate", "Due", "PopClip", "Window Tidy", "Yoink", | |
"Trickster", "DropZone", "Mint QuickView", "unDock", "Visits", "CalendarFree", "Degrees"} --Change/add desired apps here | |
repeat with theItem in Apps | |
launch application theItem | |
end repeat |
#!/bin/bash | |
# Bash Progress Bar: https://gist.github.com/F1LT3R/fa7f102b08a514f2c535 | |
progressBarWidth=20 | |
# Function to draw progress bar | |
progressBar () { | |
# Calculate number of fill/empty slots in the bar |
A web application framework for R quick function reference sheet.
Function | Creates |
---|---|
actionButton() |
Action button element |
submitButton() |
Submit button element |
# ------------------------------------------------------------------------------- | |
# GENERAL | |
'.source': | |
# Main Description Header | |
'Main Header': | |
'prefix': 'header' | |
'body': """ | |
# ================================================================================ | |
# |
#!/bin/bash -l | |
# template.qsub - Template file for Sun Grid Engine (SGE) job submissions | |
# Andrés Bretón, http://andresbreton.com | |
# Template from https://gist.github.com/bretonics/1dc5d0926aefa7787ebf48a0bad5316b | |
#------------------------------------------------------------------------------- | |
# ENVIRONMENTAL VARIABLES AVAILABLE |
#!/bin/bash | |
# /etc/cron.weekly/ | |
LIMIT="85" | |
MAILTO="" | |
SUBJECT="Disk Usage Alert!" | |
BODY="WARNING! $(hostname) disk space is currently at ${USED}% capacity." | |
#!/usr/bin/env bash | |
# Automate adding new SFTP accounts (chrooted) | |
# -------------------------------------------------------------------------------- | |
# | |
if [ $# == 0 ]; then | |
echo "Usage: add-sftp-user EMAILS " | |
echo "Automates adding a SFTP user account, delagating all tasks and sending confirmation email." | |
else |
# .bash_functions - User bash functions | |
# Template from https://gist.github.com/bretonics/894d8c2d1d4813c36b7d36e9a97aedd6 | |
#------------------------------------------------------------------------------- | |
# SYSTEM | |
mkcd() { | |
mkdir $1; cd $1 | |
} |
# /path/to/repo/bin/script
BIN_PATH="$(dirname ${BASH_SOURCE})" # gets 'bin' directory path script is in
DIR_PATH="$(dirname $BIN_PATH)" # gets the main 'repo' directory path
for f in *.txt ; do echo "${f/old/new}"; done
#!/bin/bash -l | |
# cellranger.qsub - A template file to run Cell Ranger on Sun Grid Engine (SGE) | |
# Andrés Bretón ~ http://andresbreton.com, dev@andresbreton.com | |
# Template from https://gist.github.com/bretonics/f6c57474bb077d2acd293092cf7fa449# | |
#------------------------------------------------------------------------------- | |
# ENVIRONMENTAL VARIABLES AVAILABLE |