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
<template> | |
<div class="container mx-auto"> | |
<br> | |
<header class="m-4 mb-8 md:m-8"> | |
<h3 class="text-3xl text-gray-900 font-bold text-left leading-none" style="margin-bottom: 10px; "> | |
Dashboard Kasus COVID-19 Provinsi Jawa Barat | |
</h3> | |
<small class="text-xl opacity-75">*Update Terakhir: {{ lastUpdatedAt }}</small> | |
</header> | |
<section class="m-4 mb-8 md:m-8"> |
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> | |
<meta charset="utf-8"> | |
<title>Modal Dialog</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> | |
</head> |
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> | |
<meta charset="utf-8"> | |
<title>Avatar</title> | |
<style> | |
/* Write your CSS solution here (do not edit the surrounding HTML) */ | |
.avatar{ | |
border-radius: 50%; | |
border-style: solid; |
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> | |
<meta charset="utf-8"> | |
<title>Company page</title> | |
</head> | |
<body> | |
<p>Welcome! Here you can find the following things:</p> | |
<ol> | |
<li><a href="#logo"><em>Company's logo</em></a></li> |
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
function appendChildren(decorateDivFunction) { | |
var allDivs = document.getElementsByTagName("div"); | |
var len = allDivs.length; | |
for (var i = 0; i < len; i++) { | |
var newDiv = document.createElement("div"); | |
decorateDivFunction(newDiv); | |
allDivs[i].appendChild(newDiv); | |
} | |
} |
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
SELECT employees.name | |
FROM employees | |
WHERE employees.id not in | |
(SELECT managerId from employees where managerId is not 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
select count(*) from students where firstName = 'John' |
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 | |
class Pipeline | |
{ | |
public static function make_pipeline() | |
{ | |
$funcs = func_get_args(); | |
return function($arg) use ($funcs) | |
{ | |
foreach($funcs as $function) { | |
if(!isset($value)) |
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 | |
class Palindrome | |
{ | |
public static function isPalindrome($word) | |
{ | |
$word = str_replace(' ', '', $word); | |
$word = preg_replace('/[^A-Za-z0-9\-]/', '', $word); | |
$word = strtolower($word); | |
$word_ = strrev($word); | |
if ($word_ == $word) { |