This file contains 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"; | |
const scriptId = "tilled-js"; | |
/** | |
* Load and expose the tilled.js PCI-compliant payment capture utility. | |
* https://api.tilled.com/docs#section/Tilled.js | |
*/ | |
const useTilled = () => { | |
const [tilled, setTilled] = React.useState<any>(undefined); |
This file contains 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
sudo curl https://gist.githubusercontent.com/SeanMcGrath/492e80cbd74126dd880c14e51e4509e8/raw/a55975ad3c6fd215a7fd33d17e14effd5e3b460f/wiki >! /usr/local/bin/wiki && chmod +x /usr/local/bin/wiki && brew install chrome-cli && echo 'wiki installed! run wiki -h to see usage instructions' |
This file contains 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/bash | |
# sean mcgrath - [email protected] | |
usage () { | |
echo 'usage: wiki [-hs] [-m MESSAGE] [# of commits]' | |
echo ' -h show this help' | |
echo ' -s suppress Jira ticket message from appearing in post header' | |
echo ' -m replace Jira ticket message with MESSAGE' | |
echo '' | |
echo ' Automagically parses your relmail and prepares it for wiki submission.' |
This file contains 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/bash | |
JIRA_TABS=`chrome-cli list tabs | grep 'ENG.*Jira' | cut -d ' ' -f 1 | sed -e 's/\[//g' -e 's/\]//g'` | |
for tab in $JIRA_TABS; do | |
chrome-cli execute '(function() { return document.getElementById("key-val").textContent + " " + document.getElementById("summary-val").textContent; })();' -t $tab | |
done |
This file contains 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
#define scan_waveform_cxx | |
// The class definition in scan_waveform.h has been generated automatically | |
// by the ROOT utility TTree::MakeSelector(). This class is derived | |
// from the ROOT class TSelector. For more information on the TSelector | |
// framework see $ROOTSYS/README/README.SELECTOR or the ROOT User Manual. | |
// The following methods are defined in this file: | |
// Begin(): called every time a loop on the tree starts, | |
// a convenient place to create your histograms. | |
// SlaveBegin(): called after Begin(), when on PROOF called only on the |
This file contains 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
#!/usr/bin/env python | |
import argparse, sys, csv, math | |
def calcRMS(reader1, reader2): | |
def makeList(reader): | |
l = [] | |
for row in reader: | |
for val in row: |
This file contains 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
#!/usr/bin/env bash | |
# Generates a standardized table of bond lengths and bond angles | |
# from a gaussian .log file. | |
if [[ $# > 0 ]] | |
then | |
# Find distance Matrix | |
awk '/^ *1 *2 *3 *4 *5 *$/ {p=1}; p; /Stoich/ {p=0}' $1 | | |
# Extract lines with distance data | |
egrep '^[ \t]*[0-9]+[ \t]*[A-Z][ \t]*([-+]?[0-9]*\.?[0-9]+[ \t]*)' | |
This file contains 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
#!/usr/bin/env bash | |
# generates comma-separated list of raman frequencies and intensities from | |
# Gaussian output file. | |
if [[ $# > 0 ]] | |
then | |
egrep '(Frequencies|^ Raman )' $1 | awk ' | |
{ | |
if ( $1 == "Frequencies"){ | |
a = $3 |