This file contains hidden or 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
| interface Role { | |
| m1(): boolean; | |
| m2(): number; | |
| } | |
| interface RoleConstructor<Ts extends unknown[]> { | |
| new (...params: Ts): Role | |
| } | |
This file contains hidden or 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
| ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
| # Don't add passphrase | |
| openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
| cat jwtRS256.key | |
| cat jwtRS256.key.pub |
This file contains hidden or 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
| <!-- Conditionally load WC polyfills --> | |
| <!-- Thanks to https://github.com/geelen/x-gif for the snippet --> | |
| <script> | |
| if ('registerElement' in document | |
| && 'createShadowRoot' in HTMLElement.prototype | |
| && 'import' in document.createElement('link') | |
| && 'content' in document.createElement('template')) { | |
| // We're using a browser with native WC support! | |
| } else { | |
| document.write('<script src="/bower_components/webcomponentsjs/webcomponents.js"><\/script>'); |
This file contains hidden or 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
| import java.io.IOException; | |
| import javax.persistence.EntityTransaction; | |
| import javax.servlet.Filter; | |
| import javax.servlet.FilterChain; | |
| import javax.servlet.FilterConfig; | |
| import javax.servlet.ServletException; | |
| import javax.servlet.ServletRequest; | |
| import javax.servlet.ServletResponse; |