Feel free to contact me at [email protected] or tweet at me @statisticsftw
This is a rough outline of how we utilize next.js and S3/Cloudfront. Hope it helps!
It assumes some knowledge of AWS.
| # Copied from code shared on Gitter (https://gitter.im/tiangolo/fastapi) by @dmontagu | |
| # Decorator for fastapi | |
| def repeat_every(*, seconds: float, wait_first: bool = False): | |
| def decorator(func: Callable[[], Optional[Awaitable[None]]]): | |
| is_coroutine = asyncio.iscoroutinefunction(func) | |
| @wraps(func) | |
| async def wrapped(): | |
| async def loop(): | |
| if wait_first: |
| -- LR imports | |
| local LrApplication = import("LrApplication") | |
| local LrApplicationView = import("LrApplicationView") | |
| local LrBinding = import("LrBinding") | |
| local LrDevelopController = import("LrDevelopController") | |
| local LrDialogs = import("LrDialogs") | |
| local LrExportSession = import("LrExportSession") | |
| local LrFileUtils = import("LrFileUtils") | |
| local LrFunctionContext = import("LrFunctionContext") | |
| local LrLogger = import("LrLogger") |
Feel free to contact me at [email protected] or tweet at me @statisticsftw
This is a rough outline of how we utilize next.js and S3/Cloudfront. Hope it helps!
It assumes some knowledge of AWS.
| <html> | |
| <head> | |
| <title>jsonp test</title> | |
| <script src="http://code.jquery.com/jquery-1.6.2.min.js"></script> | |
| <script type="text/javascript"> | |
| $(function(){ | |
| $('#select_link').click(function(e){ | |
| e.preventDefault(); | |
| console.log('select_link clicked'); | |