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
<head> | |
<meta | |
http-equiv="Content-Security-Policy" | |
content="default-src *; img-src * data: 'self'; script-src * 'unsafe-inline' 'unsafe-eval'; style-src * 'unsafe-inline' *; connect-src *;" | |
/> | |
</head> |
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 { Pipe, PipeTransform } from "@angular/core"; | |
@Pipe({ | |
name: "groupByDate", | |
standalone: true, | |
pure: false, | |
}) | |
export class GroupByDatePipe implements PipeTransform { | |
transform(value: any) { | |
const items: any[] = []; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Debugging Demo</title> | |
</head> | |
<body> | |
<h1>JavaScript Debugging with Chrome Developer Tools</h1> | |
<input type="text" id="num1"> | |
<br> | |
<input type="text" id="num2"> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Media Query Demo</title> | |
<link rel="stylesheet" href="style.css"> | |
</head> | |
<body> | |
<div class="mobile-only">Toto je viditelné pouze na mobilních zařízeních.</div> |
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 android.util.Log | |
import cz.utb.fai.subjectinfo.api.StagApiService | |
import cz.utb.fai.subjectinfo.api.SubjectInfoNetwork | |
import cz.utb.fai.subjectinfo.api.mapToDatabase | |
import cz.utb.fai.subjectinfo.database.MyRoomDatabase | |
import cz.utb.fai.subjectinfo.database.mapToDomain | |
import cz.utb.fai.subjectinfo.domain.SubjectInfoDomain | |
import kotlinx.coroutines.Dispatchers |
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 cz.utb.fai.ademo; | |
import androidx.appcompat.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.util.Log; | |
import android.view.View; | |
import android.widget.Button; | |
import android.widget.EditText; | |
import android.widget.TextView; |
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 androidx.appcompat.app.AppCompatActivity | |
import android.os.Bundle | |
import androidx.lifecycle.ViewModelProvider | |
import cz.utb.fai.counterviewmodel.databinding.ActivityMainBinding | |
class MainActivity : AppCompatActivity() { | |
private lateinit var binding: ActivityMainBinding | |
private lateinit var viewModel: MainActivityViewModel |
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 androidx.appcompat.app.AppCompatActivity | |
import android.os.Bundle | |
import androidx.lifecycle.ViewModelProvider | |
import cz.utb.fai.counterviewmodel.databinding.ActivityMainBinding | |
class MainActivity : AppCompatActivity() { | |
private lateinit var binding: ActivityMainBinding | |
private lateinit var viewModel: MainActivityViewModel |
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() { | |
// constant keys for Bundle object for storing count and name | |
private val COUNT_KEY = "count" | |
private val NAME_KEY = "name" | |
... | |
override fun onCreate(savedInstanceState: Bundle?) { | |
... | |
// Check if there's a saved state |
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 UIKit | |
class DetailViewController: UIViewController { | |
var taskObj : Task? | |
let titleLabel: UILabel = { | |
let label = UILabel() | |
label.font = UIFont.systemFont(ofSize: 24, weight: .bold) | |
label.textAlignment = .center |
NewerOlder