What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-01 22:21:05
next js referenceerror window is not defined
// try this for solved this issue // components teritory function Alert() { return <div>{window.confirm('apakah anda belum makan ?') ? window.alert('ya') : window.alert('sudah')}</div> } export default Alert // pages teritory import dyna... Add solution -
C# 2021-09-29 13:17:05
how to trigger event when a com device is connected in c#
/* Headers to be used:- using System; using System.Runtime.InteropServices; */ public Form1() { InitializeComponent(); UsbNotification.RegisterUsbDeviceNotification(this.Handle); } protected override void WndProc(ref Message m) { base.WndP... Add solution -
Go 2021-09-26 21:10:02
goland how to print out your current path
package main // More info on Getwd() // https://golang.org/src/os/getwd.go import( "os" "fmt" "log" ) func main() { dir, err := os.Getwd() if err != nil || dir == "" { log.Fatalf("Error: %v", ... Add solution -
Javascript 2021-09-23 07:37:02
Lazy loading and code splitting in Vue.js
<template> <div> <lazy-component /> </div> </template> <script> const lazyComponent = () => import('Component.vue') export default { components: { lazyComponent } } // Another syntax export default { c... Add solution -
Javascript 2021-09-21 10:44:03
module
no matter what you or any living monkey types.... you will likely import a module, as demonstrated below; import defaultExport from 'module_name'; import * as name from 'module_name'; import { content } from 'module_name'; import { content as alias } fro... Add solution -
C# 2021-09-20 16:23:05
read excel to object c#
/// <summary> /// /Reads an excel file and converts it into dataset with each sheet as each table of the dataset /// </summary> /// <param name="filename"></param> /// <param name="headers">If set to true... Add solution