Skip to content

Instantly share code, notes, and snippets.

View fcgomes92's full-sized avatar
:octocat:
Batata é bom

Fernando fcgomes92

:octocat:
Batata é bom
View GitHub Profile
@fcgomes92
fcgomes92 / py-thumb.py
Created May 11, 2017 14:40
Generate thumb images
from PIL import Image
import sys
import os
import glob
thumb_size = (256, 256)
def main(path):
if (path[0] != '/'):
@fcgomes92
fcgomes92 / envdir-migrate-to-dot-env.py
Last active May 10, 2017 18:56
A Gist to migrate from envdir to .env ( like Python Decouple )
from glob import glob
import os
import sys
import argparse
class AbsPathAction(argparse.Action):
def __init__(self, option_strings, dest, nargs=None, **kwargs):
super().__init__(option_strings, dest, **kwargs)
def __call__(self, parser, namespace, values, option_string=None):
class App extends React.Component {
constructor(props) {
super(props);
this.state = {
currentPage: 0,
pageCount: 10,
}
}
handlePageClick = (data) => {