What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-18 15:03:05
Discord.js ban command
// Import the discord.js module const Discord = require('discord.js'); // Create an instance of a Discord client const client = new Discord.Client(); /** * The ready event is vital, it means that only _after_ this will your bot start reacting to inform... Add solution -
Javascript 2021-10-17 12:36:10
What is the syntax to export a function from a module in Node.js
function foo() {} function bar() {} // To export above functions: module.exports = foo; module.exports = bar; // And in the file you want to use these functions, // import them like this: const foo = require('./module/path'); const bar = require('./modu... Add solution -
Other 2021-10-17 01:06:06
Stepper motor library A4988 python
import RPi.GPIO as GPIO # import the library from RpiMotorLib import RpiMotorLib #define GPIO pins GPIO_pins = (14, 15, 18) # Microstep Resolution MS1-MS3 -> GPIO Pin direction= 20 # Direction -> GPIO Pin step = 21 # Step -> GP... Add solution -
CSS 2021-10-16 20:03:09
vue import css scoped
// To import global CSS, simply import the stylesheet in main.js or App.vue, // where it is easy to reference all global styles in one main file // (or create a styles-import.js file and import that file in your main.js file). // main.js import '~/asse... Add solution -
Other 2021-10-11 00:47:03
import User32.dll into Visual Studio code
using System; using System.Runtime.InteropServices; class Example { // Use DllImport to import the Win32 MessageBox function. [DllImport("user32.dll", CharSet = CharSet.Unicode)] public static extern int MessageBox(IntPtr hWnd, Stri... Add solution -
Other 2021-10-07 20:53:03
unbranded 3d model viewer
<!-- Import the component --> <script type="module" src="https://unpkg.com/@google/model-viewer/dist/model-viewer.min.js"></script> <!-- Use it like any other HTML element --> <model-viewer src="shared-... Add solution