Skip to content

Instantly share code, notes, and snippets.

View SergioSV96's full-sized avatar
😁
Looking for some challenges!

Sergio Sánchez Vallés SergioSV96

😁
Looking for some challenges!
View GitHub Profile
@sparack
sparack / tweepy_migration_guide.md
Created April 14, 2022 00:31
A guide to migrating your code in Python that uses Tweepy from the Twitter API v1.1 to the Twitter API v2

Guide to migrating your code from Twitter API v1.1 to v2 with Tweepy in Python

Tweepy is a popular library that allows developers to interact with the Twitter API in Python. Since the launch of the new Twitter API v2, Tweepy has been updated to support the new API. Many students and developers continue to use the old Twitter API v1.1 in Tweepy, because they are unware of the new API v2 or because they do not know how to migrate their code to use v2.

In this guide, I will show you how you can migrate your Tweepy code in Python that uses the old Twitter API v1.1 to use the new Twitter API v2.

In order to use the Twitter API, you first need to sign up for access. Once you have access, you need to get your keys and tokens from the developer portal to connect to the Twitter API. To learn how to get your keys and tokens based on your access levels, check out t

@lazarusjames
lazarusjames / twitchtest.txt
Created January 19, 2020 15:36
CSS Chatbox Full Username
@import url(https://fonts.googleapis.com/css?family=Martel:700);
* {
box-sizing: border-box;
}
html, body {
height: 100%;
overflow: hidden;
}
@qqpann
qqpann / get_tweet_replies.py
Last active December 7, 2020 15:45
[Get Tweet Replies] Get Tweet Replies with Twitter API #twitter #python #tweepy
# Author: Qiushi Pan (@qqhann)
# This is a code snippet with sample usage, to get replies to a specific tweet.
# =====
import tweepy
import time
import os
from collections import defaultdict
from dotenv import load_dotenv, find_dotenv
env = load_dotenv(find_dotenv(), override=True)
@Villanuevand
Villanuevand / README-español.md
Last active July 24, 2024 20:59
Una plantilla para hacer un buen README.md. Inspirado en el gist de @PurpleBooth => https://gist.github.com/PurpleBooth/109311bb0361f32d87a2

Título del Proyecto

Acá va un párrafo que describa lo que es el proyecto

Comenzando 🚀

Estas instrucciones te permitirán obtener una copia del proyecto en funcionamiento en tu máquina local para propósitos de desarrollo y pruebas.

Mira Deployment para conocer como desplegar el proyecto.

@echo off
if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)
@rem *** Disable Some Service ***
sc stop DiagTrack
sc stop diagnosticshub.standardcollector.service
sc stop dmwappushservice
sc stop WMPNetworkSvc
sc stop WSearch
@signaleleven
signaleleven / ambixi.py
Last active December 1, 2019 15:25
Boblight - yeelight
#THIS CODE IS TERRIBLE. It's a proof of concept, not a finished product.
from yeelight import *
import sys
import time
bulb2 = Bulb(sys.argv[1])
bulb = Bulb(sys.argv[2])
time.sleep(0.5)
try:
@NathanGiesbrecht
NathanGiesbrecht / noip2.service
Last active June 26, 2024 15:32
Systemd Service file for no-ip.com dynamic ip updater
# Simple No-ip.com Dynamic DNS Updater
#
# By Nathan Giesbrecht (http://nathangiesbrecht.com)
#
# 1) Install binary as described in no-ip.com's source file (assuming results in /usr/local/bin)
# 2) Run sudo /usr/local/bin/noip2 -C to generate configuration file
# 3) Copy this file noip2.service to /etc/systemd/system/
# 4) Execute `sudo systemctl daemon-reload`
# 5) Execute `sudo systemctl enable noip2`
# 6) Execute `sudo systemctl start noip2`