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
| { | |
| "Basic C++ Template": { | |
| "prefix": "init", | |
| "body": [ | |
| "#include <bits/stdc++.h>", | |
| "", | |
| "using namespace std;", | |
| "", | |
| "int main() {", | |
| " ios_base::sync_with_stdio(false);", |
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
| [ | |
| { | |
| "name": "Afghanistan", | |
| "dial_code": "+93", | |
| "code": "AF" | |
| }, | |
| { | |
| "name": "Aland Islands", | |
| "dial_code": "+358", | |
| "code": "AX" |
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
| import { useEffect, useState } from 'react' | |
| import ua from 'ua-parser-js' | |
| const useMobileDeviceDetection: () => boolean = () => { | |
| const [isMobile, setIsMobile] = useState<boolean>(false) | |
| useEffect(() => { | |
| deviceTypeHandler() | |
| window.addEventListener('resize', () => deviceTypeHandler()) | |
| }, []) | |
| const deviceTypeHandler: () => void = () => { |
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
| /* | |
| * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license | |
| * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template | |
| */ | |
| package utils; | |
| import java.awt.Color; | |
| /** | |
| * |
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
| import 'package:flutter/material.dart'; | |
| class MyColors { | |
| static const black = Color(0xFF000000); | |
| static const white = Color(0xFFFFFFFF); | |
| static const MaterialColor slate = MaterialColor( | |
| 0xFF64748b, | |
| <int, Color>{ | |
| 50: Color(0xFFf8fafc), | |
| 100: Color(0xFFf1f5f9), |
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 produkListItem = document.querySelectorAll('.produk-list-item') | |
| // product card component selector | |
| const produkCardInformasi = document.querySelectorAll('.produk-card .informasi') | |
| const produkCardImage = document.querySelectorAll('.produk-card .image') | |
| const produkCardOperasiJumlahPembelian = document.querySelectorAll( | |
| '.produk-card .operasi-jumlah-pembelian' | |
| ) | |
| const produkCardButton = document.querySelectorAll( | |
| '.produk-card .aksi-pembelian button' | |
| ) |
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
| import testimoniSiswa from './data.js' | |
| let selectedItemIndex = 0 | |
| class TestimonialSiswa extends HTMLElement { | |
| connectedCallback() { | |
| this.render() | |
| this.selectHandler() | |
| this.renderTestimonial() | |
| } | |
| selectHandler() { | |
| const selectItems = this.querySelectorAll('.testimonial-select-item') |
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 fruit = "apple" | |
| console.log(fruit) |