Skip to content

Instantly share code, notes, and snippets.

# Inputs can be set from the strategy/study options
# _______________________ Required Parameter definitions ________________
input method = { default average, high_low };
input dollarpositionsize = 5000;
def bubbleoffset = .0005;
tell application "Photos"
activate
set folderList to name of every folder
set selectedFolders to choose from list folderList with prompt "Select folders:" with multiple selections allowed
set destination to POSIX path of (choose folder with prompt "Please select a backup location:")
repeat with f in folders
if selectedFolders contains name of f then
my exportFolder(f, destination, name)
end if
@paschmann
paschmann / TestingRNGs.md
Created November 5, 2021 13:42 — forked from blixt/TestingRNGs.md
Testing random number generators with DieHarder

Testing RNGs with Dieharder

This guide is specifically for pseudo-random number generators (PRNGs) written in JavaScript, and tested in Mac OS X.

Prerequisites

Homebrew

0xbaa576247219344635DAc12eB131dF8393AF85cE
//XSJS File
function sendUserEmail() {
try {
var from = "[email protected]";
var to = $.request.parameters.get("email");
var subject = $.request.parameters.get("subject");
var message = $.request.parameters.get("message");
var mail = new $.net.Mail({
@paschmann
paschmann / xs_deploy.sh
Created March 19, 2016 11:58
SAP HANA XS Delivery Unit Deployment Script
export HDBALM_PASSWD="$bamboo_DestXSPassword"
export https_proxy=http://proxy.wdf.sap.corp:8080
echo " "
echo " "
echo " "
preversion="$(/sap/hdbclient/hdbalm -s -y -h $bamboo_DestHostname -p $bamboo_DestHostPort -u $bamboo_DestXSUsername -c $bamboo_DestSSLCert du get $bamboo_DeliveryUnitName $bamboo_DeliveryUnitVendor)"
if [[ $preversion == "" ]]; then
echo "Initial install of the DU";
preinstallversion="0.0.0"
else
@paschmann
paschmann / Create iOS 9 Icons.jsx
Last active February 22, 2016 13:55
Script for Photoshop CC 2015 (and probably many more versions) and creates iOS 9 icons, including the iPad Pro
// Create iOS 9 Icons.jsx
// 2015 Paul Aschmann
// v1.0
// [name]-29.png
// [name][email protected]
// [name][email protected]
// [name]-40.png
// [name][email protected]
// [name][email protected]
// [name][email protected]
@paschmann
paschmann / xs2xscli.txt
Created December 7, 2015 20:01
SAP HANA XS Adanced (XS2) CLI Commands
GETTING STARTED:
login, l Log user in
logout Log user out
target, t Set or view the targeted org or space
api Set or view target api url
APPS:
apps, a List all apps in the target space
app Display the status and information about an app
function executeRecordSetObj(SQL){
var conn = $.db.getConnection();
var pstmt = conn.prepareStatement(SQL);
var rs = pstmt.executeQuery();
var rsm = rs.getMetaData();
var strObj = '';
while (rs.next()) {
strObj += '{';
for (var i = 1; i <= rsm.getColumnCount(); i++){