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
grammar Grunge; | |
root : statement*; | |
// language rules | |
literal : LITERAL | |
| '{' LITERAL ( ',' LITERAL )* '}' | |
; | |
variable : VAR ; | |
constant : CONSTANT ; |
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
package org.zyre; | |
import static org.junit.Assert.*; | |
import org.junit.Test; | |
import org.zeromq.ZMQ; | |
import org.zeromq.ZMQ.Socket; | |
import org.zeromq.ZFrame; | |
import org.zeromq.ZContext; | |
/** |
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
grammar SGML; | |
// rules | |
root : aggregate ; | |
aggregate : START_TAG ( aggregate | element )* END_TAG ; | |
element : START_TAG content END_TAG? ; | |
content : WORD+ ; | |
// tokens | |
START_TAG : LT IDENTIFIER GT ; |
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
enum class CharacterClass(val regex: String) { | |
Alpha("[A-Za-z]"), UpperAlpha("[A-Z]"), LowerAlpha("[a-z]"), Numeric("[0-9]"), AlphaNumeric("[A-Za-z0-9]"), Symbol("[!@#$%^&*()\\-_+|~=`{}\\[\\]:\";'<>?,.\\/\\\\]"), Character(".") | |
} | |
enum class PolicyType(val text: String) { | |
MustContain("MUST contain"), MustNotContain("MUST NOT contain"), MustMatch("MUST match") | |
} | |
enum class RangeType(val text: String) { | |
AtMost("at most %s"), AtLeast("at least %s"), Exactly("exactly %s"), Between("between %s and %s") |
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
<template> | |
<require from="./ux-select"></require> | |
<div style="margin: 20px 0;"> | |
<ux-select options.bind="['Option 1', 'Option 2', '', 'Option 3']" value="Option 2"></ux-select> | |
</div> | |
<div style="margin: 20px 0;"> | |
<ux-select options.bind="['Some other option', 'A second option', 'A third option', 'A really long fourth option that is wider than the known universe']"></ux-select> | |
</div> | |
<div style="margin: 20px 0;"> | |
<ux-select options.bind="['CA', 'NE', 'WY']"></ux-select> |
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
import java.util.AbstractQueue | |
/** | |
* RingBuffer implementation of the Queue interface, used to create a fixed-size | |
* collection. A ring buffer is a collection that is safe to add to, will not | |
* run out of space, and drops the oldest element when adding to a full buffer. | |
*/ | |
class RingBuffer<E>(private val capacity: Int = 16) : AbstractQueue<E>() { | |
private var head = 0 | |
override var size = 0 |
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
function exp() { | |
export $1=$(cat /dev/stdin) | |
} |
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
import org.springframework.context.annotation.Bean | |
import org.springframework.security.authentication.AnonymousAuthenticationProvider | |
import org.springframework.security.authentication.AuthenticationManager | |
import org.springframework.security.authentication.ProviderManager | |
import org.springframework.security.config.annotation.web.builders.HttpSecurity | |
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity | |
import org.springframework.security.config.web.servlet.invoke | |
import org.springframework.security.oauth2.jwt.JwtDecoder | |
import org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationConverter | |
import org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationProvider |
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
Apache License | |
Version 2.0, January 2004 | |
http://www.apache.org/licenses/ | |
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION | |
1. Definitions. | |
"License" shall mean the terms and conditions for use, reproduction, | |
and distribution as defined by Sections 1 through 9 of this document. |
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
/* | |
* Copyright 2002-2021 the original author or authors. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* https://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
OlderNewer