Skip to content

Instantly share code, notes, and snippets.

View luberius's full-sized avatar
🏠
Working from home

Syahril Andika Patama luberius

🏠
Working from home
View GitHub Profile
@luberius
luberius / mongodb_cheat_sheet.md
Created September 9, 2019 04:08 — forked from bradtraversy/mongodb_cheat_sheet.md
MongoDB Cheat Sheet

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@luberius
luberius / get_indonesian_month.php
Last active May 31, 2020 17:15
Function untuk mengambil nama bulan dalam bahasa indonesia
<?php
function getMonthName($month) {
switch ($month) {
case 1:
$month = 'Januari';
break;
case 2:
$month = 'Februari';
break;
<template>
<div>
<vx-card class="mb-base">
<div class="flex justify-end">
<div class="text-right">
<table class="text-center">
<tr>
<td rowspan="2" class="text-left">Karyawan<br/>Aktif</td>
<th rowspan="2" class="text-left">
<h1>{{ jumlahKaryawan.all }}</h1>
<template>
<div>
<vx-card class="mb-base">
<div class="flex justify-end">
<div class="text-right">
<table class="text-center">
<tr>
<td rowspan="2" class="text-left">Karyawan<br/>Aktif</td>
<th rowspan="2" class="text-left">
<h1>{{ jumlahKaryawan.all }}</h1>
@luberius
luberius / gmail-url-docs.md
Last active October 4, 2023 04:27
Gmail URL Docs

**N.B. All links will fall back to the default account if there is no match

Simple Compose Link

Opens the inbox with a compose window in the bottom right

/// <reference path="../pb_data/types.d.ts" />
routerAdd(
"GET",
"/api/custom/product-quantities",
(c) => {
const page = parseInt(c.queryParam("page") || "1", 10);
const perPage = parseInt(c.queryParam("perPage") || "20", 10);
const search = c.queryParam("search") || "";
try {