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
diff -r 6e14043ceae4 src/jdk.compiler/share/classes/com/sun/tools/javac/parser/JavaTokenizer.java | |
--- a/src/jdk.compiler/share/classes/com/sun/tools/javac/parser/JavaTokenizer.java Thu Aug 11 15:47:10 2016 +0000 | |
+++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/parser/JavaTokenizer.java Tue Aug 30 06:13:27 2016 +0900 | |
@@ -629,6 +629,39 @@ | |
break loop; | |
case '\"': | |
reader.scanChar(); | |
+ | |
+ if (reader.ch == '\"' && reader.bp < reader.buflen) { | |
+ reader.scanChar(); |
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
use strict; | |
use Term::ReadKey; | |
use IO::Prompt::Simple; | |
use Scope::Guard qw/guard/; | |
my $guard = guard { Term::ReadKey::ReadMode(0) }; # restore | |
Term::ReadKey::ReadMode(4); # no echo | |
my $answer = prompt 'some question...'; |
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
package com.example; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import org.mockito.InjectMocks; | |
import org.mockito.runners.MockitoJUnitRunner; | |
import java.util.HashMap; | |
import java.util.Map; |
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
# docker build -t ansible-wheel . | |
# docker run --rm -v $PWD/output:/output -t ansible-egg | |
FROM centos:6.6 | |
RUN yum update -y | |
RUN yum install -y libffi-devel python-devel openssl-devel gcc wget | |
RUN wget https://bootstrap.pypa.io/get-pip.py | |
RUN python get-pip.py |
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
<!doctype html> | |
<html> | |
<head> | |
<script type="text/javascript" src="node_modules/incremental-dom/dist/incremental-dom.js"></script> | |
</head> | |
<body> | |
<x-foo></x-foo> | |
<x-foo></x-foo> |
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
class ProcessExporter | |
def initialize(filter=nil) | |
unless filter.nil? | |
@filter = /#{filter}/ | |
end | |
end | |
def run | |
Dir.glob("/proc/*/stat") do |file| | |
next unless File.file?(file) |
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 java.io.Closeable; | |
import java.io.IOException; | |
import java.net.InetSocketAddress; | |
import java.net.URI; | |
import java.nio.ByteBuffer; | |
import java.nio.channels.*; | |
import java.nio.charset.StandardCharsets; | |
import java.util.*; | |
import java.util.logging.Logger; |
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
use v6; | |
my $port = 15555; | |
my $host = '127.0.0.1'; | |
say "$host:$port"; | |
react { | |
whenever IO::Socket::Async.listen($host, $port) -> $conn { | |
my $chan = $conn.chars-supply.Channel; |
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
use v6; | |
use Test; | |
unlink 'foobar.txt'; | |
my $fh = open 'foobar.txt', :rw; | |
$fh.print('foo'); | |
ok $fh.path.e; |
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
# lib/C/B.pm | |
use v6; | |
unit class C::B; | |
method a() { | |
my $pkg = 'C::M'; | |
require ::($pkg); | |
::($pkg).new(); | |
say "DONE"; | |
} |