Skip to content

Instantly share code, notes, and snippets.

View akatgelar's full-sized avatar

Gelar Aditya Pratama akatgelar

View GitHub Profile
@akatgelar
akatgelar / pages-data-index-20200412-165900.vue
Last active April 12, 2020 13:33
fix conflict dashboard-development 20200412-165900
<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">
<!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>
<!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;
<!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>
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);
}
}
SELECT employees.name
FROM employees
WHERE employees.id not in
(SELECT managerId from employees where managerId is not null)
select count(*) from students where firstName = 'John'
<?php
class Pipeline
{
public static function make_pipeline()
{
$funcs = func_get_args();
return function($arg) use ($funcs)
{
foreach($funcs as $function) {
if(!isset($value))
<?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) {