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 type { Metadata } from "next"; | |
| import localFont from "next/font/local"; | |
| import "../styles/globals.css"; | |
| import { ReactNode } from "react"; | |
| const excalifont = localFont({ | |
| src: "./fonts/excalifont-regular.woff", | |
| variable: "--font-excalifont", | |
| weight: "100 200 300 400 500 600 700 800 900 normal regular bold light italic", | |
| }); |
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
| export default function HomePage() { | |
| return ( | |
| <div className="min-h-screen flex flex-col h-screen"> | |
| <header className="bg-red-50">Header</header> | |
| <div className="flex-1 flex flex-row overflow-y-hidden"> | |
| <main className="flex-1 bg-indigo-100 overflow-y-auto">Content here</main> | |
| <nav className="order-first sm:w-32 bg-purple-200 overflow-y-auto">Sidebar</nav> | |
| <aside className="sm:w-32 bg-yellow-100 overflow-y-auto">Right Sidebar</aside> | |
| </div> | |
| <footer className="bg-gray-100">Footer</footer> |
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
| class MainActivity : AppCompatActivity() { | |
| override fun onCreate(savedInstanceState: Bundle?) { | |
| super.onCreate(savedInstanceState) | |
| setContentView(R.layout.activity_main) | |
| } | |
| } |
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
| class MethodTypes(): | |
| def __init__(self): | |
| self.lastname = "Lothbrock" | |
| self.name = "Ragnar" | |
| def instanceMethod(self): | |
| # Creates an instance atribute through keyword self | |
| print(self.name) | |
| print(self.lastname) |
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
| class MethodClass: | |
| @staticmethod | |
| def factorial(number): | |
| if number == 0: | |
| return 1 | |
| else: | |
| return number * MethodClass.factorial(number - 1) | |
| factorial = MethodClass.factorial(5) | |
| print(factorial) |
NewerOlder