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
// Documentation - related data model for information seeking intents | |
[ | |
// | |
{ "codeArray": [ { serialized code block1 }, { serialized code block 2}, .. }, | |
"pageTitle": "page title in h element and DOM page title, includes service + function + language", | |
"functionText": "function description..", | |
"language": "python", | |
"githubURL" : "URL..", | |
"functionArguments": [ { argument type 1 }, { argument type 2 }, ... ], | |
"return" : [ "return value1 description", ... ], |
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
> npm run start:dev | |
> crawlee@0.0.1 start:dev | |
> ts-node-esm -T src/main.ts | |
INFO PlaywrightCrawler: Starting the crawl | |
INFO PlaywrightCrawler: enqueueing new URLs | |
INFO PlaywrightCrawler: Quickstart Tutorial | Weaviate - vector database {"url":"https://weaviate.io/developers/weaviate/quickstart"} | |
INFO PlaywrightCrawler: How to install Weaviate | Weaviate - vector database {"url":"https://weaviate.io/developers/weaviate/installation"} |
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
/* module export because the showEditStepModal function is called from both inside | |
* this component and from its parent component. | |
*/ | |
<script context="module"> | |
// activate/disactivate the modal view. Set to is-active to show this modal | |
let modalActive = ''; | |
// set by the Dialog component. Determines whether select or create | |
// is defaulted and other behavior. | |
let selectOrCreate; |
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
{ "user-location": "home", | |
"user-activity": "working" | |
} |
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
def post(self): | |
args = self.reqparse.parse_args() | |
todo = Todo(title =args['title'], | |
description =args['description'], | |
due =args['due'] | |
) | |
todo.put() | |
return { 'todo': todo.prepare_response()}, 201 |
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 sys | |
import os | |
# required to load libraries under lib that Flask depends on | |
sys.path.insert(1, os.path.join(os.path.abspath('.'), 'lib')) | |
from lib.flask import Flask | |
app = Flask('scaffold_application') | |
@app.route('/') |
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
<apex:page controller="CustomerCommunityController" id="customercommunitycontroller" sidebar="false" showHeader="false" standardStylesheets="false" > | |
<head> | |
<title>Acme Customer Support</title> | |
<meta charset="utf-8" /> | |
<apex:includeScript value="{!$Resource.jquery}"/> | |
</head> | |
<script type="text/javascript"> | |
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
{ | |
"instance_url": "https://na12.salesforce.com", | |
"items": [{ | |
"parent": { | |
"name": "John Smith", | |
"title": null, | |
"firstName": "John", | |
"lastName": "Smith", | |
"companyName": "No company locations found", | |
"mySubscription": null, |
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
authorization: OAuth 00DU0000000J83v!AQoAQJkLzYuCPmfyTZ7Mmg.Otq3W6klMTqqXUsTUdfwMtk8BcZJxpNdyCfUmm5.0Psfr8j7xDoNnRuV8u7UtANm.E_ubaXCB | |
x-chatter-entity-encoding: false | |
accept: */* | |
user-agent: Ruby | |
content-type: multipart/form-data; boundary=-----------RubyMultipartPost | |
content-length: 34684 | |
-------------RubyMultipartPost | |
Content-Disposition: form-data; name="json" | |
Content-Type: application/json; charset=UTF-8 | |
Content-Transfer-Encoding: 8bit |
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
# helper that takes a feedItem hash and converts it to HTML, including | |
# properly structuring any included message segments like @mentions. | |
def message_segments(msg_segments) | |
# an array of hashes - each hash a segment | |
html = '' | |
msg_segments.each do |segment| | |
html << case segment['type'] | |
when 'Text' | |
segment['text'] |
NewerOlder