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
| public class DebugLogger extends MyLogger { | |
| DebugLogger(){ | |
| level = LOGLEVEL.D; | |
| } | |
| @Override | |
| public void handleMessage(LOGLEVEL level, String msg) { | |
| if(this.level == level){ | |
| System.out.println("DebugLogger: " + level.type + msg); | |
| } |
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
| #copied from https://github.com/github/gitignore/blob/master/Global/JetBrains.gitignore 2020-03-12 | |
| # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider | |
| # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 | |
| # User-specific stuff | |
| .idea/**/workspace.xml | |
| .idea/**/tasks.xml | |
| .idea/**/usage.statistics.xml | |
| .idea/**/dictionaries |
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 mysql.connector | |
| from mysql.connector import Error | |
| from sql_queries import MySqlQueries, MyDummyData | |
| class MariaDB: | |
| def __init__(self): | |
| self.connection = None | |
| def create_connection(self, host_name, user_name, user_password, db_name): |
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
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class SwipeManager : MonoBehaviour { | |
| private bool DEBUG = true; | |
| public interface ISwipe{ | |
| void SwipeLeft(); | |
| void SwipeRight(); |
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
| void ball(){ | |
| static bool isGetSeed = false; | |
| if(!isGetSeed){ | |
| srand((unsigned int)time(NULL)); | |
| isGetSeed = true; | |
| } | |
| int ballNum[6] = {0, }; | |
| for(int i = 0; i < 6; i++){ |