Skip to content

Instantly share code, notes, and snippets.

View evancohen's full-sized avatar
🚀
Working at UiPath

Evan Cohen evancohen

🚀
Working at UiPath
View GitHub Profile
(async () => {
try{
// Get the list of processes
const processes = await UiPathRobot.getProcesses()
// Find a specific process by ID
const sample = processes.find(p => p.id == "c9973f8d-a46b-41cd-8436-f411cdba3355")
// Start the process (creates a job)
const job = sample.start({ NumberToAdd: 0 })
@evancohen
evancohen / node-pre-gyp_publish.sh
Last active June 2, 2019 03:51
An auto-publish script for node-pre-gyp that pre-builds and publishes binaries for node 4.0.0+
#!/bin/bash
NODE_VERSIONS=( "6" "7" "8" "9" "10" "11" "12")
function command_exists () { type "$1" &> /dev/null ;}
# Ensure that vnm is installed
if ! command_exists nvm; then
rm -rf ~/.nvm/ && git clone --depth 1 https://github.com/creationix/nvm.git ~/.nvm
source ~/.nvm/nvm.sh
fi