Skip to content

Instantly share code, notes, and snippets.

@jadsonbr
jadsonbr / tree_page.dart
Created January 9, 2020 02:34
Flutter TreeView
import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:tree_view/tree_view.dart';
import 'dart:collection';
class Folder {
String descricao;
String id;
Folder({this.descricao, this.id});
@jadsonbr
jadsonbr / file_upload.py
Created December 4, 2019 16:43
Envio de arquivos com Flask e socket.io
from flask_cors import CORS
socketio = SocketIO()
app = Flask(__name__)
CORS(app)
# CONFIGURACAO
socketio.init_app(app, ping_timeout=1800, binary=True, max_http_buffer_size=10000000000)
@jadsonbr
jadsonbr / README.md
Created August 13, 2019 20:34 — forked from guillaumevincent/README.md
Windows Service with Python 3.5 and pyinstaller
@jadsonbr
jadsonbr / env.py
Created August 2, 2018 16:42 — forked from nickretallack/env.py
How to run multi-tenant migrations in alembic.
from __future__ import with_statement
from alembic import context
from sqlalchemy import engine_from_config, pool, MetaData, Table, ForeignKeyConstraint
from logging.config import fileConfig
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
config = context.config
# Interpret the config file for Python logging.
unit vkbdhelper;
{
Force focused control visible when Android/IOS Virtual Keyboard showed or hiden
How to use:
place vkdbhelper into your project uses section. No more code needed.
== Known issues == :
* after device rotation keyboard can change height without form notification.
this can move focused control to wrong y-coord...
unit qdac_fmx_vkhelper;
{
Force focused control visible when Android Virtual Keyboard showed or hiden
How to use:
place qdac_fmx_vkhelper into your project uses section.No more code needed.
Changes
=======
2017.3.27
@jadsonbr
jadsonbr / comoNaoDeixarNoVaucoNoWhatsapp.js
Created January 3, 2018 16:41 — forked from callmeloureiro/comoNaoDeixarNoVaucoNoWhatsapp.js
Como não deixar no vácuo no whatsapp
/*
Hoje não deixaremos mais ninguém no vácuo no whatsapp
Para utilizar:
- Abra o web.whatsapp.com;
- Abra o console e cole o código que está no gist;
- Aguarde e verá uma mensagem sendo enviada a cada momento que alguém te enviar alguma mensagem.
Confira também como ser chato no whatsapp: https://gist.github.com/mathloureiro/4c74d60f051ed59650cc76d1da0d32da
e como ser chato no mensseger: https://gist.github.com/mathloureiro/d3f91d19cf148838217e42a0c6df5ed8
*/
@jadsonbr
jadsonbr / angular-nativescript-course-setup.sh
Created November 20, 2017 13:15 — forked from berardo/angular-nativescript-course-setup.sh
Script to install all good tools on a fresh new macOS machine. Some command are commented out because the main reason for this file is to be used on my online course: https://udemy.com/angular-native
#!/bin/sh
# Allow locate commands
# sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist
# xcode command line - Select: "Get xcode" and go get a coffee (preferably far from your desk :)
xcode-select --install
# home-brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@jadsonbr
jadsonbr / ath10k
Created June 21, 2017 17:47 — forked from MichelLacerda/ath10k
ath10k debian
http://askubuntu.com/questions/708061/qualcomm-atheros-device-168c0042-rev-30-wi-fi-driver-installation
Ubuntu 16.04 users should just need to
wget http://mirrors.kernel.org/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.157.5_all.deb
sudo dpkg -i linux-firmware_1.157.5_all.deb
Reboot
@jadsonbr
jadsonbr / requirements-laravel-5.4.sh
Created June 12, 2017 18:24
Verifica e instala os requisitos para o Laravel 5.4
#!/bin/bash
#Criado por: Jadson Bonfim Ribeiro - 2017
#Contato: jadsonbr@outlook.com.br
### Verifica requisitos para deploy do Laravel 5.4
clear
echo "$(tput setaf 3)Verificando requisitos do laravel 5.2$(tput sgr 0)"
##################################################
# Requisitos PHP
##################################################
echo