- Rašyti kiekvieną (+-) sakinį iš naujos eilutės (eilutės ilgis būtų gerai, jei neviršyt kokių 80 simboli teksto). Gerai todėl, kad git'as skaido tekstinį failą eilutėmis, tai pakeitimai diff'e geriau matytųsi, jei tekstas irgi būtų paskaidytas eilutėm.
- Paskaidom visą dokumentą į atskirus failus (tarkim po atskirą failą kiekvienam skyriui) ir tada tuos failus pagrindiniam faile įsimetam su
\include{file}
. Potencialiai sumažintų konflikt riziką ir šiaip skaidymas yra gerai, kaip ir visur. - Išnaudokim git'o branch galimybę. Vietoj to, kad visi dirbtų vienu metu ant master branch'o, kiekvienam issue (tarkim) pasikuriam po atskirą branch'a. Kai manom, kad padarėm viską, ko tas issue prašo, galim merge'int į master. Šitas irgi padėtų struktūrizuot darbą ir galbūt padėtų išvengti random merge konfliktų.
- Dokumento versiją atnaujinam su kiekvienu push'u į master branch'ą. Čia tik šiaip pasiūlymas, bet master'y teoriškai turėtų būt kažkokia daugiau mažiau baigta dokumento versija, todėl b
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
#define _CRT_SECURE_NO_WARNINGS | |
#include <iostream> | |
#include <iomanip> | |
#include <fstream> | |
#include <stdio.h> | |
#include <cstdio> | |
#include <stdlib.h> | |
#include <cstdlib> | |
#include <algorithm> | |
#include <cstring> |
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
validateMoveOrder :: [Move] -> Maybe String | |
validateMoveOrder [] = Nothing | |
validateMoveOrder [_] = Nothing | |
validateMoveOrder l = validateCurrentMove 0 [] l turns | |
where | |
contains :: Eq a => [a] -> a -> Bool | |
contains [] _ = False | |
contains (x:xs) el = (x == el) || contains xs el | |
showSquareTakenMsg :: Int -> String | |
showSquareTakenMsg x = |
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
instance Show ValidationError where | |
show (SquareTaken x) = "Move #" ++ show (x + 1) ++ " is invalid - the square is already taken!" | |
show (WrongPiece x expected actual) = "Wrong piece on move #" ++ | |
show (x + 1) ++ | |
". Expected '" ++ show expected ++ "', got '" ++ show actual ++ "'." | |
show (WrongName x expected actual) = "Wrong player name on move #" ++ | |
show (x + 1) ++ ". Expected '" ++ expected ++ "', got '" ++ actual ++ "'." | |
show WrongFirstMove = "X must make the first move." |
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
#define _CRT_SECURE_NO_WARNINGS | |
#include <iostream> | |
#include <iomanip> | |
#include <fstream> | |
#include <stdio.h> | |
#include <cstdio> | |
#include <stdlib.h> | |
#include <cstdlib> | |
#include <algorithm> | |
#include <cstring> |
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
#define _CRT_SECURE_NO_WARNINGS | |
#include <iostream> | |
#include <iomanip> | |
#include <fstream> | |
#include <stdio.h> | |
#include <cstdio> | |
#include <stdlib.h> | |
#include <cstdlib> | |
#include <algorithm> | |
#include <cstring> |
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
module Resources.Console where | |
import Resources.Resource | |
import Misere.Game | |
newtype ConsoleResource a = ConsoleResource ([Move] -> IO ([Move], a)) | |
instance Resource ConsoleResource where | |
putNewState move = ConsoleResource $ \prevState -> return (move:prevState, ()) |
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
#define _CRT_SECURE_NO_WARNINGS | |
#include <iostream> | |
#include <iomanip> | |
#include <fstream> | |
#include <stdio.h> | |
#include <cstdio> | |
#include <stdlib.h> | |
#include <cstdlib> | |
#include <algorithm> | |
#include <cstring> |
Prerequisites:
- Python 3.6 64bit.
- Tensorflow (
pip3 install --upgrade tensorflow-gpu
) - NVIDIA: CUDA® Toolkit 9.0 ir cuDNN v6.0 (daugiau paaiškinta čia).
- Nusiklonuot repo:
cd /path/to/capsnet git clone https://github.com/naturomics/CapsNet-Tensorflow.git
cd CapsNet-Tensorflow
OlderNewer