diff --git a/snake/fil-td.cls b/snake/fil-td.cls new file mode 100755 index 0000000000000000000000000000000000000000..b0a3c37ca29af1a9f1f5ddb6fb729573b9eb7fbf --- /dev/null +++ b/snake/fil-td.cls @@ -0,0 +1,520 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% FIL@Université de Lille class +% original file adapted and further developed by +% Oliver Irwin <oliver.irwin@univ-lille.fr> +% % v0.1.1, 2024-04-08 +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% original file: +% ens-ustl.sty +% LaTeX Package +% Version 0.26 (1997-12-19) +% +% Authors: +% Bruno Beaufils <beaufils@lifl.fr> +% +% Class license: +% LPPL v1.3c (http://www.latex-project.org/lppl) +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% ------------------------------------------------------------------------- +% CLASS PRESENTATION +% ------------------------------------------------------------------------- +\typeout{% + *** Package: `fil-td' $Revision: 0.1.1 $ -- O. IRWIN ***} + +% ------------------------------------------------------------------------- +% CLASS DEFINITION AND PARAMETERS +% ------------------------------------------------------------------------- + +\NeedsTeXFormat{LaTeX2e} +\newcommand{\classname}{fil-td} + +\ProvidesClass{\classname}[2024/04/08 - TD FIL v0.1.1 FIL@ULILLE] +\providecommand{\baseclass}{article} +\RequirePackage{etoolbox} + +%%% LANGUAGE SELECTION + +\newbool{english} +\newbool{french} +\booltrue{french} +\newbool{nologo} +\newbool{nofluff} +\newbool{showsolution} +\newbool{bw} + +\DeclareOption{english}{\booltrue{english}} +\DeclareOption{french}{\booltrue{french}} +\DeclareOption{nologo}{\booltrue{nologo}} +\DeclareOption{nofluff}{\booltrue{nofluff}} +\DeclareOption{showsolution}{\booltrue{showsolution}} +\DeclareOption{bw}{\booltrue{bw}} + +%%% EXTRA OPTIONS + +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{\baseclass}} + +\ifbool{english}{% Required to change language for document elements + \typeout{English mode selected} + \PassOptionsToClass{english}{\baseclass} + }{} + +\ifbool{french}{ + \typeout{French mode selected} + \PassOptionsToClass{french}{\baseclass} + }{} + +%%% PROCESS OPTIONS +\ProcessOptions* + +%%% LOAD BASE +\LoadClass[11pt, a4paper]{\baseclass} + +% ------------------------------------------------------------------------- +% CLASS OPTIONS +% ------------------------------------------------------------------------- + +% ------------------------------------------------------------------------- +% REQUIRED PACKAGES +% ------------------------------------------------------------------------- + +\RequirePackage{lmodern} +\RequirePackage{FiraMono} + +\RequirePackage[top=1.5cm,bottom=2cm,left=1.5cm,right=1.5cm]{geometry} + +\RequirePackage{graphicx} +\RequirePackage[usenames,dvipsnames]{xcolor} +\RequirePackage{ifthen} +\RequirePackage{fontawesome5} +\RequirePackage{comment} +\RequirePackage{minted} +\RequirePackage{fancyhdr} +\RequirePackage{babel} +\RequirePackage{hyperref} + +\RequirePackage{tcolorbox} +\tcbuselibrary{most, minted} + +\RequirePackage{fontspec} +\setmainfont{Marianne} +\setsansfont{Marianne} +\setmonofont{Fira Mono}[Contextuals=Alternate] + +\definecolor{ulille-darkblue}{HTML}{000037} +\definecolor{ulille-indigo}{HTML}{5862ED} +\definecolor{ulille-lightblue}{HTML}{7ABAFF} +\definecolor{ulille-darkgreen}{HTML}{002D2D} +\definecolor{ulille-green}{HTML}{32A68C} +\definecolor{ulille-lightgreen}{HTML}{89E0B1} +\definecolor{ulille-red}{HTML}{FC535C} +\definecolor{ulille-brown}{HTML}{2D0505} +\definecolor{ulille-pink}{HTML}{FFB4D2} +\definecolor{ulille-orange}{HTML}{FF6941} +\definecolor{ulille-yellow}{HTML}{FFD24B} +\definecolor{ulille-beige}{HTML}{FAF0E1} +\definecolor{ulille-lightgrey}{HTML}{EDEDED} +\definecolor{ulille-darkgrey}{HTML}{63656A} + +% ------------------------------------------------------------------------- +% HELPERS +% ------------------------------------------------------------------------- + +\NewDocumentCommand{\@getLanguageSymbol}{ m }{% + \directlua{ + local s_tbl = { + ["android"] = "\\faAndroid", + ["angular"] = "\\faAngular", + ["apple"] = "\\faApple", + ["bash"] = "\\faTerminal", + ["bootstrap"] = "\\faBootstrap", + ["css"] = "\\faCss3*", + ["docker"] = "\\faDocker", + ["git"] = "\\faGit", + ["html"] = "\\faHtml5", + ["java"] = "\\faJava", + ["js"] = "\\faJs", + ["latex"] = "\\LaTeX", + ["less"] = "\\faLess", + ["markdown"] = "\\faMarkdown", + ["node"] = "\\faNode", + ["php"] = "\\faPhp", + ["python"] = "\\faPython", + ["react"] = "\\faReact", + ["rust"] = "\\faRust", + ["sass"] = "\\faSass", + ["tex"] = "\\TeX", + ["sql"] = "\\faDatabase", + ["vue"] = "\\faVuejs", + } + local val = s_tbl["\luaescapestring{\unexpanded{#1}}"] + if (val) then + tex.print(val) + else + tex.print("\\faCode") + end + } +} + +% ------------------------------------------------------------------------- +% DOCUMENT THEME +% ------------------------------------------------------------------------- + +\colorlet{@solutionframecol}{\ifbool{bw}{ulille-darkgrey}{ulille-indigo}} + +\NewDocumentCommand{\solutionframecol}{ m }{% + \colorlet{@solutionframecol}{#1} +} + +% ------------------------------------------------------------------------- +% FIRST PAGE HEADER +% ------------------------------------------------------------------------- + +% Set variables + +\NewDocumentCommand{\@school}{}{} +\NewDocumentCommand{\@course}{}{} +\NewDocumentCommand{\@teacher}{}{} +\NewDocumentCommand{\@subject}{}{} +\RenewDocumentCommand{\@title}{}{} + +% User commands +\NewDocumentCommand{\school}{ m }{% + \RenewDocumentCommand{\@school}{}{#1}% +} +\NewDocumentCommand{\course}{ m }{% + \RenewDocumentCommand{\@course}{}{#1}% +} +\NewDocumentCommand{\teacher}{ m }{% + \RenewDocumentCommand{\@teacher}{}{#1}% +} +\NewDocumentCommand{\subject}{ m }{% + \RenewDocumentCommand{\@subject}{}{% + \begin{tabular}{c}#1\end{tabular}% + }% +} +\RenewDocumentCommand{\title}{ m }{% + \RenewDocumentCommand{\@title}{}{% + \begin{tabular}{c}#1\end{tabular}% + }% +} + +\global\let\author\relax +\global\let\@author\@empty + +\newcounter{@yearbefore} +\setcounter{@yearbefore}{\year} +\newcounter{@yearafter} +\setcounter{@yearafter}{\year} + +\RenewDocumentCommand{\@date}{}{% + \ifthenelse{\month < 7}% + {\addtocounter{@yearbefore}{-1}} + {\addtocounter{@yearafter}{1}} + \the@yearbefore--\the@yearafter% +} + +\fancypagestyle{firststyle}{% + \newgeometry{top=2.5cm,bottom=2cm,left=1.5cm,right=1.5cm} + \fancyhf{} + \fancyhead[C]{\large\@subject\par} + \fancyhead[L]{\ifbool{nologo}{}{\hspace*{-1.25cm}\includegraphics[scale=0.175]{logo-CRIStAL}}} + \fancyhead[R]{\raggedleft\par\@date\par\@course\par\@teacher} + %\fancyfoot[C]{\thepage} + \renewcommand{\headrulewidth}{0pt} % removes horizontal header line +} + +\RenewDocumentCommand{\maketitle}{}{% + \begin{center} + \framebox{~\Large\bfseries\sffamily\@title~} + \bigskip + \hrule height 1pt + \medskip + \end{center} + \thispagestyle{firststyle} + % \ifbool{nologo}{% + % \begin{minipage}{0.2\textwidth} + % \@date + % \end{minipage} + % \begin{minipage}{.5\textwidth} + % \centering + % \large\@subject + % \end{minipage} + % \begin{minipage}{.25\textwidth} + % \raggedleft + % \@course + % \par + % \@teacher + % \end{minipage} + % \par + % \begin{center} + % \framebox{~\Large\bfseries\sffamily\@title~} + % \end{center} + % \smallskip + % \hrule + % \medskip + % }{% + % \begin{center} + % \hspace*{-1.5cm} + % \begin{minipage}[][][c]{.33\textwidth} + % \centering + % \IfFileExists{logo_FIL.pdf}{% + % \includegraphics[width=\textwidth]{logo_FIL.pdf} + % }{% + % \ClassWarningNoLine{\classname}{No logo file found -- place + % `logo_FIL.pdf` file in folder or use `nologo` class option} } + % \end{minipage} + % \hfill + % \begin{minipage}{.25\textwidth} + % \centering + % \large\@subject + % \end{minipage}\framebox{~\Large\bfseries\sffamily\@title~} + % \hfill + % \begin{minipage}{.25\textwidth} + % \raggedleft + % \@date + % \par + % \@course + % \par + % \@teacher + % \end{minipage} + % \par + % \framebox{~\Large\bfseries\sffamily\@title~} + % \end{center} + % \smallskip + % \hrule + % \medskip + % } +} + + + +% ------------------------------------------------------------------------- +% DOCUMENT ENVIRONMENTS +% ------------------------------------------------------------------------- + +% Set counters + +\newcounter{@exercise}[section] +\newcounter{@question}[@exercise] +\newcounter{@subquestion}[@question] + +% Set variables + +\NewDocumentCommand{\@exercisename}{}{% + \ifbool{english}{% + Exercise% + }{% + Exercice% + } +} + +\NewDocumentCommand{\@questionname}{}{% + Q.% +} + +\NewDocumentCommand{\@subquestionname}{}{% + Q.% +} + +\NewDocumentCommand{\@solutionname}{}{% + Solution% +} + +% User commands + +\NewDocumentCommand{\exercisename}{ m }{% + \RenewDocumentCommand{\@exercisename}{}{#1} +} + +\NewDocumentCommand{\questionname}{ m }{% + \RenewDocumentCommand{\@questionname}{}{#1} +} + +\NewDocumentCommand{\subquestionname}{ m }{% + \RenewDocumentCommand{\@subquestionname}{}{#1} +} + +\NewDocumentCommand{\solutionname}{ m }{% + \RenewDocumentCommand{\@solutionname}{}{#1} +} + +% Environments + +\NewDocumentEnvironment{exercise}{ s O{} O{\@exercisename} }{% + \sffamily\bfseries\underline{% + #3% + \IfBooleanF{#1}{% + \stepcounter{@exercise}% + \the@exercise% + }% + } + : #2\\ + \mdseries\rmfamily +}{} + +\NewDocumentEnvironment{exercise*}{ O{} O{\@exercisename} }{% + \begin{exercise}*[#1][#2] + }{ + \end{exercise} + } + +\NewDocumentEnvironment{question}{ s O{} O{\@questionname} }{% + \noindent + \sffamily\bfseries% + #3% + \IfBooleanF{#1}{% + \stepcounter{@question}% + ~\the@question% + } #2 + \mdseries\rmfamily +}{~\\} + +\NewDocumentEnvironment{question*}{ O{} O{\@questionname} }{% + \begin{question}*[#1][#2] + }{ + \end{question} + } + + \NewDocumentEnvironment{subquestion}{ s O{} O{\@subquestionname} }{% + ~\\\noindent + \sffamily\bfseries% + #3% + \IfBooleanF{#1}{% + \stepcounter{@subquestion}% + ~\the@question.\the@subquestion% + } #2 + \mdseries\rmfamily + }{~\\} + + \NewDocumentEnvironment{subquestion*}{ O{} O{\@subquestionname} }{% + \begin{subquestion}*[#1][#2] + }{ + \end{subquestion} + } + + \NewDocumentEnvironment{solutionstyle}{ O{} }{% + \begin{tcolorbox}[ + title=\ifbool{nofluff}{\@solutionname}{\faCheck{} \@solutionname}, + fonttitle=\sffamily\bfseries, + left=3pt, + right=3pt, + top=2pt, + bottom=2pt, + #1, + breakable, + enhanced, + colframe=@solutionframecol] + }{% + \end{tcolorbox} + } + +% Handle showing of solutions only if option passed + + \ifbool{showsolution}{\NewDocumentEnvironment{solution}{ O{} + }{\begin{solutionstyle}[#1]}{\end{solutionstyle}}}{ +\excludecomment{solution} +} + +% ------------------------------------------------------------------------- +% CODE ENVIRONMENTS +% ------------------------------------------------------------------------- + +\NewDocumentCommand{\@codeblockname}{}{% + Code% +} + +\NewDocumentCommand{\codeblockname}{ m }{% + \RenewDocumentCommand{\@codeblockname}{}{#1}% +} + +\NewTCBListing{codeblock}{ m O{} }{% + colback=ulille-lightgrey, + colframe=ulille-darkgrey!55!black, + title=\ifbool{nofluff}{\@codeblockname}{{\small \@getLanguageSymbol{#1}} \@codeblockname{}}, + fonttitle=\sffamily\bfseries, + left=3pt, + right=3pt, + top=2pt, + bottom=2pt, + listing engine=minted, + minted language=#1, + minted options={autogobble,breaklines}, + listing only, + breakable, + enhanced, + #2% +} + +\NewTCBInputListing{\codefile}{ m m O{} }{% + colback=ulille-lightgrey, + colframe=ulille-darkgrey!55!black, + title=\ifbool{nofluff}{\@codeblockname}{{\small \@getLanguageSymbol{#2}} \@codeblockname{}}, + fonttitle=\sffamily\bfseries, + left=3pt, + right=3pt, + top=2pt, + bottom=2pt, + listing engine=minted, + minted language=#2, + minted options={autogobble, breaklines}, + listing only, + listing file=#1, + breakable, + enhanced, + #3% +} + +\NewTotalTCBox{\cmd}{ O{ulille-darkgrey} v }{% + enhanced, + nobeforeafter, + tcbox raise base, + boxrule=0.4pt, + top=0mm, + bottom=0mm, + right=0mm, + left=4mm, + arc=1pt, + boxsep=2pt, + before upper={\vphantom{dlg}}, + colframe=#1!50!black, + coltext=#1!25!black, + colback=#1!10!white, + overlay={% + \begin{tcbclipinterior} + \fill[#1!75!blue!50!white] (frame.south west) rectangle + node[text=white,font=\sffamily\bfseries\tiny,rotate=90] {CMD} + ([xshift=4mm]frame.north west); + \end{tcbclipinterior} + }% +}{\ttfamily \small #2} + +\NewTotalTCBox{\file}{ O{ulille-lightblue} v }{ + enhanced, + nobeforeafter, + tcbox raise base, + boxrule=0.4pt, + top=0mm, + bottom=0mm, + right=0mm, + left=4mm, + arc=1pt, + boxsep=2pt, + before upper={\vphantom{dlg}}, + colframe=#1!50!black, + coltext=#1!25!black, + colback=#1!10!white, + overlay={ + \begin{tcbclipinterior} + \fill[#1!75!blue!50!white] (frame.south west) rectangle + node[text=white,font=\sffamily\bfseries\tiny,rotate=90] {FILE} + ([xshift=4mm]frame.north west); + \end{tcbclipinterior} + }% +}{\ttfamily \small #2} + + +\endinput diff --git a/snake/fonts/DroidSansMono/Apache License.txt b/snake/fonts/DroidSansMono/Apache License.txt new file mode 100755 index 0000000000000000000000000000000000000000..989e2c59e973a05cfbfe9de678b7f2af777b0713 --- /dev/null +++ b/snake/fonts/DroidSansMono/Apache License.txt @@ -0,0 +1,201 @@ +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. \ No newline at end of file diff --git a/snake/fonts/DroidSansMono/DroidSansMono.ttf b/snake/fonts/DroidSansMono/DroidSansMono.ttf new file mode 100755 index 0000000000000000000000000000000000000000..a007071944f7c90020e798eea53b10065e2b45a5 Binary files /dev/null and b/snake/fonts/DroidSansMono/DroidSansMono.ttf differ diff --git a/snake/fonts/Marianne/.uuid b/snake/fonts/Marianne/.uuid new file mode 100755 index 0000000000000000000000000000000000000000..e5955904c3046a55aacb774113d23719d25aab42 --- /dev/null +++ b/snake/fonts/Marianne/.uuid @@ -0,0 +1 @@ +2e74061b-cc85-4f0d-952c-1fa8c644f2b7 \ No newline at end of file diff --git a/snake/fonts/Marianne/fontes desktop/.uuid b/snake/fonts/Marianne/fontes desktop/.uuid new file mode 100755 index 0000000000000000000000000000000000000000..9d031f0ca812fb5cc5dff892f54f74da42774556 --- /dev/null +++ b/snake/fonts/Marianne/fontes desktop/.uuid @@ -0,0 +1 @@ +3f4fdcb3-63d8-4f95-9008-04ef8db698da \ No newline at end of file diff --git a/snake/fonts/Marianne/fontes desktop/Marianne-Bold.otf b/snake/fonts/Marianne/fontes desktop/Marianne-Bold.otf new file mode 100755 index 0000000000000000000000000000000000000000..6b23c242288931905df73585fe1beab909e7a4fb Binary files /dev/null and b/snake/fonts/Marianne/fontes desktop/Marianne-Bold.otf differ diff --git a/snake/fonts/Marianne/fontes desktop/Marianne-BoldItalic.otf b/snake/fonts/Marianne/fontes desktop/Marianne-BoldItalic.otf new file mode 100755 index 0000000000000000000000000000000000000000..b4d7d5079451272b90e62cb1b7c4a4a346885b7c Binary files /dev/null and b/snake/fonts/Marianne/fontes desktop/Marianne-BoldItalic.otf differ diff --git a/snake/fonts/Marianne/fontes desktop/Marianne-ExtraBold.otf b/snake/fonts/Marianne/fontes desktop/Marianne-ExtraBold.otf new file mode 100755 index 0000000000000000000000000000000000000000..7f7a1a75b48ca94c263dd235775d6ea767ccbb22 Binary files /dev/null and b/snake/fonts/Marianne/fontes desktop/Marianne-ExtraBold.otf differ diff --git a/snake/fonts/Marianne/fontes desktop/Marianne-ExtraBoldItalic.otf b/snake/fonts/Marianne/fontes desktop/Marianne-ExtraBoldItalic.otf new file mode 100755 index 0000000000000000000000000000000000000000..17ec3fe790c1d1bb0858ff6219ca3154e2343808 Binary files /dev/null and b/snake/fonts/Marianne/fontes desktop/Marianne-ExtraBoldItalic.otf differ diff --git a/snake/fonts/Marianne/fontes desktop/Marianne-Light.otf b/snake/fonts/Marianne/fontes desktop/Marianne-Light.otf new file mode 100755 index 0000000000000000000000000000000000000000..32b0eafb24deecbd596c737cd45810c608577cc4 Binary files /dev/null and b/snake/fonts/Marianne/fontes desktop/Marianne-Light.otf differ diff --git a/snake/fonts/Marianne/fontes desktop/Marianne-LightItalic.otf b/snake/fonts/Marianne/fontes desktop/Marianne-LightItalic.otf new file mode 100755 index 0000000000000000000000000000000000000000..901412c74efee0c8de59eb8d1ee42b0ed72eb0ad Binary files /dev/null and b/snake/fonts/Marianne/fontes desktop/Marianne-LightItalic.otf differ diff --git a/snake/fonts/Marianne/fontes desktop/Marianne-Medium.otf b/snake/fonts/Marianne/fontes desktop/Marianne-Medium.otf new file mode 100755 index 0000000000000000000000000000000000000000..6a28cfac92b80a3351e6cfa8827f62a3825960dc Binary files /dev/null and b/snake/fonts/Marianne/fontes desktop/Marianne-Medium.otf differ diff --git a/snake/fonts/Marianne/fontes desktop/Marianne-MediumItalic.otf b/snake/fonts/Marianne/fontes desktop/Marianne-MediumItalic.otf new file mode 100755 index 0000000000000000000000000000000000000000..6e1f74deeb153b075e91d06b2654e9513774008d Binary files /dev/null and b/snake/fonts/Marianne/fontes desktop/Marianne-MediumItalic.otf differ diff --git a/snake/fonts/Marianne/fontes desktop/Marianne-Regular.otf b/snake/fonts/Marianne/fontes desktop/Marianne-Regular.otf new file mode 100755 index 0000000000000000000000000000000000000000..241bee994bd259969ac6dc730d1ef188a095e4b6 Binary files /dev/null and b/snake/fonts/Marianne/fontes desktop/Marianne-Regular.otf differ diff --git a/snake/fonts/Marianne/fontes desktop/Marianne-RegularItalic.otf b/snake/fonts/Marianne/fontes desktop/Marianne-RegularItalic.otf new file mode 100755 index 0000000000000000000000000000000000000000..6875d99ba0a7a278bcb810710ed2c1e22b2fc26b Binary files /dev/null and b/snake/fonts/Marianne/fontes desktop/Marianne-RegularItalic.otf differ diff --git a/snake/fonts/Marianne/fontes desktop/Marianne-Thin.otf b/snake/fonts/Marianne/fontes desktop/Marianne-Thin.otf new file mode 100755 index 0000000000000000000000000000000000000000..3e4f5951599bb3ee66d793a7d20af5e15f2feae8 Binary files /dev/null and b/snake/fonts/Marianne/fontes desktop/Marianne-Thin.otf differ diff --git a/snake/fonts/Marianne/fontes desktop/Marianne-ThinItalic.otf b/snake/fonts/Marianne/fontes desktop/Marianne-ThinItalic.otf new file mode 100755 index 0000000000000000000000000000000000000000..1a56ff2a2544dbd18db4ccea22fa45e0754157a8 Binary files /dev/null and b/snake/fonts/Marianne/fontes desktop/Marianne-ThinItalic.otf differ diff --git a/snake/fonts/Marianne/fontes web/.uuid b/snake/fonts/Marianne/fontes web/.uuid new file mode 100755 index 0000000000000000000000000000000000000000..735deba46b0602ab89bb8fa3ce9138286e0a6692 --- /dev/null +++ b/snake/fonts/Marianne/fontes web/.uuid @@ -0,0 +1 @@ +267e2888-4315-43c5-ae74-57f9ed43cd1e \ No newline at end of file diff --git a/snake/fonts/Marianne/fontes web/Marianne-Bold.woff b/snake/fonts/Marianne/fontes web/Marianne-Bold.woff new file mode 100755 index 0000000000000000000000000000000000000000..335e3488139cb364abbd7dccff400fb45bbcf5fa Binary files /dev/null and b/snake/fonts/Marianne/fontes web/Marianne-Bold.woff differ diff --git a/snake/fonts/Marianne/fontes web/Marianne-Bold.woff2 b/snake/fonts/Marianne/fontes web/Marianne-Bold.woff2 new file mode 100755 index 0000000000000000000000000000000000000000..4a5b7b2914a91b24955d3649084efd1d3eb96eea Binary files /dev/null and b/snake/fonts/Marianne/fontes web/Marianne-Bold.woff2 differ diff --git a/snake/fonts/Marianne/fontes web/Marianne-Bold_Italic.woff b/snake/fonts/Marianne/fontes web/Marianne-Bold_Italic.woff new file mode 100755 index 0000000000000000000000000000000000000000..72878fca60510132edaac010982a8e5899b2b4aa Binary files /dev/null and b/snake/fonts/Marianne/fontes web/Marianne-Bold_Italic.woff differ diff --git a/snake/fonts/Marianne/fontes web/Marianne-Bold_Italic.woff2 b/snake/fonts/Marianne/fontes web/Marianne-Bold_Italic.woff2 new file mode 100755 index 0000000000000000000000000000000000000000..31494ac009d77aed2545f96331558fd96ee48808 Binary files /dev/null and b/snake/fonts/Marianne/fontes web/Marianne-Bold_Italic.woff2 differ diff --git a/snake/fonts/Marianne/fontes web/Marianne-ExtraBold.woff b/snake/fonts/Marianne/fontes web/Marianne-ExtraBold.woff new file mode 100755 index 0000000000000000000000000000000000000000..ad85a552a019492ef4898fd5bcfb432b1d98cd9d Binary files /dev/null and b/snake/fonts/Marianne/fontes web/Marianne-ExtraBold.woff differ diff --git a/snake/fonts/Marianne/fontes web/Marianne-ExtraBold.woff2 b/snake/fonts/Marianne/fontes web/Marianne-ExtraBold.woff2 new file mode 100755 index 0000000000000000000000000000000000000000..b98ec4f1173cca0ae98404660a329c209710611c Binary files /dev/null and b/snake/fonts/Marianne/fontes web/Marianne-ExtraBold.woff2 differ diff --git a/snake/fonts/Marianne/fontes web/Marianne-ExtraBold_Italic.woff b/snake/fonts/Marianne/fontes web/Marianne-ExtraBold_Italic.woff new file mode 100755 index 0000000000000000000000000000000000000000..af92ea7ccb2fc83c5be4b9122a06345012cf9115 Binary files /dev/null and b/snake/fonts/Marianne/fontes web/Marianne-ExtraBold_Italic.woff differ diff --git a/snake/fonts/Marianne/fontes web/Marianne-ExtraBold_Italic.woff2 b/snake/fonts/Marianne/fontes web/Marianne-ExtraBold_Italic.woff2 new file mode 100755 index 0000000000000000000000000000000000000000..c4ec1c0d21fc3a457eb5c167b291f80d939e8832 Binary files /dev/null and b/snake/fonts/Marianne/fontes web/Marianne-ExtraBold_Italic.woff2 differ diff --git a/snake/fonts/Marianne/fontes web/Marianne-Light.woff b/snake/fonts/Marianne/fontes web/Marianne-Light.woff new file mode 100755 index 0000000000000000000000000000000000000000..9ef49df3ad4d9786d374adfd50a8296bdac014fb Binary files /dev/null and b/snake/fonts/Marianne/fontes web/Marianne-Light.woff differ diff --git a/snake/fonts/Marianne/fontes web/Marianne-Light.woff2 b/snake/fonts/Marianne/fontes web/Marianne-Light.woff2 new file mode 100755 index 0000000000000000000000000000000000000000..b29a01ffb5380b2bbb52d1ee27968a2c708d4a6a Binary files /dev/null and b/snake/fonts/Marianne/fontes web/Marianne-Light.woff2 differ diff --git a/snake/fonts/Marianne/fontes web/Marianne-Light_Italic.woff b/snake/fonts/Marianne/fontes web/Marianne-Light_Italic.woff new file mode 100755 index 0000000000000000000000000000000000000000..5ae0dbea14dc79ea46d1a8e05ddaa9d5ab3d6564 Binary files /dev/null and b/snake/fonts/Marianne/fontes web/Marianne-Light_Italic.woff differ diff --git a/snake/fonts/Marianne/fontes web/Marianne-Light_Italic.woff2 b/snake/fonts/Marianne/fontes web/Marianne-Light_Italic.woff2 new file mode 100755 index 0000000000000000000000000000000000000000..ccf9c8e5bf60605fb37c81d7a83c85b166d23090 Binary files /dev/null and b/snake/fonts/Marianne/fontes web/Marianne-Light_Italic.woff2 differ diff --git a/snake/fonts/Marianne/fontes web/Marianne-Medium.woff b/snake/fonts/Marianne/fontes web/Marianne-Medium.woff new file mode 100755 index 0000000000000000000000000000000000000000..692476eb21844f1ef57dddeeda293672dfc4e974 Binary files /dev/null and b/snake/fonts/Marianne/fontes web/Marianne-Medium.woff differ diff --git a/snake/fonts/Marianne/fontes web/Marianne-Medium.woff2 b/snake/fonts/Marianne/fontes web/Marianne-Medium.woff2 new file mode 100755 index 0000000000000000000000000000000000000000..8877adeec938a1b3f188a395dc0cc36cd626fddf Binary files /dev/null and b/snake/fonts/Marianne/fontes web/Marianne-Medium.woff2 differ diff --git a/snake/fonts/Marianne/fontes web/Marianne-Medium_Italic.woff b/snake/fonts/Marianne/fontes web/Marianne-Medium_Italic.woff new file mode 100755 index 0000000000000000000000000000000000000000..8e32b88f620a8e7e9c109f60f365f5773989c194 Binary files /dev/null and b/snake/fonts/Marianne/fontes web/Marianne-Medium_Italic.woff differ diff --git a/snake/fonts/Marianne/fontes web/Marianne-Medium_Italic.woff2 b/snake/fonts/Marianne/fontes web/Marianne-Medium_Italic.woff2 new file mode 100755 index 0000000000000000000000000000000000000000..28b504045e5226a70c1b4029630a452c7479fe38 Binary files /dev/null and b/snake/fonts/Marianne/fontes web/Marianne-Medium_Italic.woff2 differ diff --git a/snake/fonts/Marianne/fontes web/Marianne-Regular.woff b/snake/fonts/Marianne/fontes web/Marianne-Regular.woff new file mode 100755 index 0000000000000000000000000000000000000000..a95a2d0407b512b0e37cca55a001425560ae7f41 Binary files /dev/null and b/snake/fonts/Marianne/fontes web/Marianne-Regular.woff differ diff --git a/snake/fonts/Marianne/fontes web/Marianne-Regular.woff2 b/snake/fonts/Marianne/fontes web/Marianne-Regular.woff2 new file mode 100755 index 0000000000000000000000000000000000000000..5d6517c8043c9f365b6d37ac136f153d52ca1df3 Binary files /dev/null and b/snake/fonts/Marianne/fontes web/Marianne-Regular.woff2 differ diff --git a/snake/fonts/Marianne/fontes web/Marianne-Regular_Italic.woff b/snake/fonts/Marianne/fontes web/Marianne-Regular_Italic.woff new file mode 100755 index 0000000000000000000000000000000000000000..1880c5d75b8a8e8e0fd250ffe0a524aa5282b9a3 Binary files /dev/null and b/snake/fonts/Marianne/fontes web/Marianne-Regular_Italic.woff differ diff --git a/snake/fonts/Marianne/fontes web/Marianne-Regular_Italic.woff2 b/snake/fonts/Marianne/fontes web/Marianne-Regular_Italic.woff2 new file mode 100755 index 0000000000000000000000000000000000000000..30e8934ea8ca865a9e164da2e790386245cbcfb5 Binary files /dev/null and b/snake/fonts/Marianne/fontes web/Marianne-Regular_Italic.woff2 differ diff --git a/snake/fonts/Marianne/fontes web/Marianne-Thin.woff b/snake/fonts/Marianne/fontes web/Marianne-Thin.woff new file mode 100755 index 0000000000000000000000000000000000000000..6c8bc5a0d24e6a1ab648cdf758852ebff3dc32e7 Binary files /dev/null and b/snake/fonts/Marianne/fontes web/Marianne-Thin.woff differ diff --git a/snake/fonts/Marianne/fontes web/Marianne-Thin.woff2 b/snake/fonts/Marianne/fontes web/Marianne-Thin.woff2 new file mode 100755 index 0000000000000000000000000000000000000000..1ec57f77fd44c852dc1fc38fce68e223c87f9f23 Binary files /dev/null and b/snake/fonts/Marianne/fontes web/Marianne-Thin.woff2 differ diff --git a/snake/fonts/Marianne/fontes web/Marianne-Thin_Italic.woff b/snake/fonts/Marianne/fontes web/Marianne-Thin_Italic.woff new file mode 100755 index 0000000000000000000000000000000000000000..4c23d6b9870c842d28da6c382976c893e0b545c1 Binary files /dev/null and b/snake/fonts/Marianne/fontes web/Marianne-Thin_Italic.woff differ diff --git a/snake/fonts/Marianne/fontes web/Marianne-Thin_Italic.woff2 b/snake/fonts/Marianne/fontes web/Marianne-Thin_Italic.woff2 new file mode 100755 index 0000000000000000000000000000000000000000..d3978b9e584ebcd9f2cadb141e472d28b251b552 Binary files /dev/null and b/snake/fonts/Marianne/fontes web/Marianne-Thin_Italic.woff2 differ diff --git a/snake/fonts/Marianne/pdfs/.uuid b/snake/fonts/Marianne/pdfs/.uuid new file mode 100755 index 0000000000000000000000000000000000000000..2aa8d15f2eab6af4802bf2a0e4907bccbbb9660b --- /dev/null +++ b/snake/fonts/Marianne/pdfs/.uuid @@ -0,0 +1 @@ +c5c8b6ca-d462-4947-af3f-9056abdfb266 \ No newline at end of file diff --git a/snake/fonts/Marianne/pdfs/Marianne 11.01.46.pdf b/snake/fonts/Marianne/pdfs/Marianne 11.01.46.pdf new file mode 100755 index 0000000000000000000000000000000000000000..72944b0b1b5837e54403d59325b1edc90e187ed5 Binary files /dev/null and b/snake/fonts/Marianne/pdfs/Marianne 11.01.46.pdf differ diff --git a/snake/fonts/Marianne/pdfs/Marianne Bold 11.01.46.pdf b/snake/fonts/Marianne/pdfs/Marianne Bold 11.01.46.pdf new file mode 100755 index 0000000000000000000000000000000000000000..2be7d221e545a230f30ebe2bb6cac936ff25f3b6 Binary files /dev/null and b/snake/fonts/Marianne/pdfs/Marianne Bold 11.01.46.pdf differ diff --git a/snake/fonts/Marianne/pdfs/Marianne Bold Italic 11.01.46.pdf b/snake/fonts/Marianne/pdfs/Marianne Bold Italic 11.01.46.pdf new file mode 100755 index 0000000000000000000000000000000000000000..04285b5d04b1cc567ca093e3f1ac7a21f0704ed6 Binary files /dev/null and b/snake/fonts/Marianne/pdfs/Marianne Bold Italic 11.01.46.pdf differ diff --git a/snake/fonts/Marianne/pdfs/Marianne ExtraBold 11.01.46.pdf b/snake/fonts/Marianne/pdfs/Marianne ExtraBold 11.01.46.pdf new file mode 100755 index 0000000000000000000000000000000000000000..7090c3b25bf630d5ca8643e4a65f7c2c0c6a6cef Binary files /dev/null and b/snake/fonts/Marianne/pdfs/Marianne ExtraBold 11.01.46.pdf differ diff --git a/snake/fonts/Marianne/pdfs/Marianne ExtraBold Italic 11.01.46.pdf b/snake/fonts/Marianne/pdfs/Marianne ExtraBold Italic 11.01.46.pdf new file mode 100755 index 0000000000000000000000000000000000000000..10ec68b2d7b12fb4cb64a2ba09a1c071688029fc Binary files /dev/null and b/snake/fonts/Marianne/pdfs/Marianne ExtraBold Italic 11.01.46.pdf differ diff --git a/snake/fonts/Marianne/pdfs/Marianne Italic 11.01.46.pdf b/snake/fonts/Marianne/pdfs/Marianne Italic 11.01.46.pdf new file mode 100755 index 0000000000000000000000000000000000000000..663cc3f823b389c6a7ab5df8ba239163f4b082f3 Binary files /dev/null and b/snake/fonts/Marianne/pdfs/Marianne Italic 11.01.46.pdf differ diff --git a/snake/fonts/Marianne/pdfs/Marianne Light 11.01.46.pdf b/snake/fonts/Marianne/pdfs/Marianne Light 11.01.46.pdf new file mode 100755 index 0000000000000000000000000000000000000000..f7b03a6d8edd78200f9deb85af71da21aa16e6f9 Binary files /dev/null and b/snake/fonts/Marianne/pdfs/Marianne Light 11.01.46.pdf differ diff --git a/snake/fonts/Marianne/pdfs/Marianne Light Italic 11.01.46.pdf b/snake/fonts/Marianne/pdfs/Marianne Light Italic 11.01.46.pdf new file mode 100755 index 0000000000000000000000000000000000000000..99e5e96fd7ff64fa53ef321b788e433d56039865 Binary files /dev/null and b/snake/fonts/Marianne/pdfs/Marianne Light Italic 11.01.46.pdf differ diff --git a/snake/fonts/Marianne/pdfs/Marianne Medium 11.01.46.pdf b/snake/fonts/Marianne/pdfs/Marianne Medium 11.01.46.pdf new file mode 100755 index 0000000000000000000000000000000000000000..a121be2d481861820e1c12f894ecb69f8dfd7896 Binary files /dev/null and b/snake/fonts/Marianne/pdfs/Marianne Medium 11.01.46.pdf differ diff --git a/snake/fonts/Marianne/pdfs/Marianne Medium Italic 11.01.46.pdf b/snake/fonts/Marianne/pdfs/Marianne Medium Italic 11.01.46.pdf new file mode 100755 index 0000000000000000000000000000000000000000..e7732a3a6a2c4867c87341e877d5bc0d119a9491 Binary files /dev/null and b/snake/fonts/Marianne/pdfs/Marianne Medium Italic 11.01.46.pdf differ diff --git a/snake/fonts/Marianne/pdfs/Marianne Thin 11.01.46.pdf b/snake/fonts/Marianne/pdfs/Marianne Thin 11.01.46.pdf new file mode 100755 index 0000000000000000000000000000000000000000..f2c7dedb6547a94957c781d60223784a0cdb897f Binary files /dev/null and b/snake/fonts/Marianne/pdfs/Marianne Thin 11.01.46.pdf differ diff --git a/snake/fonts/Marianne/pdfs/Marianne Thin Italic 11.01.46.pdf b/snake/fonts/Marianne/pdfs/Marianne Thin Italic 11.01.46.pdf new file mode 100755 index 0000000000000000000000000000000000000000..09476e511d56cf8714f4643c2c82f97f27aeea2b Binary files /dev/null and b/snake/fonts/Marianne/pdfs/Marianne Thin Italic 11.01.46.pdf differ diff --git a/snake/fonts/Spectral/SIL Open Font License.txt b/snake/fonts/Spectral/SIL Open Font License.txt new file mode 100755 index 0000000000000000000000000000000000000000..47cc95b8976255da9ff65a6872510b173ced551b --- /dev/null +++ b/snake/fonts/Spectral/SIL Open Font License.txt @@ -0,0 +1,43 @@ +Copyright 2017 Production Type (info@productiontype.com) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others. + +The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the copyright statement(s). + +"Original Version" refers to the collection of Font Software components as distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment. + +"Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission. + +5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. \ No newline at end of file diff --git a/snake/fonts/Spectral/Spectral-Bold.ttf b/snake/fonts/Spectral/Spectral-Bold.ttf new file mode 100755 index 0000000000000000000000000000000000000000..ef9371dd5af2e5fb012112786735ce69b2400a36 Binary files /dev/null and b/snake/fonts/Spectral/Spectral-Bold.ttf differ diff --git a/snake/fonts/Spectral/Spectral-BoldItalic.ttf b/snake/fonts/Spectral/Spectral-BoldItalic.ttf new file mode 100755 index 0000000000000000000000000000000000000000..e57c06ec15ce99d2a7dfb3625f078f2f9ebef86a Binary files /dev/null and b/snake/fonts/Spectral/Spectral-BoldItalic.ttf differ diff --git a/snake/fonts/Spectral/Spectral-ExtraBold.ttf b/snake/fonts/Spectral/Spectral-ExtraBold.ttf new file mode 100755 index 0000000000000000000000000000000000000000..7614cc5aa55dec6300f41faf49f5644b623b761e Binary files /dev/null and b/snake/fonts/Spectral/Spectral-ExtraBold.ttf differ diff --git a/snake/fonts/Spectral/Spectral-ExtraBoldItalic.ttf b/snake/fonts/Spectral/Spectral-ExtraBoldItalic.ttf new file mode 100755 index 0000000000000000000000000000000000000000..7a39e12cd22e66a39e1bc8f35c35f52be48ccfe4 Binary files /dev/null and b/snake/fonts/Spectral/Spectral-ExtraBoldItalic.ttf differ diff --git a/snake/fonts/Spectral/Spectral-ExtraLight.ttf b/snake/fonts/Spectral/Spectral-ExtraLight.ttf new file mode 100755 index 0000000000000000000000000000000000000000..9d0344b67f735df667454ee43e2ced2d06896764 Binary files /dev/null and b/snake/fonts/Spectral/Spectral-ExtraLight.ttf differ diff --git a/snake/fonts/Spectral/Spectral-ExtraLightItalic.ttf b/snake/fonts/Spectral/Spectral-ExtraLightItalic.ttf new file mode 100755 index 0000000000000000000000000000000000000000..38265cce7bacb5b7713dfd0c9000b1c6a6ec2e4b Binary files /dev/null and b/snake/fonts/Spectral/Spectral-ExtraLightItalic.ttf differ diff --git a/snake/fonts/Spectral/Spectral-Italic.ttf b/snake/fonts/Spectral/Spectral-Italic.ttf new file mode 100755 index 0000000000000000000000000000000000000000..b5aea4c0f814aa43c2da3645a9f079dcd175864e Binary files /dev/null and b/snake/fonts/Spectral/Spectral-Italic.ttf differ diff --git a/snake/fonts/Spectral/Spectral-Light.ttf b/snake/fonts/Spectral/Spectral-Light.ttf new file mode 100755 index 0000000000000000000000000000000000000000..b257c45145788ad400930b7fd0978c22369ca551 Binary files /dev/null and b/snake/fonts/Spectral/Spectral-Light.ttf differ diff --git a/snake/fonts/Spectral/Spectral-LightItalic.ttf b/snake/fonts/Spectral/Spectral-LightItalic.ttf new file mode 100755 index 0000000000000000000000000000000000000000..2fa23ebbba81a384c3e74df2122c71436640d405 Binary files /dev/null and b/snake/fonts/Spectral/Spectral-LightItalic.ttf differ diff --git a/snake/fonts/Spectral/Spectral-Medium.ttf b/snake/fonts/Spectral/Spectral-Medium.ttf new file mode 100755 index 0000000000000000000000000000000000000000..f11ef33c11d54f9d405c04d73fdcb37894074d9b Binary files /dev/null and b/snake/fonts/Spectral/Spectral-Medium.ttf differ diff --git a/snake/fonts/Spectral/Spectral-MediumItalic.ttf b/snake/fonts/Spectral/Spectral-MediumItalic.ttf new file mode 100755 index 0000000000000000000000000000000000000000..09638955341b3525d1b08d213789c0629e99d804 Binary files /dev/null and b/snake/fonts/Spectral/Spectral-MediumItalic.ttf differ diff --git a/snake/fonts/Spectral/Spectral-Regular.ttf b/snake/fonts/Spectral/Spectral-Regular.ttf new file mode 100755 index 0000000000000000000000000000000000000000..cffda84e9762cb7ae60e82ec19c03b794c7a3a9a Binary files /dev/null and b/snake/fonts/Spectral/Spectral-Regular.ttf differ diff --git a/snake/fonts/Spectral/Spectral-SemiBold.ttf b/snake/fonts/Spectral/Spectral-SemiBold.ttf new file mode 100755 index 0000000000000000000000000000000000000000..c81cd4648d1546a2aad33079a293fad3cb153f0f Binary files /dev/null and b/snake/fonts/Spectral/Spectral-SemiBold.ttf differ diff --git a/snake/fonts/Spectral/Spectral-SemiBoldItalic.ttf b/snake/fonts/Spectral/Spectral-SemiBoldItalic.ttf new file mode 100755 index 0000000000000000000000000000000000000000..4e1c06b7d6d4d978630e77ad762143758ff436ea Binary files /dev/null and b/snake/fonts/Spectral/Spectral-SemiBoldItalic.ttf differ diff --git a/snake/grid.tex b/snake/grid.tex new file mode 100755 index 0000000000000000000000000000000000000000..c0489fc7d67ba0b2f4146c6293ac03fbc355a672 --- /dev/null +++ b/snake/grid.tex @@ -0,0 +1,33 @@ +\documentclass[tikz]{standalone} + +\usepackage{tikz} + +\begin{document} +\begin{tikzpicture} + \draw[step=0.5cm,gray, very thin] (0, 0) grid (15, 10); + \fill[green!40!white, draw=green!40!black] (10, 4) rectangle (10.5, 4.5); + \fill[green!40!white, draw=green!40!black] (10.5, 4) rectangle (11, 4.5); + \fill[green!40!white, draw=green!40!black] (9.5, 4) rectangle (10, 4.5); + \fill[green!40!white, draw=green!40!black] (9, 4) rectangle (9.5, 4.5); + \fill[green!40!white, draw=green!40!black] (10.5, 4.5) rectangle (11, 5); + + \fill[red!40!white] (7, 7) rectangle (7.5, 7.5); + \foreach \y in {0,...,19} + { + \pgfmathtruncatemacro{\ys}{19 - \y} + \node (b\y) at (-0.25, 0.5*\y + 0.25) {\small\ys}; + }; + + \foreach \x in {0,...,29} + { + \node (a\x) at (0.5*\x + 0.25, 10.25) {\small\x}; + } + +\end{tikzpicture} + +\end{document} + +%%% Local Variables: +%%% mode: latex +%%% TeX-master: t +%%% End: diff --git a/snake/install-linux.sh b/snake/install-linux.sh new file mode 100755 index 0000000000000000000000000000000000000000..1ff0414d62bc3c4be5c3b9934ed73023370d8930 --- /dev/null +++ b/snake/install-linux.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +ROOT_DIR=$HOME +INSTALL_FONT_DIR=$ROOT_DIR/.fonts + +echo "copying font files to $INSTALL_FONT_DIR" + +mkdir -vp $INSTALL_FONT_DIR +cp -ru fonts/* $INSTALL_FONT_DIR +fc-cache diff --git a/snake/logo-CRIStAL.pdf b/snake/logo-CRIStAL.pdf new file mode 100644 index 0000000000000000000000000000000000000000..55e7308f857f345063e2845acfadd7cd7839eaba Binary files /dev/null and b/snake/logo-CRIStAL.pdf differ diff --git a/snake/preamble_fr.tex b/snake/preamble_fr.tex new file mode 100644 index 0000000000000000000000000000000000000000..f0841b3639b63bf725613af4bf94a7bff45a1385 --- /dev/null +++ b/snake/preamble_fr.tex @@ -0,0 +1,66 @@ +\usepackage{footnote} +\usepackage{cleveref} +\usepackage{titlesec} + +\newcounter{step}[section] +\titleclass{\step}{straight}[\part] +\titleformat{\step}[hang] + {\normalfont\sffamily\Large\bfseries}{\stepcounter{section}Étape~\thesection}{0em}{ - } +\titlespacing*{\step}{0pt}{3.5ex plus 1ex minus .2ex}{2.3 ex plus .2ex} + +\crefname{step}{étape}{étapes} +\crefdefaultlabelformat{#2\bfseries\sffamily{\textup{#1}}#3} + +\RenewDocumentCommand{\thefootnote}{}{% + \textcolor{ulille-green}{\bfseries\arabic{footnote}} +} + +\makeatletter +\NewDocumentCommand{\footnoteref}{ O{} }{% + \protected@xdef\@thefnmark{\ref{#1}}\@footnotemark% +} +\makeatother + +\newtcolorbox{ideablock}[1][]{% + colback=white, + colframe=ulille-orange, + title={\small \faLightbulb[regular]} Aide, + fonttitle=\sffamily\bfseries, + left=3pt, + right=3pt, + top=2pt, + bottom=2pt, + #1% +} + +\newtcolorbox{objectiveblock}[1][]{% + colback=white, + colframe=ulille-green, + title={\small \faBullseye} Objectifs, + fonttitle=\sffamily\bfseries, + left=3pt, + right=3pt, + top=2pt, + bottom=2pt, + #1% +} + +\NewDocumentCommand{\descr}{ m }{% + \bfseries + \textcolor{ulille-orange}{#1}% + \normalfont% +} + +\NewDocumentCommand{\emphase}{ m }{% + \bfseries% + \ttfamily% + \textcolor{ulille-brown}{#1}% + \normalfont% +} + + +%%% Local Variables: +%%% mode: LaTeX +%%% TeX-master: "snake_fr" +%%% TeX-engine: luatex +%%% End: diff --git a/snake/pyproject.toml b/snake/pyproject.toml new file mode 100644 index 0000000000000000000000000000000000000000..dc11125747f2f1e0fadc816f2ff9fe3a903e8a12 --- /dev/null +++ b/snake/pyproject.toml @@ -0,0 +1,23 @@ +[tool.poetry] +name = "snake-template" +version = "1.0.0" +description = "Template pour le jeu Snake -- Fil Rouge stages seconde" +authors = ["Oliver Irwin <oliver.irwin@univ-lille.fr"] + +[tool.poetry.dependencies] +python = ">=3.10.0,<=3.12" +pygame = "^2.5.2" + +[tool.pyright] +# https://github.com/microsoft/pyright/blob/main/docs/configuration.md +useLibraryCodeForTypes = true +exclude = [".cache"] + +[tool.ruff] +# https://beta.ruff.rs/docs/configuration/ +select = ['E', 'W', 'F', 'I', 'B', 'C4', 'ARG', 'SIM'] +ignore = ['W291', 'W292', 'W293'] + +[build-system] +requires = ["poetry-core>=1.0.0"] +build-backend = "poetry.core.masonry.api" \ No newline at end of file diff --git a/snake/snake_fr.tex b/snake/snake_fr.tex new file mode 100755 index 0000000000000000000000000000000000000000..b7e3c11e9a61ab81f210a8f8c1f60656a20399e1 --- /dev/null +++ b/snake/snake_fr.tex @@ -0,0 +1,281 @@ +\documentclass[french]{fil-td} + +\input{preamble_fr} + +\hypersetup{ + colorlinks, + urlcolor=ulille-orange, + linkcolor=ulille-green, + pdfauthor=Oliver Irwin, + pdftitle=Snake, + pdfsubject=Projet Fil Rouge -- Stages Seconde 2024, + pdfkeywords={Python, snake, jeu, projet, CRIStAL, CNRS} +} + +\title{Projet Snake} +\subject{Stages Seconde 2024} +\teacher{\textsf{CRIStAL} - Commission Scolaire} + +\BeforeBeginEnvironment{ideablock}{\savenotes} +\AfterEndEnvironment{ideablock}{\spewnotes} + +% \BeforeBeginEnvironment{infoblock}{\savenotes} +% \AfterEndEnvironment{infoblock}{\spewnotes} + +\BeforeBeginEnvironment{objectiveblock}{\savenotes} +\AfterEndEnvironment{objectiveblock}{\spewnotes} + + +\begin{document} + +\maketitle + +\begin{objectiveblock}[title={\small \faBullseye} Conseils] + \begin{itemize} + \item l'objectif est de vous faire tous travailler sur le projet, mais + n'hésitez pas à discuter entre vous; + \item toutes les notions utiles sont disponibles soit dans le document joint + soit dans la documentation\footnote{\url{https://www.pygame.org/docs/}}; + \item la plupart des réponses se trouvent dans les questions; + \item posez des questions \faLaughWink[regular]{} + \end{itemize} +\end{objectiveblock} + +\section*{Contexte} + +Le jeu \descr{Snake} est un des jeux les plus populaires au monde\footnote{au + moins à une certaine époque}. L'objectif du jeu est de contrôler un petit +serpent. Ce serpent peut se déplacer dans une zone de jeu bien définie et a pour +objectif de manger des pommes qui y sont placées aléatoirement. Chaque pomme +mangée fait grandir le serpent, qui devient alors plus difficile à contrôler. Le +jeu se termine si le serpent quitte la zone de jeu, si sa tête touche une autre +partie de son corps ou (dans le meilleur des cas), s'il remplit toute la surface +de jeu. + +\begin{ideablock} + Dans le squelette de code fourni se trouvent de multiples informations sur les + endroits où écrire les morceaux de code. Utilisez ça à votre avantage! +\end{ideablock} + +\subsection*{Organisation de la zone de jeu} + +On définit une \descr{position} dans la zone de jeu par une paire de nombre qui +indiquent la distance au coin supérieur gauche: \emphase{(0,0)}. La première +coordonnée concerne la distance \descr{horizontale} et la seconde la distance +\descr{verticale}. + +On définit une \descr{unité} comme un nombre de pixels qui vont permettre de +diviser la zone de jeux dans une grille. La première colonne (ou ligne) sera +\emphase{0}, la dernière aura l'indice \emphase{max - 1}. + +Chaque \descr{élément de jeu} est composé d'un carré de taille \descr{unité}, +identifié par la position de son coin supérieur gauche, qui correspondent à sa +colonne et sa ligne. + +Le serpent commencera \descr{au milieu} de la zone de jeu. + +Le serpent est composé de plusieurs carrés de la même couleur. Quand il se +déplace, on considère que la tête se déplace dans la direction donnée et que le +dernier carré disparaît. + +Dans la \cref{fig:grid}, vous pouvez observer un exemple simplifié d'une grille +de \emphase{30x20}. Le serpent fait ici \emphase{5} carrés de long et la pomme +est à la position \emphase{(14, 5)}. Bien sûr, vous ne représenterez pas les +coordonnées à l'écran, elles sont juste là pour la visualisation. + +\begin{figure}[htp] + \centering + \includegraphics{grid} + \caption{Exemple de grille} + \label{fig:grid} +\end{figure} + +\clearpage +\step{Définition des variables} +\label{step:1} + +Comme dans tout bon projet de code, on va commencer par définir quelques +variables qui vont nous permettre de gérer la zone de jeu proprement. + +Vous aurez besoin de: + +\begin{itemize} +\item une taille \descr{unite}, à régler à \emphase{10} pour le moment; +\item une taille \descr{largeur\_zone}, réglée à \emphase{60} unités; +\item une taille \descr{hauteur\_zone}, réglée à \emphase{40} unités; +\item une couleur \descr{couleur\_nourriture}\footnote{\label{fn:couleurs}il y a + des exemples de couleurs dans le squelette, mais n'hésitez pas à utiliser les + votres~!}; +\item une couleur \descr{couleur\_serpent}\footnoteref[fn:couleurs]; +\item une couleur \descr{couleur\_fond}\footnoteref[fn:couleurs]. +\end{itemize} + +\step{Préparation de la zone de jeu} + +Dans cette étape, on se concentre sur la création et la préparation de la zone +de jeu. + +\begin{enumerate} +\item mettez à jour le squelette pour construire une fenêtre de telle sorte à ce + qu'elle utilise les variables de largeur et de hauteur de zone que vous avez + définies; +\item ajoutez une couleur de fond à la fenêtre; +\item écrivez le corps de la fonction \descr{dessiner\_carre}. Cette fonction + prend 3 paramètres: \emphase{x}, \emphase{y} et \emphase{couleur}. Elle + dessinera un carré de taille \descr{unite} à la position \emphase{(x, y)}. +\end{enumerate} + +\begin{ideablock} + N'hésitez pas à tester votre fonction dans votre grille pour vérifier que vous + avez bien un carré de la bonne couleur au bon endroit. +\end{ideablock} + +\step{Une pincée d'aléatoire} + +On veut pouvoir faire apparaître la nourriture à des endroits aléatoires de la +grille, sinon le jeu est trop facile. Pour pouvoir faire ça, il faut qu'on soit +en mesure de générer des positions aléatoires. + +\begin{enumerate} +\item Écrivez une fonction \descr{entier\_aleatoire} qui prend un paramètre + \emphase{max} et qui renvoie un entier aléatoire entre \emphase{0} et + \emphase{max} (exclus). +\item Écrivez une fonction \descr{position\_aleatoire} qui renvoie une position + (donc un couple de coordonnées) qui doit être \descr{valide}, c'est à dire qui + est dans la zone de jeu. Vous devriez utiliser la fonction que vous venez de + définir et les variables de l'\cref{step:1}. +\end{enumerate} + +\begin{ideablock} + La structure de données la plus efficace pour représenter ce couple d'entiers + est le \emphase{tuple} +\end{ideablock} + +\step{Afficher plusieurs carrés} + +Le serpent va vite être constitué de plusieurs carrés. On va donc devoir définir +une fonction \descr{dessine\_liste\_carres} qui prend en paramètres: + +\begin{itemize} +\item une liste de positions; +\item une couleur. +\end{itemize} + +et qui dessine pour chaque position dans la liste un carré. Vous utiliserez bien +sûr la fonction que vous avez définie lors de l'\cref{step:1}. Tous les carrés +de la liste seront de la même couleur. + +\step{Variables des éléments de jeu} + +On va redéfinir quelques variables supplémentaires, qui cette fois vont nous +aider à stocker des informations importantes sur la partie. Vous allez avoir +besoin de: + +\begin{itemize} +\item une liste \descr{positions\_serpent}, qui représente la liste des + positions des carrés constituant le serpent. Au départ, vous pouvez n'y mettre + qu'un seul élément qui est le milieu de la zone de jeu. +\item un booléen \descr{fin\_jeu}, qui nous indiquera que la partie est + terminée. Bien sûr, cette variable vaut \emphase{False} au départ. +\item la direction du serpent \descr{direction\_serpent}, chaîne vide au départ. +\item la position de la pomme \descr{position\_pomme}, qui sera initialement + choisie en appelant une fonction bien choisie. +\end{itemize} + +\step{Un tour de jeu} + +Un tour de jeu est constitué de plusieurs actions, que l'on va décrire +maintenant: + +\begin{enumerate} +\item appeler la fonction \descr{dessine\_carre} pour faire apparaître la pomme + au bon endroit; +\item appeler la fonction \descr{afficher\_message} pour faire apparaître le + score en haut à gauche. On définit le score comme étant la longueur du serpent + moins 1. +\item appeler la fonction \descr{dessine\_liste\_carres} pour afficher le + serpent. +\item utiliser la variable \descr{fin\_jeu} dans la boucle principale. +\end{enumerate} + +\step{Les directions} + +Notre serpent va pouvoir se déplacer dans plusieurs directions. On va créer une +fonction \descr{direction}, qui va prendre deux paramètres: la touche sur +laquelle on appuie et la direction du serpent actuelle. On se base ensuite sur +la touche pressée pour changer la direction. Si c'est: + +\begin{itemize} +\item \emphase{HAUT}, alors la coordonnée \emphase{x} ne change pas et + \emphase{y} augmente de 1; +\item \emphase{BAS}, alors on ne touche pas à \emphase{x} et on décroît + \emphase{y} de 1; +\item \emphase{GAUCHE}, alors \emphase{x} decroît de 1 et \emphase{y} ne change + pas; +\item \emphase{DROITE}, alors \emphase{x} augmente de 1 et \emphase{y} ne change + pas. +\end{itemize} + +La fonction renverra un tuple d'entiers qui représente les changements pour +\emphase{x} et \emphase{y}. Si une autre touche est pressée, alors on ne change +rien bien sûr. + +\step{Réagir à un évènement} + +Deux évènements principaux peuvent arriver pendant la partie. Il faudra gérer ce +qu'il se passe pour chaque. + +\begin{enumerate} +\item Le joueur appuie sur la bouton de sortie. Dans ce cas, la partie se + termine, une variable doit changer. +\item Le joueur appuie sur une touche. Dans ce cas, la direction du serpent peut + changer. Utilisez une fonction définie précédemment pour gérer ceci. +\end{enumerate} + +\begin{ideablock} + Vous pouvez utiliser \emphase{event.type} pour obtenir le type d'un évènement. +\end{ideablock} + +\step{Calcul de la nouvelle position} + +Écrivez une fonction \descr{nouvelle\_position} qui prend en paramètre le +serpent et la direction actuelle. La fonction renvoie la nouvelle position de la +tête du serpent. + +Vous calculerez la nouvelle coordonnée à partir de la direction. Pour faire plus +simple, vous pourrez ajouter la nouvelle position à la fin de la liste des +positions du serpent, mais gardez en tête que c'est le dernier élément de cette +liste qui représentera la tête à chaque fois. + +\step{Respecter la zone} + +On ne veut pas que notre serpent puisse quitter la zone (ça pourrait même être +un motif de fin de partie). Écrivez donc une fonction \descr{dans\_zone} qui +renvoie \emphase{True} si la position est dans la zone de jeu et \emphase{False} +sinon. + +\begin{ideablock} + Utilisez les variables que vous avez définies à l'\cref{step:1} pour + déterminer si on est dans la zone! +\end{ideablock} + +\step{Déplacer le serpent} + +Il faut maintenant déterminer la nouvelle position de la tête et vérifier deux +choses : + +\begin{enumerate} +\item si la tête du serpent est dans la zone de jeu, alors elle est ajoutée au + serpent, sinon, la partie est finie; +\item si la tête du serpent est sur la pomme, alors il faut déterminer une + nouvelle position valide pour la nourriture. Sinon, alors on retire de la + liste la position de la queue du serpent. +\end{enumerate} + +\end{document} + +%%% Local Variables: +%%% mode: latex +%%% TeX-master: t +%%% TeX-engine: luatex +%%% End: