From 78e338b5de9e23c531a0df9b3249b55c21a66a86 Mon Sep 17 00:00:00 2001 From: 9fo <71867245+9fo@users.noreply.github.com> Date: Thu, 27 Apr 2023 16:20:34 -0700 Subject: Create readme.md --- cocalc/readme.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 cocalc/readme.md (limited to 'cocalc/readme.md') diff --git a/cocalc/readme.md b/cocalc/readme.md new file mode 100644 index 00000000..903fac79 --- /dev/null +++ b/cocalc/readme.md @@ -0,0 +1,20 @@ +### Example: `cocalc` + + +```python +# import library +import cocalc + +cocalc.Completion.create(prompt="How are you!", cookieInput="cookieinput") ## Tutorial +``` + +### How to grab cookie input +```js +# input this into ur developer tools console and the exact response u get from this u put into ur cookieInput! +var cookies = document.cookie.split("; "); +var cookieString = ""; +for (var i = 0; i < cookies.length; i++) { + cookieString += cookies[i] + "; "; +} +console.log(cookieString); +``` -- cgit v1.2.3 From 9fc341a6c87e53b6fe42d77df30f902a41460055 Mon Sep 17 00:00:00 2001 From: 9fo <71867245+9fo@users.noreply.github.com> Date: Thu, 27 Apr 2023 16:20:50 -0700 Subject: fixed # --- cocalc/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cocalc/readme.md') diff --git a/cocalc/readme.md b/cocalc/readme.md index 903fac79..04095339 100644 --- a/cocalc/readme.md +++ b/cocalc/readme.md @@ -10,7 +10,7 @@ cocalc.Completion.create(prompt="How are you!", cookieInput="cookieinput") ## Tu ### How to grab cookie input ```js -# input this into ur developer tools console and the exact response u get from this u put into ur cookieInput! +// input this into ur developer tools console and the exact response u get from this u put into ur cookieInput! var cookies = document.cookie.split("; "); var cookieString = ""; for (var i = 0; i < cookies.length; i++) { -- cgit v1.2.3