--- This guide is now available on libgdx.com. Check it out here. If you have any questions, join us on Discord! ---
- To switch to libGDX's LWJGL 3 backend, open your root
build.gradlefile and replace the LWJGL backend dependency:
| S3_ACCESS_KEY_ID_GITLAB_BACKUP=<ACCESS_KEY> | |
| S3_SECRET_ACCESS_KEY_GITLAB_BACKUP=<SECRET_KEY> |
| import java.util.function.DoubleFunction; | |
| public class Derivatives { | |
| // approximate the limit | |
| private static final double DX = 0.0001; | |
| /** | |
| * @param f f(x), the function to derive | |
| * @return f'(x), the derivative of the f(x) | |
| */ |
| error_page 500 /500.html; | |
| location /500.html{ | |
| return 500 '{"error": {"status_code": 500,"status": "Internal Server Error"}}'; | |
| } | |
| error_page 502 /502.html; | |
| location /502.html{ | |
| return 502 '{"error": {"status_code": 502,"status": "Bad Gateway"}}'; | |
| } |
| package ascii; | |
| import javax.imageio.ImageIO; | |
| import javax.swing.*; | |
| import javax.swing.filechooser.FileNameExtensionFilter; | |
| import java.awt.*; | |
| import java.awt.image.BufferedImage; | |
| import java.io.File; | |
| /*Copyright (c) 2011 Aravind Rao |
| # The following command works for downloading when using Git for Windows: | |
| # curl -LOf http://gist.githubusercontent.com/kmorcinek/2710267/raw/.gitignore | |
| # | |
| # Download this file using PowerShell v3 under Windows with the following comand: | |
| # Invoke-WebRequest https://gist.githubusercontent.com/kmorcinek/2710267/raw/ -OutFile .gitignore | |
| # | |
| # or wget: | |
| # wget --no-check-certificate http://gist.githubusercontent.com/kmorcinek/2710267/raw/.gitignore | |
| # User-specific files |
| location ~* \.svg$ { | |
| default_type image/svg+xml; | |
| # caching za procy in server odstrani ce ne zelis | |
| expires max; | |
| add_header Pragma public; | |
| add_header Cache-Control "public, must-revalidate, proxy-revalidate"; | |
| } |