Skip to content

Instantly share code, notes, and snippets.

View janasabino's full-sized avatar
๐ŸŽฏ
Focusing

Janaina janasabino

๐ŸŽฏ
Focusing
View GitHub Profile
@fernandojunior
fernandojunior / gist:9f4bf868f7f393e30578fd6e8109893c
Last active September 10, 2024 15:11
Simple LangChain translator code to abstract LLM models
! pip install langchain
! pip install langchain-openai
! pip install langchain-google-genai
! pip install langchain-community llama-cpp-python
! wget https://huggingface.co/NousResearch/Hermes-2-Pro-Llama-3-8B-GGUF/resolve/main/Hermes-2-Pro-Llama-3-8B-Q8_0.gguf
from langchain_openai import ChatOpenAI
from langchain_google_genai import ChatGoogleGenerativeAI
from langchain_community.chat_models import ChatLlamaCpp
@xiaoouwang
xiaoouwang / Tuto_plongement_lexical.ipynb
Last active March 9, 2024 18:51
Tuto_plongement_lexical.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jrjames83
jrjames83 / amazon_review_scraper.py
Created November 27, 2020 19:03
Scrape amazon reviews using python 3, beautifulsoup and pandas.
import requests
import pandas as pd
from bs4 import BeautifulSoup
from datetime import datetime
import logging
headers = {
"authority": "www.amazon.com",
"pragma": "no-cache",
"cache-control": "no-cache",
@leocomelli
leocomelli / git.md
Last active December 11, 2025 08:00
Lista de comandos รบteis do GIT

GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda

@rxaviers
rxaviers / gist:7360908
Last active December 11, 2025 15:03
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: ๐Ÿ˜„ :smile: ๐Ÿ˜† :laughing:
๐Ÿ˜Š :blush: ๐Ÿ˜ƒ :smiley: โ˜บ๏ธ :relaxed:
๐Ÿ˜ :smirk: ๐Ÿ˜ :heart_eyes: ๐Ÿ˜˜ :kissing_heart:
๐Ÿ˜š :kissing_closed_eyes: ๐Ÿ˜ณ :flushed: ๐Ÿ˜Œ :relieved:
๐Ÿ˜† :satisfied: ๐Ÿ˜ :grin: ๐Ÿ˜‰ :wink:
๐Ÿ˜œ :stuck_out_tongue_winking_eye: ๐Ÿ˜ :stuck_out_tongue_closed_eyes: ๐Ÿ˜€ :grinning:
๐Ÿ˜— :kissing: ๐Ÿ˜™ :kissing_smiling_eyes: ๐Ÿ˜› :stuck_out_tongue:
@flavioamieiro
flavioamieiro / wp_extractor.py
Created March 21, 2013 21:53
Extrai textos do dump da wikipedia em xml
from lxml import etree
FILENAME = 'data/ptwiki-20130306-pages-meta-current.xml'
def get_parser():
for event, element in etree.iterparse(FILENAME, events=('end',)):
if element.tag.endswith('page'):
namespace_tag = element.find(
'{http://www.mediawiki.org/xml/export-0.8/}ns')
if namespace_tag.text == '0':