Skip to content

Instantly share code, notes, and snippets.

Working from home

Giuliano Oliveira giuliano-oliveira

Working from home
  • Brazil
View GitHub Profile
turicas /
Last active Aug 13, 2022
Exemplo de código para acessar dados do Brasil.IO
import csv
import gzip
import io
import json
from urllib.parse import urlencode, urljoin
from urllib.request import Request, urlopen
class BrasilIO:
escamoteur / nextField.dart
Created Sep 13, 2019
So easy is it now to implement a next field behavior for forms, meaning that the focus is moved as soon the user tabs the next button on the keyboard
View nextField.dart
class _MyHomePageState extends State<MyHomePage>
with SingleTickerProviderStateMixin {
TabController _tabController;
FocusScopeNode _node = FocusScopeNode(); /// <-----------------
void initState() {
_tabController = TabController(length: 3, vsync: this);
giuliano-oliveira /
Last active Aug 16, 2020
Move tex files and compiles them in a temp dir, then move pdf file to root. Works on linux and requires nodemon and latexmk
#!/usr/bin/env python3
import argparse
import os
from tempfile import mkdtemp
hacknug / tailwind.config.js
Created Feb 8, 2019
TailwindCSS default config
View tailwind.config.js
Tailwind - The Utility-First CSS Framework
A project by Adam Wathan (@adamwathan), Jonathan Reinink (@reinink),
David Hemphill (@davidhemphill) and Steve Schoger (@steveschoger).
Welcome to the Tailwind config file. This is where you can customize
Tailwind specifically for your project. Don't be intimidated by the
length of this file. It's really just a big JavaScript object and
romuald /
Created Nov 2, 2018
python asyncio shield decorator
def shielded(func):
Makes so an awaitable method is always shielded from cancellation
async def wrapped(*args, **kwargs):
return await asyncio.shield(func(*args, **kwargs))
return wrapped
amitripshtos /
Created Jul 18, 2017
Exception handling middleware for aiohttp (python 3.5)
def json_error(status_code: int, exception: Exception) -> web.Response:
Returns a Response from an exception.
Used for error middleware.
:param status_code:
:param exception:
return web.Response(
Tithen-Firion / openload.js
Last active Nov 20, 2021
Openload: extract download URL using PhantomJS
View openload.js
// Usage: phantomjs openload.js <video_url>
// if that doesn't work try: phantomjs --ssl-protocol=any openload.js <video_url>
var separator = ' | ';
var page = require('webpage').create(),
system = require('system'),
id, match;
if(system.args.length < 2) {
console.error('No URL provided');
PurpleBooth /
Last active Sep 29, 2022
A template to make good

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.


aruld / foreachlistset.dart
Created Oct 19, 2011
Dart forEach() on a List/Set
View foreachlistset.dart
main() {
List<String> list = new List<String>();
list.forEach((element) => print(element));
Set<String> set = Set.from(list);
set.forEach((element) => print(element));