Skip to content

Instantly share code, notes, and snippets.

View thatguynef's full-sized avatar

Nefer Lopez thatguynef

View GitHub Profile
@thatguynef
thatguynef / typebot-decision-tree-demo.json
Last active April 14, 2023 07:06
Google Sheets and Typebot Decision Tree Demo
{"id":"clgg0d94w000cif0fwpkofrpl","version":"3","createdAt":"2023-04-14T03:47:20.576Z","updatedAt":"2023-04-14T06:41:43.451Z","icon":"🌲","name":"Decision Tree Demo","folderId":"clfhg550l0009m908jsmr2fv4","groups":[{"id":"imwuej91htznt2m7kcl4t0d9","title":"Start","blocks":[{"id":"gorwk3vrjb1wahr39ixmg5ks","type":"start","label":"Start","groupId":"imwuej91htznt2m7kcl4t0d9"}],"graphCoordinates":{"x":0,"y":0}},{"id":"az78lk8hr9fwmrrpvwtcj74p","title":"Group #1","blocks":[{"id":"d0nrtwpuxkk39kvsnh3wtu1d","type":"Webhook","groupId":"az78lk8hr9fwmrrpvwtcj74p","options":{"isCustomBody":false,"isAdvancedConfig":true,"variablesForTest":[],"responseVariableMapping":[{"id":"faiay65pf70bha8t6j380ukl","bodyPath":"data","variableId":"vge7kig6f1gd6ickohwdrwpzn"}]},"webhookId":"foqsepk9ybi7kma11zjf457b"},{"id":"jh2de3632hn0j6tadb90h875","type":"Set variable","groupId":"az78lk8hr9fwmrrpvwtcj74p","options":{"isCode":true,"variableId":"vjlfkhyqsvr49a4tb0227j7ko","expressionToEvaluate":"const json = JSON.parse({{data}});\n\nconst
@thatguynef
thatguynef / scrape_content_demo.json
Created March 21, 2023 20:28
Typebot - Scrape Content Demo with Google Sheets
{"id":"itlu9p272di2nsy1qsyycxs7","version":"3","createdAt":"2023-03-21T17:58:47.184Z","updatedAt":"2023-03-21T18:25:02.584Z","icon":"🤖","name":"Scrape Content Demo","folderId":"clfhg550l0009m908jsmr2fv4","groups":[{"id":"bsne9ee59gs6bz5e6dvjwfya","title":"Start","blocks":[{"id":"igbipfi63m6p9sl2f77uicuv","type":"start","label":"Start","groupId":"bsne9ee59gs6bz5e6dvjwfya","outgoingEdgeId":"rw99wokhftvhgd0e8aypctgm"}],"graphCoordinates":{"x":-346.7951354980469,"y":187.1693115234375}},{"id":"b0phqof22dzxru1m0a2jhpdn","title":"User input","blocks":[{"id":"ovgk70u0kfxrbtz9dy4e040o","type":"text input","groupId":"b0phqof22dzxru1m0a2jhpdn","options":{"isLong":true,"labels":{"button":"Send","placeholder":"Type your answer..."},"variableId":"vevnx5f5bojz0sv648x6ppcmv","isPrefillDisabled":true},"outgoingEdgeId":"aweji5wfl8jep4p3et9wursv"}],"graphCoordinates":{"x":385.59765625,"y":176}},{"id":"ryonkrzddo27xkscd0k90ebr","title":"ChatGPT reply","blocks":[{"id":"xikptnw1lp1qxdqo10qhmwy1","type":"OpenAI","groupId":"ryonkrzd
@thatguynef
thatguynef / typebot_twilio_api_template.json
Created March 15, 2023 18:07
Typebot - Twilio API Template
{"id":"fzp4fetiu89gvzm841plyfrl","version":"3","createdAt":"2023-03-15T18:01:36.276Z","updatedAt":"2023-03-15T18:06:20.977Z","icon":"💬","name":"Twilio API Block Template","folderId":"clcb5ckb80001mk08m0a9t3ml","groups":[{"id":"zuvvj8aiyv8iz1ajfgqoxfm4","title":"Start","blocks":[{"id":"ykwfe5ctlvej934qqnjzl02b","type":"start","label":"Start","groupId":"zuvvj8aiyv8iz1ajfgqoxfm4","outgoingEdgeId":"j9gh4dn823x9prtetj8hon9m"}],"graphCoordinates":{"x":0,"y":0}},{"id":"j2q6tfljqst1h0d7sa16ojhy","title":"Group #1","blocks":[{"id":"lmd9hm308b95g21ropct23dz","type":"phone number input","groupId":"j2q6tfljqst1h0d7sa16ojhy","options":{"labels":{"button":"Send","placeholder":"Type your phone number..."},"variableId":"va09ug7y95qzcq3t4mfcdnaiz","defaultCountryCode":"US","retryMessageContent":"This phone number doesn't seem to be valid. Can you type it again?"}},{"id":"k7bqazpl57enxolq9s8klg6e","type":"Webhook","groupId":"j2q6tfljqst1h0d7sa16ojhy","options":{"isCustomBody":true,"isAdvancedConfig":true,"variablesForTest":[],
@thatguynef
thatguynef / typebot_travel_personality_quiz.json
Created March 14, 2023 18:10
Typebot Travel Personality Quiz
{"id":"clf8egk5b0011mq08rzq4l11j","version":"3","createdAt":"2023-03-14T15:19:57.696Z","updatedAt":"2023-03-14T18:05:40.043Z","icon":"🧳","name":"Travel Personality Quiz","folderId":null,"groups":[{"id":"gdf4lf6iq1o0rurhh06b03cw","title":"Start","blocks":[{"id":"wotftm0c5h41ojhhtx39sfe6","type":"start","label":"Start","groupId":"gdf4lf6iq1o0rurhh06b03cw","outgoingEdgeId":"o702ppi5lbsrbcl9ywxnzunb"}],"graphCoordinates":{"x":-1.513010660807292,"y":-1.3938649495442703}},{"id":"banuo15r8cqn17n9exp85g1l","title":"Question 1","blocks":[{"id":"okidfn4g35j9ayfack66st2f","type":"text","content":{"html":"<div>Find out your travel personality in just 5 questions.</div>","richText":[{"type":"p","children":[{"text":"Find out your travel personality in just 5 questions."}]}],"plainText":"Find out your travel personality in just 5 questions."},"groupId":"banuo15r8cqn17n9exp85g1l"},{"id":"qxye2idrd4xqyd07j0ijz6dp","type":"text","content":{"html":"<div>What is your dream vacation destination?</div>","richText":[{"type":"p","ch
@thatguynef
thatguynef / web_scraping.py
Last active March 7, 2023 11:56
Part 2: Scraping data with Python BeautifulSoup to ChatGPT API
# Youtube video: https://youtu.be/dwCe9l_geK4
import requests
import json
import os
import unicodedata
from bs4 import BeautifulSoup
urls = ['https://www.bigbearcoolcabins.com/big-bear-cabin-rentals/moonridge-cali-bear-cabin/',
'https://www.bigbearcoolcabins.com/big-bear-cabin-rentals/switzerland',
"https://www.bigbearcoolcabins.com/big-bear-cabin-rentals/pines"
@thatguynef
thatguynef / gist:c68452cc2cf31d112b9ba6d76911ae1d
Last active March 4, 2023 20:11
Tutorial - Google Places API Autocomplete Library
// See tutorial video https://youtu.be/qpUfj4zPxWQ
// Google Dev Docs: https://developers.google.com/maps/documentation/javascript/places
// Insert this script in the <head> element
<script async
src="https://maps.googleapis.com/maps/api/js?key=API_KEY&libraries=places&callback=initMap">
</script>
//Insert this script before the closing body tag </body>
<script>
// This is an include file for my Jekyll site. You'll see curly braces where I send _config variables to send event data to Google Analytics (see line 53)
<hr>
<div class="grid-container col-2">
<div class="feedback">
<h3>Did you find this note useful?</h3>
<p>Your feedback helps me improve these notes.</p>
</div>
<div class="thumbs">
<button onclick="upvote()" aria-label="upvote" id="upvote">👍</button>
@thatguynef
thatguynef / media-query.css
Created February 12, 2018 02:29 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS