This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PIL import Image | |
import sys | |
import os | |
import glob | |
thumb_size = (256, 256) | |
def main(path): | |
if (path[0] != '/'): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class App extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
currentPage: 0, | |
pageCount: 10, | |
} | |
} | |
handlePageClick = (data) => { |
NewerOlder