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.util.*; | |
| import java.io.*; | |
| import java.math.*; | |
| /** | |
| * Auto-generated code below aims at helping you parse | |
| * the standard input according to the problem statement. | |
| **/ | |
| class Solution { |
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.util.LinkedList; | |
| import java.util.List; | |
| import java.util.Optional; | |
| import java.util.Scanner; | |
| /** | |
| * Don't let the machines win. You are humanity's last hope... | |
| **/ | |
| class Player { |
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.util.Arrays; | |
| import java.util.Comparator; | |
| import java.util.HashSet; | |
| import java.util.LinkedList; | |
| import java.util.Objects; | |
| import java.util.Optional; | |
| import java.util.Queue; | |
| import java.util.Scanner; | |
| import java.util.Set; | |
| import java.util.stream.Stream; |
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.util.HashMap; | |
| import java.util.HashSet; | |
| import java.util.Map; | |
| import java.util.Scanner; | |
| import java.util.Set; | |
| import java.util.stream.Collectors; | |
| class Solution { | |
| private static class Node { |
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.util.*; | |
| import java.io.*; | |
| import java.math.*; | |
| /** | |
| * Auto-generated code below aims at helping you parse | |
| * the standard input according to the problem statement. | |
| **/ | |
| class Player { |
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 sys, math | |
| class Node(object): | |
| '''Class representing a node of the network, each node as : | |
| a unique id, constant | |
| a list of neighbour nodes''' | |
| def __init__(self, n =0): | |
| self.n = n | |
| self.neighb = [] | |
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
| begin | |
| -- Instantiations -- | |
| AL : ALU port map (out_di_ex_b, out_di_ex_c ,out_di_ex_op(2 downto 0), out_alu, out_N, out_O, out_Z, out_C); | |
| -- DATA <= out_mem_re_b; W <= 1; -- AFC on écrit (W <= 1) - ADD_W <= out_mem_re_a; | |
| BR : Banc_registres port map (out_li_di_b(addr_size_BR-1 downto 0), out_li_di_c(addr_size_BR-1 downto 0) , | |
| out_mem_re_a(addr_size_BR-1 downto 0), w,out_mem_re_b, RST, CK, out_QA,out_QB); | |
| -- TODO : check |
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
| #!/bin/bash | |
| # Gitolite [https://github.com/sitaramc/gitolite] | |
| # Jenkins Git Plugin [https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin] | |
| # GL_REPO will contain the short relative path of the repository being pushed to, e.g. "projects/component-1", so transform it into the Git URL format that your Jenkins build jobs follow: | |
| REPOSITORY_URL=git@gitolite.example.com:$GL_REPO | |
| # Jenkins Git plugin notification URL -- update host as appropriate: | |
| TRIGGER_URL=http://jenkins.example.com:8080/git/notifyCommit?url=$REPOSITORY_URL |
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
| #$ sudo docker ps | |
| #CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
| #XXXXX haugene/transmission-openvpn:latest "dumb-init /etc/open…" 44 hours ago Up 41 hours (healthy) 0.0.0.0:8888->8888/tcp, 0.0.0.0:9091->9091/tcp haugene-transmission-openvpn1 | |
| function notify { | |
| echo "ERROR" | |
| exit -1 | |
| } | |
| error=0 | |
| nas_ip=$(curl -s http://whatismyip.akamai.com/) |
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
| serverURL=monserveur.com | |
| resp=$(curl --write-out %{http_code} --silent --output /dev/null https://$serverURL:32400/plex) | |
| if [ $resp -ne "401" ]; then | |
| #error | |
| echo "Output code is : $resp" | |
| echo "Trying to restart..." | |
| synopkg stop "Plex Media Server" | |
| sleep 5 | |
| synopkg start "Plex Media Server" | |
| sleep 10 |