Skip to content

Instantly share code, notes, and snippets.

Working from home

Giuliano Oliveira giuliano-oliveira

Working from home
  • Brazil
View GitHub Profile
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));
PurpleBooth /
Last active Oct 8, 2021
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.


Tithen-Firion / openload.js
Last active Aug 5, 2020
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');
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
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
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);
turicas /
Last active Aug 28, 2021
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: