Skip to content

Commit

Permalink
Adding specific license
Browse files Browse the repository at this point in the history
At least to the files that I created.
  • Loading branch information
Pysis868 committed Mar 9, 2023
1 parent c0b1fb2 commit c7fc682
Show file tree
Hide file tree
Showing 64 changed files with 316 additions and 65 deletions.
21 changes: 21 additions & 0 deletions LICENSE-MIT
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) [year] [fullname]

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
4 changes: 4 additions & 0 deletions dev/assets/tiles/generateAllMapTiles.fish
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env fish

# MIT Licensed
# Copyright (c) 2023 Pysis(868)
# https://choosealicense.com/licenses/mit/

set SDIR "$PWD/"(dirname (status filename));

pushd "$SDIR/../../../tiles";
Expand Down
4 changes: 4 additions & 0 deletions dev/assets/tiles/generateAllMapTilesAuto.fish
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env fish

# MIT Licensed
# Copyright (c) 2023 Pysis(868)
# https://choosealicense.com/licenses/mit/

echo "Not updated or able to be generalized properly; exiting...";
exit;

Expand Down
22 changes: 3 additions & 19 deletions dev/assets/tiles/generateDebugTiles.fish
Original file line number Diff line number Diff line change
@@ -1,24 +1,8 @@
#!/usr/bin/env fish

## Info

# Author: Pysis

# Dependencies:
# - fish shell
# - Basic shell utilities:
# - variables
# - subshell
# - test
# - eval
# - seq
# - set
# - printf
# - pushd
# - popd
# - exit
# - break
# - ImageMagick (convert, identify)
# MIT Licensed
# Copyright (c) 2023 Pysis(868)
# https://choosealicense.com/licenses/mit/

set SDIR "$PWD/"(dirname (status filename));

Expand Down
4 changes: 4 additions & 0 deletions dev/assets/tiles/generateMapTiles.fish
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env fish

# MIT Licensed
# Copyright (c) 2023 Pysis(868)
# https://choosealicense.com/licenses/mit/

# Dependencies: magick/ImageMagick, bc, ...

## General Function Library
Expand Down
6 changes: 5 additions & 1 deletion dev/assets/tiles/switch/common/1_decompress.fish
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#!/usr/bin/env fish

nsz -D ("$argv[1]" | tr -d '\r');
# MIT Licensed
# Copyright (c) 2023 Pysis(868)
# https://choosealicense.com/licenses/mit/

nsz -D ("$argv[1]" | tr -d '\r');
4 changes: 4 additions & 0 deletions dev/assets/tiles/switch/common/2_extractNCAs.fish
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env fish

# MIT Licensed
# Copyright (c) 2023 Pysis(868)
# https://choosealicense.com/licenses/mit/

# nspx -x -o (echo "$argv[1]" | sed -r 's|\.[^.]+$||') -f "$argv[1]";
hactool pfs i think
4 changes: 4 additions & 0 deletions dev/assets/tiles/switch/common/3_extractRomFSContents.fish
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env fish

# MIT Licensed
# Copyright (c) 2023 Pysis(868)
# https://choosealicense.com/licenses/mit/

set SDIR "$PWD/"(dirname (status filename));

source "$SDIR/../../../../scripts/common/filenameRemoveExtension.fish";
Expand Down
4 changes: 4 additions & 0 deletions dev/assets/tiles/switch/games/botw/assembleTiles.fish
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env fish

# MIT Licensed
# Copyright (c) 2023 Pysis(868)
# https://choosealicense.com/licenses/mit/

## Info

# MapTex# - resolution levels (4)
Expand Down
4 changes: 4 additions & 0 deletions dev/assets/tiles/switch/games/lafs/assembleDgnTiles.fish
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env fish

# MIT Licensed
# Copyright (c) 2023 Pysis(868)
# https://choosealicense.com/licenses/mit/

## Info

# ABCDEFGH - horizontal index (8)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env fish

# MIT Licensed
# Copyright (c) 2023 Pysis(868)
# https://choosealicense.com/licenses/mit/

## Info

# ABCDEFGH - horizontal index (8)
Expand Down
4 changes: 4 additions & 0 deletions dev/assets/tiles/tileZoomPathConversion.fish
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env fish

# MIT Licensed
# Copyright (c) 2023 Pysis(868)
# https://choosealicense.com/licenses/mit/

set SDIR "$PWD/"(dirname (status filename));

test -z "$tilesDir"; and set tilesDir "$argv[1]";
Expand Down
18 changes: 11 additions & 7 deletions dev/db/createSampleDatabaseExport.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env bash

# MIT Licensed
# Copyright (c) 2023 Pysis(868)
# https://choosealicense.com/licenses/mit/

# Users the `mysqldump` command with provided SQL statements and shell commands
# to create a customized backup and sample database data file to use to operate
# the project.
Expand Down Expand Up @@ -101,7 +105,7 @@
[[ -z "$FAIL_FAST" ]] && FAIL_FAST="true";
[[ -z "$CLEAN_ON_FAILURE" ]] && CLEAN_ON_FAILURE="true";
[[ -z "$CONVERGE_SQL" ]] && CONVERGE_SQL="false";

[[ -z "$DB_NAME" ]] && DB_NAME="zeldamaps";

# Loops as requirement.
Expand All @@ -119,7 +123,7 @@
# else
#MYSQL_PASS="$(echo "$MYSQL_PASS" | sed -e 's|)|\\\)|g' -e 's|\x27|\\\\x27|g')";
fi

[[ -z "$MYSQL_OTHER_CONNECTION_OPTIONS" ]] && MYSQL_OTHER_CONNECTION_OPTIONS="";
[[ -z "$MYSQL_CONNECTION_STRING" ]] && MYSQL_CONNECTION_STRING="$MYSQL_OTHER_CONNECTION_OPTIONS -u'$MYSQL_USER' -p'$MYSQL_PASS'";
}
Expand Down Expand Up @@ -160,7 +164,7 @@
generatedDevUserDataFilePath="$SAMPLES_DIR/06-devUserData.sql";

allIntermediateFilePaths="'$keepAIFilePath' '$toRemoveAIFilePath' '$aiRemovedFilePath' '$dataFilePath' '$sanitizedPartialUserDataFilePath' '$generatedDevUserDataFilePath'";

[[ "$CONVERGE_SQL" == "true" ]] && convergeSuffix="-converged";

# Resultant, generated file to keep at the end of the process.
Expand Down Expand Up @@ -239,20 +243,20 @@
"Combining intermediate SQL files into a single convenient script for later import and version control." \
"cat '$keepAIFilePath' '$aiRemovedFilePath' '$dataFilePath' '$generatedDevUserDataFilePath' > '$completeFilePath'" \
; # "cat '$keepAIFilePath' '$aiRemovedFilePath' '$dataFilePath' > '$completeFilePath'" \

issueStep \
"Converting result to Unix-style LF-only line endings." \
"dos2unix '$completeFilePath'" \
;

clean;

if [[ "$CONVERGE_SQL" == "true" ]]; then
issueStep \
"Converging database SQL formats by eliminating less important details." \
"sed -r -f '$convergeSedFilePath' '$completeFilePath' > '$completeConvergedFilePath'" \
;

echo;
echo "Important Note: The 'CONVERGE_SQL' option is enabled. Do NOT store these exported SQL files permanently in source control OR import them into any database. They are for comparing important differences more easily and quickly by removing any less important differences that may be defaults or other details. The data differences are ONLY to be manually and carefully reviewed and ported through migrations using the more exact, unique, and explicit details to converge the databases more properly.";
fi
Expand Down
4 changes: 4 additions & 0 deletions dev/db/generateRandomCharacters.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env bash

# MIT Licensed
# Copyright (c) 2023 Pysis(868)
# https://choosealicense.com/licenses/mit/

numChars="${1-32}";

# printf '\x'"$(printf '%x' "$(echo "($(printf '%d' '0x'"$(echo -n '!' | xxd -p)") % 95) + 32" | bc)")";
Expand Down
4 changes: 4 additions & 0 deletions dev/db/resetPassword.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env bash

# MIT Licensed
# Copyright (c) 2023 Pysis(868)
# https://choosealicense.com/licenses/mit/

SDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )";

# Currently this script may require interaction for the MySQL user account.
Expand Down
4 changes: 4 additions & 0 deletions dev/db/resetUsersChangelogSeenPresence.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env bash

# MIT Licensed
# Copyright (c) 2023 Pysis(868)
# https://choosealicense.com/licenses/mit/

SDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )";

# Currently this script may require interaction for the MySQL user account.
Expand Down
4 changes: 4 additions & 0 deletions dev/db/test/createVersionTestUsers.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env bash

# MIT Licensed
# Copyright (c) 2023 Pysis(868)
# https://choosealicense.com/licenses/mit/

SDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )";

testUserSQLTemplateHeader='INSERT INTO
Expand Down
4 changes: 4 additions & 0 deletions dev/db/test/verifySeenVersionTestUsers.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env bash

# MIT Licensed
# Copyright (c) 2023 Pysis(868)
# https://choosealicense.com/licenses/mit/

[[ -z "$DB_NAME" ]] && DB_NAME="zeldamaps";
[[ -z "$MYSQL_OTHER_CONNECTION_OPTIONS" ]] && MYSQL_OTHER_CONNECTION_OPTIONS="";
[[ -z "$MYSQL_CONNECTION_STRING" ]] && MYSQL_CONNECTION_STRING="$MYSQL_OTHER_CONNECTION_OPTIONS -u'$MYSQL_USER' -p'$MYSQL_PASS'";
Expand Down
4 changes: 4 additions & 0 deletions dev/scripts/common/filenameRemoveExtension.fish
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env fish

# MIT Licensed
# Copyright (c) 2023 Pysis(868)
# https://choosealicense.com/licenses/mit/

function filenameRemoveExtension --argument-names filePath
if test -z "$filePath"
echo 'Error: File Path not provided; exiting...' 1>&2;
Expand Down
4 changes: 4 additions & 0 deletions lib/VersionMigrator.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# MIT Licensed
# Copyright (c) 2023 Pysis(868)
# https://choosealicense.com/licenses/mit/

# Usage:
#
# In a migration file:
Expand Down
3 changes: 3 additions & 0 deletions lib/zmailer.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?php
# MIT Licensed
# Copyright (c) 2023 Pysis(868)
# https://choosealicense.com/licenses/mit/

$path = __DIR__;
include_once("$path/../config.php");
Expand Down
4 changes: 4 additions & 0 deletions scripts/controls/InfoBox.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// MIT Licensed
// Copyright (c) 2023 Pysis(868)
// https://choosealicense.com/licenses/mit/

// InfoBox
// - options: [Object]
// - title: [String] The text to optionally place in the header.
Expand Down
18 changes: 11 additions & 7 deletions scripts/controls/ZLayers.Bottom.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// MIT Licensed
// Copyright (c) 2023 Pysis(868)
// https://choosealicense.com/licenses/mit/

L.Control.ZLayersBottom = L.Control.ZLayers.extend({
options: {
position: 'topleft',
Expand Down Expand Up @@ -134,7 +138,7 @@ L.Control.ZLayersBottom = L.Control.ZLayers.extend({
}, this);

var logo = new Logo({ parent: headerMenu });

_thisLayer = this;
this._gameMenu = this.createGameMenu();
this._mapsMenu = this.createMapsMenu();
Expand All @@ -150,7 +154,7 @@ L.Control.ZLayersBottom = L.Control.ZLayers.extend({
});
// this.categoryButtonCompleted.domNode.on('toggle', opts.onCompletedToggle.bind(this.categoryButtonCompleted));
$(headerMenu).append(completedButton.domNode);*/

this._mapsButton = new MapButton({
toggledOn: false,
onToggle: function(toggledOn) {
Expand Down Expand Up @@ -207,11 +211,11 @@ L.Control.ZLayersBottom = L.Control.ZLayers.extend({
// and make expand match openDrawer expectations.
if (true || !this.options.collapsed) this._expand();
},

rebuildMapsMenu: function () {
this._mapsMenu = this.createMapsMenu();
},

createGameMenu: function() {
return new GameMenu({
categoryTree: games,
Expand All @@ -224,15 +228,15 @@ L.Control.ZLayersBottom = L.Control.ZLayers.extend({
defaultToggledState: (this.options.categorySelectionMethod == "focus")
});
},

createMapsMenu: function() {
return new MapsMenu({
categoryTree: maps,
onCategoryToggle: function(toggledOn, category) {
if (this.currentMapLayer.id != category.id) {
map.removeLayer(this.currentMapLayer);
map.addLayer(category);
this.currentMapLayer = category;
this.currentMapLayer = category;
this.currentMapLayer.bringToBack();
map.fire("baselayerchange", this.currentMapLayer);
}
Expand All @@ -241,7 +245,7 @@ L.Control.ZLayersBottom = L.Control.ZLayers.extend({
defaultToggledState: (this.options.categorySelectionMethod == "focus")
});
},


_animate: function(menu, from, to, isOpen) {
// console.log(from + ' ' + to + ' ' + isOpen);
Expand Down
4 changes: 4 additions & 0 deletions scripts/controls/ZMobileHeaderBar.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// MIT Licensed
// Copyright (c) 2023 Pysis(868)
// https://choosealicense.com/licenses/mit/

// Header
// - options: [Object]
// - mapControl: [Object] The drawer menu that will render the list of searched markers.
Expand Down
4 changes: 4 additions & 0 deletions scripts/controls/infoBox/Location.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// MIT Licensed
// Copyright (c) 2023 Pysis(868)
// https://choosealicense.com/licenses/mit/

// Location
// - opts: [Object]
// - precision: [Number]
Expand Down
6 changes: 5 additions & 1 deletion scripts/controls/infoBox/Mouse.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// MIT Licensed
// Copyright (c) 2023 Pysis(868)
// https://choosealicense.com/licenses/mit/

// Mouse
// - opts: [Object]
// - precision: [Number]
Expand Down Expand Up @@ -60,7 +64,7 @@ L.Control.InfoBox.Mouse = L.Control.InfoBox.extend({
_updateCoordsInfo: function(event) {
console.error(this._debugName + ": Superclass method `" + this.prototype._className + "._updateCoordsInfo` not overridden.");
},

_updateCoordsInfoClick: function(event) {
//console.error(this._debugName + ": Superclass method `" + this.prototype._className + "._updateCoordsInfo` not overridden.");
}
Expand Down
Loading

0 comments on commit c7fc682

Please sign in to comment.