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
Not Gisting Yet |
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
<#-- This is a FreeMarker template --> | |
<#-- You can change the contents of the license inserted into | |
# each template by opening Tools | Templates and editing | |
# Licenses | Default License --> | |
<#assign licenseFirst = "/* "> | |
<#assign licensePrefix = " * "> | |
<#assign licenseLast = " */"> | |
<#include "../Licenses/license-${project.license}.txt"> | |
/** |
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
YUI({ | |
..... | |
modules: { | |
myPlainModule: { | |
fullpath: 'http://myPlainModule.js' | |
}, | |
singleModule: { | |
fullpath: 'http://singleModule.js', | |
requires: ['myPlainModule'] | |
}, |
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
var myPlainFile = {}; |
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
YUI.add("someSingleModule", function(Y){ | |
//something here | |
}, "0.1", { requires: ["io-base"] }); |
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
YUI.add("SomeOtherModuleOne", function(Y){ | |
//something here | |
}, "0.1", { requires: ["io-base"] }); | |
YUI.add("SomeOtherModuleTwo", function(Y){ | |
//something here | |
}, "0.1", { requires: ["io-base"] }); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
</body> | |
</html> |
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
/** | |
* The first commented line is your dabbler’s title Joe | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |
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
@Configuration | |
@EnableWebSecurity(debug = false) | |
public class DespaniDualSecurityConfig extends WebSecurityConfigurerAdapter { | |
@Autowired | |
DespSecurityManager secMan; | |
@Autowired | |
private UserServices userDetailsService; |
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
public class JWTAuthenticationEntryPoint implements AuthenticationEntryPoint { | |
@Override | |
public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException exception) | |
throws IOException, ServletException { | |
response.setStatus(403); | |
response.setContentType(MediaType. APPLICATION_JSON_VALUE); | |
String message; | |
if (exception.getCause() != null) { |
OlderNewer