Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 random | |
################################################################################ | |
def main(): | |
table = Table(['Matthew', 'Mark', 'Luke', 'John']) | |
table.deal_cards() | |
table.play_all() | |
def print_underline(string, line): |
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
//const val camel = """Switching on the camera in the camel habitat... | |
// ___.-''''-. | |
///___ @ | | |
//',,,,. | _.'''''''._ | |
// ' | / \ | |
// | \ _.-' \ | |
// | '.-' '-. | |
// | ', | |
// | '', | |
// ',,-, ':; |
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 socket | |
import sys | |
# Create a TCP/IP socket | |
stream_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
# Define host | |
host = 'localhost' | |
port = 8080 |
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 socket | |
import sys | |
# Create a TCP/IP socket | |
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
# Define host | |
host = 'localhost' | |
port = 8080 | |
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 HelloWorld { | |
public static void main(String[] args) { | |
System.out.println(“Hello world!”); | |
} | |
} | |
This is our first java program |
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
package com.danny.myapplication; | |
import androidx.appcompat.app.AlertDialog; | |
import androidx.appcompat.app.AppCompatActivity; | |
import androidx.core.app.ActivityCompat; | |
import androidx.recyclerview.widget.GridLayoutManager; | |
import androidx.recyclerview.widget.RecyclerView; | |
import android.content.DialogInterface; | |
import android.content.pm.PackageManager; |
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
lateinit var textView: TextView | |
// some transient state for the activity instance | |
var gameState: String? = null | |
override fun onCreate(savedInstanceState: Bundle?) { | |
// call the super class onCreate to complete the creation of activity like | |
// the view hierarchy | |
super.onCreate(savedInstanceState) |
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
# The Android Manifest.xml | |
*It names the Package Manager | |
*Describes the Activity Components | |
*Names the clases that implements the components and publishes their Capabilities | |
*They also declares the permissions that are needed in Your App | |
*It also sets the minimum Api that are needed in your Android App | |
*It Also lists the libraries In your Lovely app | |
#Happy learning |