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\Exceptions; | |
use Exception; | |
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; | |
use Illuminate\Http\Response; | |
use Symfony\Component\HttpKernel\Exception\HttpException; | |
use Illuminate\Database\Eloquent\ModelNotFoundException; | |
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
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
- [Table of Content](#table-of-content) | |
- [Mengenal Vue](#mengenal-vue) | |
- [Apa itu Vue?](#apa-itu-vue) | |
- [Sejarah Vue](#sejarah-vue) | |
- [Mengapa Memilih Vue?](#mengapa-memilih-vue) | |
- [Framework Javascript Populer](#framework-javascript-populer) | |
- [Didukung Banyak Pustaka](#didukung-banyak-pustaka) | |
- [Bukan One Man Show](#bukan-one-man-show) | |
- [Digunakan Perusahaan Besar](#digunakan-perusahaan-besar) | |
- [Mudah Dipelajari](#mudah-dipelajari) |
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>Belajar Vue</title> | |
<script src="lib/vue.js"></script> | |
<style> | |
form { | |
border: 1px solid #ddd; | |
padding:5px; | |
width:225px; |
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
export const BookComponent = { | |
data () { | |
return { | |
classCard: 'card' | |
} | |
}, | |
props: [ 'book' ], | |
template : ` | |
<div :class="classCard"> | |
<h3>{{ book.title }}</h3> |
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
DROP TABLE IF EXISTS `question_bank`; | |
CREATE TABLE `question_bank` ( | |
`id` bigint(33) NOT NULL AUTO_INCREMENT, | |
`satker_id` int(11) NOT NULL, | |
`topic` varchar(255) NOT NULL, | |
`level` int(1) DEFAULT '0' COMMENT 'tingkat kesulitan soal', | |
`type` int(1) NOT NULL DEFAULT '1' COMMENT '1:multiple choice, 2:essay', | |
`salt` varchar(255) NOT NULL, | |
`question` text NOT NULL, | |
`question_file` varchar(255) DEFAULT NULL, |
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
Hafid Mukhlasin | |
Lulusan Magister Teknologi Informasi - Universitas Indonesia ini mulai tertarik pada dunia pemrograman komputer sejak duduk dibangku SMA. Menyukai teknologi baru “early adopter” dan hingga saat ini masih terus melakukan riset-riset khususnya terkait pengembangan aplikasi berbasis web. Beberapa tulisanya bisa dibaca di blog pribadinya maupun di medium (https://medium.com/@hafidmukhlasin), aktif diberbagai forum online pemrograman web, baik di facebook, whatsapp maupun instagram. Sebelumnya pernah menulis buku best seller tentang framework PHP - Yii Framework. | |
Senior developer di salah satu lembaga training center di Jakarta ini, memiliki kemampuan pemrograman web di sisi backend dan frontend dengan sama baiknya, menjadikannya seorang fullstack developer yang berpengalaman lebih dari 10 tahun. VueJs & Progressive Web Application adalah topik yang saat ini sedang ditekuninya. | |
Email: [email protected] | |
Homepage: hafidmukhlasin.com | |
Github: hscstudio |
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
<html> | |
<head></head> | |
<body> | |
<script src="http://unpkg.com/axios/dist/axios.min.js"></script> | |
<script type="text/javascript"> | |
var request = obj => { | |
return new Promise((resolve, reject) => { | |
var req = new XMLHttpRequest(); | |
req.open('GET', url); | |
req.onload = function() { |
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 LOGIN = "LOGIN"; | |
const LOGIN_SUCCESS = "LOGIN_SUCCESS"; | |
const LOGOUT = "LOGOUT"; | |
const store = new Vuex.Store({ | |
state: { | |
isLoggedIn: localStorage.getItem("token") | |
}, | |
mutations: { | |
[LOGIN](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
server { | |
listen 80 default_server; | |
server_name localhost; | |
#root /usr/share/nginx/html; | |
#root /var/www/html; | |
root /home/html; | |
index index.php index.html index.htm; | |
# Load configuration files for the default server block. | |
include /etc/nginx/default.d/*.conf; |