This file contains 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 'dart:convert'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/services.dart'; | |
import 'package:karyawan/models/karyawan.dart'; | |
void main() { | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { |
This file contains 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 'package:cached_network_image/cached_network_image.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:wisata_candi/models/candi.dart'; | |
class DetailScreen extends StatelessWidget { | |
final Candi candi; | |
const DetailScreen({super.key, required this.candi}); | |
@override | |
Widget build(BuildContext context) { |
This file contains 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
services: | |
#frontend: | |
# build: | |
# context: frontend | |
# target: builder | |
# ports: | |
# - 4200:4200 | |
# stdin_open: true | |
# volumes: | |
# - ./frontend:/project |
This file contains 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
# syntax=docker/dockerfile:1.4 | |
FROM node:lts-buster-slim AS development | |
# Create app directory | |
WORKDIR /usr/src/app | |
COPY package.json /usr/src/app/package.json | |
COPY package-lock.json /usr/src/app/package-lock.json | |
RUN npm ci |
This file contains 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
<?php | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Facades\Route; | |
use App\Http\Controllers\Api\V1\TaskController; | |
/* | |
|-------------------------------------------------------------------------- | |
| API Routes | |
|-------------------------------------------------------------------------- |
This file contains 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
<?php | |
use Illuminate\Support\Facades\Route; | |
use App\Http\Controllers\HomeController; | |
use App\Http\Controllers\UserController; | |
use App\Http\Controllers\DashboardController; | |
/* | |
|-------------------------------------------------------------------------- | |
| Web Routes |
This file contains 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 main() async { | |
print("Getting your order ...."); | |
var order = await getOrder(); | |
try { | |
print("Your Order : $order"); //complete with data | |
} catch (error) { | |
print("Sorry, $error"); //complete with error | |
} finally { | |
print("Thank You"); //When Complete (with data) | |
} |
This file contains 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
//Implicit Interface | |
mixin Flyable { | |
void fly() { | |
print("I'm, flying"); | |
} | |
} | |
mixin Walkable { | |
void fly() { | |
print("I'm, walking"); | |
} |
This file contains 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
//Implicit Interface | |
mixin Flyable { | |
void fly() { | |
print("I'm, flying"); | |
} | |
} | |
mixin Walkable { | |
void fly() { | |
print("I'm, walking"); | |
} |
This file contains 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.if41.rspalembang.Activity; | |
import androidx.appcompat.app.AppCompatActivity; | |
import android.content.Intent; | |
import android.os.Bundle; | |
import android.widget.Button; | |
import android.widget.EditText; | |
import android.widget.Toast; |