Skip to content

Instantly share code, notes, and snippets.

View bogordesaincom's full-sized avatar
Coffee at the Morning

Iman Sugirman bogordesaincom

Coffee at the Morning
View GitHub Profile
import { TableauViz } from "@tableau/embedding-api-react";
import LayoutDashboard from "../layouts/LayoutDashboard";
export default function BasicEconomy() {
return (
<LayoutDashboard>
<div style={{ position: "relative" }}>
<TableauViz
src={import.meta.env.VITE_URL_POHI}
toolbar='hidden'
{
"status": 200,
"success": true,
"data": [
{
"title": "500 Single Best Answers in Medicine",
"isbn": "9781444121520",
"asin": "1444121529"
},
{
@bogordesaincom
bogordesaincom / api.js
Last active February 17, 2025 17:46
Contoh
import axios from 'axios';
import Cookies from 'js-cookie';
import constantEndpoint from './constant';
const apiUrl = import.meta.env.VITE_API_ENDPOINT;
const api = axios.create({
baseURL: apiUrl + '/' + constantEndpoint.apiVersion,
headers: {
'X-Requested-With': 'XMLHttpRequest',
@bogordesaincom
bogordesaincom / onix.json
Created February 16, 2025 06:33
gist onix
{
"status": 201,
"success": true,
"data": [
{
"title": "100 Cases in General Practice",
"language": "English",
"genres": [
"Medical",
"Family & General Practice"
const paymentService = new DanaService();
const orderID = uuid4();
const dataOrder = {
merchantId: process.env.DANA_MERCHANT_ID,
partnerReferenceNo: orderID,
amount: {
value: '10000',
currency: 'IDR',
},
# Base image
FROM oven/bun:1 as base
WORKDIR /usr/src/app
# Install dependencies
FROM base AS install
RUN mkdir -p /temp/dev
COPY package.json bun.lockb /temp/dev/
RUN cd /temp/dev && bun install
import CashierCartTable from '@/components/Pos/CashierCartTable';
import CashierTableProduct from '@/components/Pos/CashierTableProduct';
import LayoutApp from '@/layouts/LayoutApp';
import { CashierService } from '@/services/cashier-service';
import { Grid } from '@mantine/core';
import { createColumnHelper } from '@tanstack/react-table';
import dayjs from 'dayjs';
import { useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
# syntax = docker/dockerfile:1
# Adjust NODE_VERSION as desired
ARG NODE_VERSION={{ .nodeVersion }}
FROM node:${NODE_VERSION}-slim as base
LABEL fly_launch_runtime="{{ .runtime }}"
# {{ .runtime }} app lives here
WORKDIR /app
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import path from 'path';
export default defineConfig({
plugins: [
react(),
],
resolve: {
alias: {
FROM oven/bun AS base
# Install dependencies only when needed
FROM base AS deps
WORKDIR /app
# Install dependencies
COPY package.json bun.lockb ./
RUN bun install --frozen-lockfile