Skip to content

Instantly share code, notes, and snippets.

View richiethomas's full-sized avatar

Richie Thomas richiethomas

  • Remote
View GitHub Profile
diff --git a/src/handlers/requests/upsert_keyword_template.rs b/src/handlers/requests/upsert_keyword_template.rs
index 33c3861..35c7054 100644
--- a/src/handlers/requests/upsert_keyword_template.rs
+++ b/src/handlers/requests/upsert_keyword_template.rs
@@ -35,8 +35,8 @@ impl TryFrom<Request<UpsertKeywordTemplateRequest>> for UpsertKeywordTemplate {
} = required(keyword_template, "keyword_template")?;
let segmented_by_subscribed: SegmentedBySubscribed = SegmentedBySubscribed::new(
- unpack_uuid(template_id.clone(),"template_id").unwrap(),
- unpack_uuid(unsubscribed_template_id.clone(),"unsubscribed_template_id").unwrap()
#!/usr/bin/env ruby
puts 'Hello world'
#!/usr/bin/env bash
echo 'Hello world'
#!/usr/bin/env bash
echo " foo"
echo " foo"
echo " foo"
echo " foo"
echo "bar"
#!/usr/bin/env bash
separator="${1:-:}"
tr "${separator}" $'\n'
#!/bin/bash
my_var="Hello, World!"
variable_name="my_var"
echo "${!variable_name}"
#!/usr/bin/env bash
echo "Hello world"
#!/usr/bin/env bash
if [ ! -t 0 ]; then
echo "Standard input is not a terminal. Reading input from non-interactive source."
cat > output.txt
else
echo "Standard input is a terminal. Waiting for user input interactively."
read -p "Enter your input: " user_input
echo "You entered: $user_input"
fi
#!/usr/bin/env bash
echo "Foo!"
#!/usr/bin/env bash
echo "size of PATH: ${#PATH[@]}"
IFS=: paths=($PATH)
echo "size of PATH: ${#paths[@]}"