set actor:001 "Cobie Smulders"
exist actor:001
get actor:001
get "actor:001"
get 'actor:001'
type actor:001
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
# establish a Sentinel connection | |
from redis import Sentinel | |
sentinel = Sentinel([('localhost', 26379)], socket_timeout=0.1) | |
index_name = f"test_index_{str(ULID())}" | |
store = RedisVectorStore.from_texts( | |
texts, | |
OpenAIEmbeddings(), | |
index_name=index_name, |
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 | |
function run() { | |
echo "Running: $1" | |
eval "$1" | |
} | |
if [ $# -lt 2 ]; then | |
echo "Usage: $0 <zip_file> <destination_folder> [--ide=idea|vsc]" | |
exit 1 |
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
const askForProduct = (context, event) => {} | |
const confirmOperation = (context, event) => {} | |
const askForReplacementReason = (context, event) => {} | |
const askForReplacementReasonExplanation = (context, event) => {} | |
const regularExchangeFlow = Machine( | |
{ | |
id: 'regular-exchange', | |
initial: 'inactive', | |
context: { | |
operation: 'exchange', |
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
const askForReasonForRemoval = (context, event) => {} | |
const askForReplacementReasonExplanation = (context, event) => {} | |
const confirmOperation = (context, event) => {} | |
const removeProductsFlow = Machine( | |
{ | |
id: 'remove-products', | |
initial: 'inactive', | |
context: { |
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
const askForProduct = (context, event) => {} | |
const confirmOperation = (context, event) => {} | |
const installProductsFlow = Machine( | |
{ | |
id: 'install-products', | |
initial: 'inactive', | |
context: { | |
operation: 'install', | |
targetProduct: null, |
-
Go to Heroku (https://www.heroku.com/) and create an account if you don’t have one
-
Install the heroku toolbelt from https://toolbelt.heroku.com/ or using Homebrew:
/> brew install heroku-toolbelt
-
Send you heroku account email to
[email protected]
-
You’ll receive an email from heroku about being invited to test the alpha version of the binnacle add-on
-
Go to https://dashboard.heroku.com/apps to create a new app (+)
-
Clone https://github.com/binnacle-io/binnacle-rails-showcase:
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
Verifying that +bsbodden is my blockchain ID. https://onename.com/bsbodden |
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
[condition][]the lender is “{mortgage_company}"= | |
mortgage:Mortgage(lender:lenderName == “{mortgage_company}",product:mortgageName) | |
[condition][]and there is an application= | |
application:LoanApplication(lenders contains lender) | |
[condition][]- with a FICO score below {score}=ficoScore<{score} | |
[consequence][]reject the application because “{message}"= | |
application.addMessage("Declined by " + lender + " because {message}"); |
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
rule "ACME-Fico" | |
when | |
the lender is "ACME Mortgage" | |
and there is an application | |
- with a FICO score below 680 | |
then | |
reject the application because "a FICO score of at least 680 is required" | |
end |
NewerOlder