Skip to content

Instantly share code, notes, and snippets.

View git-jr's full-sized avatar

Junior git-jr

View GitHub Profile
@git-jr
git-jr / PromptsDreamByWombo
Created March 4, 2023 18:53
Comandos (prompts) para gerar imagens com a inteligência artificial do app Dream By Wombo, veja mais informações no vídeo: https://youtu.be/eDX7bepJEWM
# Frases que dão um aspecto legal (adicione em ideias que você já tem):
in a fantasy world
in a Cyberpunk City
in raining city
# Esses aqui é só copiar, testar e ir bricando com as variações:
a smartphone fly in the mon in a fantasy world
@git-jr
git-jr / gist:dbeaed858fed1870310521c796275a9b
Created November 11, 2022 18:54
Comandos tutorial Naptime - Doze Mode Android
Comandos se for fazer pelo celular:
pm grant com.franco.doze android.permission.WRITE_SECURE_SETTINGS
pm grant com.franco.doze android.permission.DUMP
Comandos se for fazer pelo pelo computador:
@git-jr
git-jr / Sample 1 - Data Science Pydroid.py
Created June 16, 2022 02:27
Exemplos de código para começar em Ciência de Dados pelo Celular. Uso no vídeo: https://youtu.be/29WQ8c3P9mw
import numpy as np
from matplotlib import pyplot as plt
ys = 200 + np.random.randn(100)
x = [x for x in range(len(ys))]
plt.plot(x, ys, '-')
plt.fill_between(x, ys, 195, where=(ys > 195), facecolor='g', alpha=0.6)
plt.title("Exempo de Gráfico")
@git-jr
git-jr / gist:59fdb1e23acbef769d318aabc93d02ef
Created November 20, 2020 23:08
Comandos root adb e fastboot, para uso do tutorial: https://youtu.be/GTD65gxao_w
adb devices
adb reboot bootloader
fastboot devices
fastboot flash boot magisk_patched.img
fastboot reboot
import time
import androidhelper
droid = androidhelper.Android()
texto = "Texto padrão"
msg = "Alguma mensagem aqui"
tempo = 500
##### Sistema #####
@git-jr
git-jr / Baixa e instala o Tweepy no Pydroid
Last active January 17, 2023 18:21
Código para postar um Tweet com um rótulo customizado através da API Tweepy
pip install tweepy
@git-jr
git-jr / gist:9005f48691847ffa6edf2bd68e25e567
Created June 18, 2020 17:27
Código de teste realizar um Tweet com um rótulo customizado
# importing the module
import tweepy
# personal details
consumer_key ="xxxxxxxxxxxxxx"
consumer_secret ="xxxxxxxxxxxxxx"
access_token ="xxxxxxxxxxxxxx"
access_token_secret ="xxxxxxxxxxxxxx"
# authentication of consumer key and secret
@git-jr
git-jr / recursao_sinonimica.py
Created November 13, 2019 18:20
Código para explicar recursão e como esse método pode identificar uma frase trocando os sinônimos das palavras
class Sinon():
def sinonar(self, sinonimos):
aindaFalta = len(sinonimos)
if aindaFalta >= 2:
listaSin1 = sinonimos[0] # Ex: que, qual...
listaSin2 = sinonimos[1] # Ex: dia, data...
geradas = []