This file has been truncated, but you can view the full file.
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
[ | |
{ | |
"name": "Icy Bay Airport", | |
"kota": "Icy Bay", | |
"country": "US", | |
"country_name": "", | |
"pnr": 0, | |
"unix_offset": -28800, | |
"deleted": 0, | |
"_id": "60a3d818045fd93f38efabd5", |
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
<template> | |
<div> | |
<v-container> | |
<v-data-table :headers="headers" :items="dataku" class="elevation-1" item-key="id"> </v-data-table> | |
</v-container> | |
</div> | |
</template> | |
<script> | |
export default { |
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 | |
// ... | |
public function update(MyModel $m, $id) { | |
$m->$preventAttrSet = true; // this doesn't work, it will reset to false again | |
$data = $m->with('relation')->findOrFail($id)->ignoreMutators(); // this work and will ignore the mutators | |
return view('some.view', $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
<script type="text/x-template" id="app-template"> | |
<v-app> | |
<v-container> | |
<v-autocomplete | |
id="city" | |
name="city" | |
required | |
label="Your City" | |
v-model="form.city" | |
hide-no-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
-- create tables -- | |
-- create customer's table | |
CREATE TABLE customers( | |
customer_id NUMBER CONSTRAINT customer_id_pk PRIMARY KEY, | |
last_name VARCHAR2(25) NOT NULL, | |
first_name VARCHAR2(25) NOT NULL, | |
home_phone VARCHAR2(12) NOT NULL, | |
address VARCHAR2(100) NOT NULL, | |
city VARCHAR2(30) NOT NULL, | |
state VARCHAR2(2) NOT NULL, |
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 | |
namespace Library\CustomLibrary; | |
use CodeIgniter\HTTP\RequestInterface; | |
class Request | |
{ | |
/** | |
* Instance of the main Request object. | |
* |
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
server { | |
## How to allow access from LAN and Internet to your local project: | |
## https://winnmp.wtriple.com/howtos#How-to-allow-access-from-LAN-and-Internet-to-your-local-project | |
listen 127.0.0.1:80; | |
## Enable self signed SSL certificate: | |
## https://winnmp.wtriple.com/howtos#Enable-self-signed-SSL-certificate-for-your-local-project | |
listen 127.0.0.1:443 ssl http2; |
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
# Image | |
FROM php:7.4.15-fpm-alpine3.12 | |
# Set timezone | |
ENV TIMEZONE=Asia/Makassar | |
RUN ln -snf /usr/share/zoneinfo/$TIMEZONE /etc/localtime && echo $TIMEZONE > /etc/timezone | |
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ | |
RUN chmod +x /usr/local/bin/install-php-extensions && sync && install-php-extensions \ |
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
.form-control.v-select, .v-select * { | |
height: auto !important; | |
padding-right: 0px !important; | |
margin-right: 7px; | |
} |
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
const sqlite3 = require('sqlite3').verbose(); | |
var db; | |
var dberror = false; | |
const path = require('path'); | |
async function buatDb() { | |
console.log("Sedang membuat db"); | |
db = await new sqlite3.Database(path.resolve(__dirname, '../bin/dbsesi.db'), (err) => { | |
if (err) { | |
dberror = true; |
NewerOlder