Skip to content

Instantly share code, notes, and snippets.

Not Gisting Yet
@levancho
levancho / YUI3 Widget Template for Netbeans 6.x
Created December 27, 2009 03:52
YUI3 Widget Template for Netbeans 6.x
<#-- 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">
/**
YUI({
.....
modules: {
myPlainModule: {
fullpath: 'http://myPlainModule.js'
},
singleModule: {
fullpath: 'http://singleModule.js',
requires: ['myPlainModule']
},
var myPlainFile = {};
YUI.add("someSingleModule", function(Y){
//something here
}, "0.1", { requires: ["io-base"] });
YUI.add("SomeOtherModuleOne", function(Y){
//something here
}, "0.1", { requires: ["io-base"] });
YUI.add("SomeOtherModuleTwo", function(Y){
//something here
}, "0.1", { requires: ["io-base"] });
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
</body>
</html>
@levancho
levancho / dabblet.css
Created December 20, 2013 20:34
The first commented line is your dabbler’s title Joe
/**
* The first commented line is your dabbler’s title Joe
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@Configuration
@EnableWebSecurity(debug = false)
public class DespaniDualSecurityConfig extends WebSecurityConfigurerAdapter {
@Autowired
DespSecurityManager secMan;
@Autowired
private UserServices userDetailsService;
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) {