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
| preProcessors=cssImport,semicolonAppender | |
| postProcessors=lessCss |
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
| <groups xmlns="http://www.isdc.ro/wro"> | |
| <group name="web-all"> | |
| <css>/less/*.less</css> | |
| <css>/less/pages/*.less</css> | |
| </group> | |
| </groups> |
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
| <beans:beans xmlns="http://www.springframework.org/schema/security" | |
| xmlns:beans="http://www.springframework.org/schema/beans" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://www.springframework.org/schema/beans | |
| http://www.springframework.org/schema/beans/spring-beans-3.0.xsd | |
| http://www.springframework.org/schema/security | |
| http://www.springframework.org/schema/security/spring-security-3.0.xsd"> | |
| <global-method-security secured-annotations="enabled" /> |
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
| @Configuration | |
| @EnableWebSecurity | |
| public class SecurityConfig extends WebSecurityConfigurerAdapter { | |
| @Autowired private UserDetailsServiceImpl userDetailsServiceImpl; | |
| @Override | |
| protected void configure(HttpSecurity http) throws Exception { | |
| http | |
| .csrf() |
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 the package to control GPIO | |
| import RPi.GPIO as GPIO | |
| # Set mode to BCM - this allows us to reference pins by numbers labelled on the cobbler, not just the normal pin number | |
| GPIO.setmode(GPIO.BCM) | |
| # we connected out light to pin labelled 23, so we will store that so we can easily reference it | |
| GREEN_LED = 23 | |
| # Setup and turn on the green light | |
| GPIO.setup(GREEN_LED, GPIO.OUT) |
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
| //Assume URL = /?rob=awesome&test=true&coldfusion=wtf | |
| var local.clonedUrl = structCopy( url ); | |
| writeDump( local.clonedUrl ); | |
| writeDump( url ); | |
| structDelete( local.clonedUrl, "rob" ); | |
| writeDump( local.clonedUrl ); | |
| writeDump( url ); |
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
| @Configuration | |
| @EnableWebSecurity | |
| @Order(2) | |
| public class WebSecurityConfig extends WebSecurityConfigurerAdapter { | |
| @Autowired private UserDetailsServiceImpl userDetailsServiceImpl; | |
| @Autowired private CustomTokenBasedRememberMeService tokenBasedRememberMeService; | |
| @Autowired private RememberMeAuthenticationProvider rememberMeAuthenticationProvider; | |
| @Override protected void configure(HttpSecurity http) throws Exception { |
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
| @Configuration | |
| @EnableWebSecurity | |
| @Order(1) | |
| public class ApiSecurityConfig extends WebSecurityConfigurerAdapter { | |
| private String tokenKey = "some token goes here"; | |
| @Autowired private UserDetailsServiceImpl userDetailsServiceImpl; | |
| @Override protected void configure(HttpSecurity http) throws Exception { |
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
| public class CustomTokenBasedRememberMeService extends TokenBasedRememberMeServices{ | |
| public CustomTokenBasedRememberMeService(String key, UserDetailsService userDetailsService) { | |
| super(key, userDetailsService); | |
| } | |
| private final String HEADER_SECURITY_TOKEN = "Header name for token goes here"; | |
| /** | |
| * Locates the Spring Security remember me token in the request and returns its value. |
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
| <MultiAutoCompleteTextView | |
| android:layout_marginTop="100dp" | |
| android:id="@+id/multiAutoCompleteTextView1" | |
| android:layout_width="fill_parent" | |
| android:layout_height="wrap_content" | |
| android:layout_alignParentTop="true" | |
| android:layout_centerHorizontal="true" | |
| android:completionThreshold="1" | |
| android:ems="10" > | |
| </MultiAutoCompleteTextView> |