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 re | |
r = re.compile(r"(?=\S*)([a-zA-Z0-9'-]+)((=|<|>)*(\d.*))?") | |
ref_table = {} | |
with open('~/Desktop/references.txt', 'r') as dep: | |
lines = dep.readlines() | |
lines.sort() | |
for l in lines: |
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
rsync --human-readable --progress --ignore-existing --recursive /from/path /to/path |
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
rsync --human-readable --progress --ignore-existing --recursive /from/path /to/path |
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
diskutil partitionDisk /dev/disk3 1 MBR jhfs+ partition 991.2G |
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
pip config set global.cert /path/to/filename.pem |
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
docker swarm init | |
docker node inspect ${ID} | |
docker node ls | |
docker node update --label-add app=true ${ID} | |
docker stack deploy -c .\docker-compose-stack.yml upp |
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
Get-ChildItem -File -Recurse | % { $x = get-content -raw -path $_.fullname; $x -replace "`r`n","`n" | set-content -path $_.fullname } |
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 com.company; | |
import java.util.Collections; | |
import java.util.List; | |
import java.util.stream.IntStream; | |
import static java.util.stream.Collectors.joining; | |
import static java.util.stream.Collectors.toList; | |
public class SayisalLoto { |
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.reactivestreams.Subscriber; | |
import org.reactivestreams.Subscription; | |
import reactor.core.publisher.Flux; | |
import reactor.core.publisher.FluxSink; | |
import java.util.Arrays; | |
import java.util.Queue; | |
import java.util.concurrent.LinkedBlockingQueue; | |
import java.util.stream.LongStream; |
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
ComputationGraphConfiguration conf = new NeuralNetConfiguration.Builder() | |
.updater(Updater.ADAM).adamMeanDecay(0.9).adamVarDecay(0.999) | |
.weightInit(WeightInit.XAVIER) | |
.learningRate(0.01) | |
.regularization(true).l2(0.01).l2Bias(0.01) | |
.graphBuilder() | |
.addInputs("in") | |
.addLayer("dense0", new DenseLayer.Builder().nIn(inputSize).nOut(layerSize) | |
.activation(Activation.TANH) | |
.dropOut(0) |
NewerOlder