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
//(0, 5) Покрывает из 16 строк = 2 | |
//(0, 5) Покрывает из 12 ветвлений = 1 | |
//(0, 5) Покрывает из 20 условий = 1 | |
int gcd(int a, int b) | |
{ | |
if(a == 0) // + | |
return b; // + | |
if(b == 0) | |
return a; |
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
//(0, 5) Покрывает из 16 строк = 2 | |
//(0, 5) Покрывает из 12 ветвлений = 1 | |
//(0, 5) Покрывает из 20 условий = 1 | |
int gcd(int a, int b) | |
{ | |
if(a == 0) // + | |
return b; // + | |
if(b == 0) | |
return a; |
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
object hello extends App { | |
import scala.concurrent.ExecutionContext.Implicits.global | |
val f1: Future[Int] =Future.failed(new Exception("hello i m exc")) | |
val f2: Future[Int] = Future.successful(13) | |
val res = for { | |
f11 <- f1 | |
f22 <- f2 | |
} yield f11 + f22 |
This file has been truncated, but you can view the full file.
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
~/vertx-stack-generation mvn clean install master | |
[INFO] Scanning for projects... | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Reactor Build Order: | |
[INFO] | |
[INFO] Vert.x stack generation [pom] | |
[INFO] vertx-lang-js [jar] | |
[INFO] Vert.x Groovy Language Support [jar] | |
[INFO] vertx-lang-kotlin [jar] | |
[INFO] vertx-lang-ruby [jar] |
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
set -e | |
git clone $1 | |
DIR_NAME=$(echo $1 | awk -F'/' '{print $5}') | |
cd $DIR_NAME | |
python setup.py bdist_rpm5 || true | |
abf create $(find build/ -wholename "*SRPMS/*.src.rpm") sammers21 | |
abf get "python-$DIR_NAME" | |
cd "python-$DIR_NAME" | |
abf fetch | |
urpmi *.spec |
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
class SynchronizedSocket extends Socket { | |
private final Socket wrappedSocket; | |
public SynchronizedSocket(Socket wrappedSocket) { | |
this.wrappedSocket = wrappedSocket; | |
} | |
@Override | |
public synchronized void connect(SocketAddress endpoint) throws IOException { | |
wrappedSocket.connect(endpoint); |
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
123 |
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
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5140 Overwriting grammar scope name to file mapping for scope source.kotlin. | |
Old grammar file: file:///Users/sammers/.vscode/extensions/fwcd.kotlin-0.2.18/resources/syntaxes/Kotlin.tmLanguage.json. | |
New grammar file: file:///Users/sammers/.vscode/extensions/mathiasfrohlich.kotlin-1.7.1/syntaxes/Kotlin.tmLanguage | |
register @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5140 | |
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5140 Overwriting grammar scope name to file mapping for scope markdown.kotlin.codeblock. | |
Old grammar file: file:///Users/sammers/.vscode/extensions/fwcd.kotlin-0.2.18/resources/syntaxes/codeblock.json. | |
New grammar file: file:///Users/sammers/.vscode/extensions/mathiasfrohlich.kotlin-1.7.1/syntaxes/codeblock.json | |
register @ /Applications/Visual Studio Code.app/Contents/Resources/app/o |
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
set -e | |
set -x | |
docker pull ubuntu | |
docker pull graphiteapp/graphite-statsd | |
docker pull g4s8/artipie-base | |
docker tag ubuntu localhost:5000/ubuntu | |
docker tag graphiteapp/graphite-statsd localhost:5000/graphiteapp/graphite-statsd | |
docker tag g4s8/artipie-base localhost:5000/g4s8/artipie-base |
OlderNewer