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 (a) { | |
for (var b = H(a), c = ea(l[gb](a[D] / 2)), d = 0, e = 0, f = 0, g = 0; d < b; ++g) { | |
var h = 1, | |
n = 0, | |
r; | |
do r = a[Kc](d++) - 63 - 1, h += r << n, n += 5; while (31 <= r); | |
e += h & 1 ? ~(h >> 1) : h >> 1; | |
h = 1; | |
n = 0; | |
do r = a[Kc](d++) - 63 - 1, h += r << n, n += 5; while (31 <= r); |
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.junit.Assert; | |
import org.junit.Test; | |
public class URLEncoderTest extends Assert { | |
public static void assertCharSequenceEquals( CharSequence expected, CharSequence actual ) { | |
for( int i = 0; i < expected.length(); i++ ) { | |
assertEquals( "at position " + i, expected.charAt( i ), actual.charAt( i ) ); | |
} | |
} |
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.nio.CharBuffer; | |
import java.util.BitSet; | |
public class URLEncoder { | |
private static final char [] IGNORED_BY_DEFAULT = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!*()-_'.~".toCharArray(); | |
private static final char [] HEX = "0123456789ABCDEF".toCharArray(); | |
private static final URLEncoder DEFAULT = new URLEncoder(); | |
public static CharSequence encode( CharSequence 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
import java.security.Key; | |
import java.security.SecureRandom; | |
import javax.crypto.Cipher; | |
import javax.crypto.KeyGenerator; | |
import javax.crypto.SecretKey; | |
import javax.crypto.spec.IvParameterSpec; | |
import org.apache.commons.codec.binary.Base64; |
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
A node has access to its ancestors, but not to its siblings. | |
Each node has a symbol table. | |
@ event a | |
print "In the subscriber for the event, the symbol 'a' should be accessible in the parent's symbol table, set to the value of 123." | |
event a=123 | |
print "After triggering the event, the symbol 'a' should be accessible in the parent's symbol table, set to the value of 123." | |
event a | |
print "This should resolve the symbol 'a' prior to publishing the event. If 'a' cannot be resolved, then use it only as a matcher for subscribers." | |
After publishing a non-subscriber event, publish its children. |