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 'package:flutter/material.dart'; | |
| import 'package:go_router/go_router.dart'; | |
| class MainBottomNav extends StatefulWidget { | |
| final Widget child; | |
| const MainBottomNav({super.key, required this.child}); | |
| @override | |
| State<MainBottomNav> createState() => _MainBottomNavState(); | |
| } |
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
| FROM node:18.18.2-alpine as node | |
| FROM php:8.2-fpm-alpine as build-stage | |
| COPY deploy/php/php.ini /usr/local/etc/php/php.ini | |
| WORKDIR /var/www/ | |
| RUN apk --no-cache add \ |
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
| FROM php:8.2-fpm as build-stage | |
| # Use the default production configuration | |
| # RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" | |
| COPY deploy/php/php.ini /usr/local/etc/php/php.ini | |
| COPY deploy/php/php-fpm.conf /usr/local/etc/php-fpm.conf | |
| WORKDIR /var/www/ | |
| RUN apt-get update && apt-get install -y \ |
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 { ToastAndroid } from 'react-native'; | |
| import VersionCheck from 'react-native-version-check'; | |
| import { createLogger } from '@common/logger'; | |
| import { EventEmitter } from '@common/events'; | |
| import { isObject } from '@common/utils'; | |
| import { AuthService } from '../../modules/auth/rx/service'; | |
| import { store } from '../../app'; | |
| const events = new EventEmitter(); |
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"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <link rel="icon" href="https://ppdb.sumbarprov.go.id/sumbar.ico"> | |
| <title>PENDAFTARAN PPDB SUMBAR</title> | |
| <script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script> |
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
| @extends('biodata.app') | |
| @section('content-biodata-siswa') | |
| <div class="md:container lg:container" x-data="masukan initial alpine"> | |
| <div class="flex justify-center"> | |
| <div class="space-y-7 w-full"> | |
| <div class="space-y-2"> | |
| <h1 class="text-2xl font-bold text-primary-black">Isi Data Nilai</h1> | |
| <p class="text-md text-gray-500">Silahkan lengkapi data nilai per semester berikut, jika ada keraguan pada nilai silahkan bandingkan nilai dengan rapor yang telah di upload dengan cara menekan <span class="text-orange-500">Lihat Rapor Semester yang berada disebelah kanan atas pada formulir per semester</span>!</p> | |
| </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
| const pickImage = async () => { | |
| // No permissions request is necessary for launching the image library | |
| let result = await ImagePicker.launchImageLibraryAsync({ | |
| mediaTypes: ImagePicker.MediaTypeOptions.All, | |
| allowsEditing: true, | |
| aspect: [4, 3], | |
| quality: 1, | |
| }); | |
| let compressResult = await ImageManipulator.manipulateAsync(result.uri, [{ resize: { width: 540, height: 380 } }], |
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
| let query = knexInstance<Dokumen>('ms_dokumen') | |
| query.select('*') | |
| query.where((builder) => { | |
| if (no === 4) { | |
| builder.where('id_dokumen', 14) | |
| } | |
| }) | |
| query.first() |
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
| // referensi https://stackoverflow.com/questions/41887460/select-list-is-not-in-group-by-clause-and-contains-nonaggregated-column-inc/41887524 | |
| //masukan query di bawah ini ke sql query | |
| SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY','')); | |
| //set untuk selamanya di phpmyadmin | |
| https://stackoverflow.com/questions/23921117/disable-only-full-group-by |
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 express = require('express') | |
| const app = express() | |
| const port = 3000 | |
| const staticMiddleware = express.static(__dirname + '/public/') | |
| var history = require('connect-history-api-fallback'); // ini berguna untuk menghadle ketika aplication spa vue atau react notfound ketika reload page dari rute lain | |
| app.use(history({ | |
| rewrites: [ // ini beguna untuk membuat route api/icon bisa terbacaa sebagai api dari expresss |
NewerOlder