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
| <?php | |
| namespace App\Libraries; | |
| class Lookup { | |
| // constant for MAP NEGERI ID | |
| // const MAP_JOHOR = "001"; | |
| // const MAP_KEDAH = "002"; |
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 function store() | |
| { | |
| $rules = [ | |
| 'title' => 'required', | |
| 'description' => 'required', | |
| ]; | |
| if (! $this->validate($rules)) { | |
| return redirect()->back()->withInput(); | |
| } |
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
| <script type="module"> | |
| let data = {!! $keywords !!}; | |
| $('#example tbody').on('click', 'button', function () { | |
| var data = table.row($(this).parents('tr')).data(); | |
| $("#keyword").val(data.keyword); | |
| $("#keyword").focus(); | |
| }); |
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 Layout = ({ children }) => { | |
| useEffect(() => { | |
| // set version | |
| window.APP_VERSION = process.env.NEXT_PUBLIC_APP_VERSION; | |
| }, []); | |
| } | |
| export default Layout; |
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
| Host devserve | |
| User akid | |
| HostName 12.120.104.101 | |
| Port 41083 | |
| ForwardAgent yes | |
| LocalForward 8090 localhost:8000 |
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
| NEXT_PUBLIC_HELPSCOUT_BEACON_ID=9dc0a553-237e-5678-1234-09977d96ddf8 |
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 React, { useState, useEffect } from "react"; | |
| import Modal from "react-modal"; | |
| import { getModalStyle } from "helpers/common_helper"; | |
| export default function Home() { | |
| const [modalIsOpen, setIsOpen] = useState(false); | |
| // modal methods | |
| function openModal() { |
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 nextConfig = { | |
| trailingSlash: true, | |
| images: { | |
| loader: "akamai", | |
| path: "", | |
| }, | |
| }; | |
| module.exports = nextConfig; |
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
| cp -a /source/. /dest/ |
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 React, { useState, useEffect } from "react"; | |
| const GenerateCounter = ({ count, updateCount, ...restProps }) => { | |
| const handleClick = (e) => { | |
| let new_count = count + 1; | |
| updateCount(new_count); | |
| }; | |
| return ( |