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
| #if defined(Q_OS_MAC) | |
| QStringList scriptArgs; | |
| scriptArgs << QLatin1String("-e"); | |
| scriptArgs << QString::fromLatin1("tell application \"Finder\" to open POSIX file \"%1\"").arg(settingsCache->getPicsPath() + "/CUSTOM/"); | |
| scriptArgs << QLatin1String("-e"); | |
| scriptArgs << QLatin1String("tell application \"Finder\" to activate"); | |
| QProcess::execute("/usr/bin/osascript", scriptArgs); |
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 | |
| #This is used to test PRs -- Save them to desktop | |
| set -e | |
| cd ~/Desktop/Stuff/cockatrice | |
| debug=0 | |
| while getopts ":u::d" opt; do | |
| case $opt in |
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 | |
| #This is used to test PRs | |
| set -e | |
| cd ~/Desktop/Stuff/cockatrice | |
| debug=0 | |
| server=0 | |
| openOracle=0 |
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 | |
| #This is used to test PRs | |
| set -e | |
| cd ~/Desktop/Stuff/cockatrice | |
| debug=0 | |
| server=0 | |
| openOracle=0 |
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 | |
| #This is used to update main version of Cockatrice | |
| set -e | |
| log_date=$(date "+%b_%d_%Y_%H.%M.%S") | |
| openOracle=0 | |
| while getopts ":o" opt; do | |
| case $opt in | |
| o) openOracle=1;; |
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
| ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"; | |
| brew install qt5 | |
| cd ~/Desktop; | |
| git clone https://github.com/Cockatrice/Cockatrice.git; | |
| cd Cockatrice; | |
| mkdir -p build; | |
| cd build; | |
| cmake .. -DCMAKE_PREFIX_PATH=/usr/local/Cellar/qt5/5.5.0/; |
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
| . | |
| ├── appicon.ico | |
| ├── cardback.svg | |
| ├── cockatrice.svg | |
| ├── config | |
| │ ├── appearance.svg | |
| │ ├── deckeditor.svg | |
| │ ├── general.svg | |
| │ ├── interface.svg | |
| │ ├── messages.svg |
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
| #!/usr/bin/env python3 | |
| import json | |
| import sqlite3 | |
| import time | |
| JSON_FILE = "SOI.json" #Set Name | |
| DB_FILE = "Magic " + str(time.time()) + ".db" | |
| traffic = json.load(open(JSON_FILE))["cards"] | |
| conn = sqlite3.connect(DB_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
| #!/usr/bin/env python3 | |
| import json | |
| import sqlite3 | |
| import time | |
| JSON_FILE = "SOI-x.json" #Set Name | |
| DB_FILE = "Magic " + str(time.time()) + ".db" | |
| traffic = json.load(open(JSON_FILE))["cards"] | |
| conn = sqlite3.connect(DB_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
| #!/usr/bin/env python3 | |
| import json | |
| import sqlite3 | |
| import time | |
| JSON_FILE = "AllSets-x.json" #Set Name | |
| DB_FILE = "Magic " + str(time.time()) + ".db" | |
| # Get the value of the card, return None if NULL | |
| def getVal(data, field): |
OlderNewer