What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-03 23:58:19
start nodejs file
Save your .js file in the same folder as node.js, For windows , Usually location is- "C:\Program Files\nodejs" Open 'Command prompt and locate node.js folder' OR directly open 'Node.js command prompt' and type >> node (file_name).js Add solution -
Javascript 2021-11-03 04:10:11
svelte import svg
// You need a plugin to import anything other than JS files. Use this; npm i -D rollup-plugin-svelte-svg // And add it to your rollup.config.js like so; import svelteSVG from "rollup-plugin-svelte-svg"; export default { entry: "src... Add solution -
Javascript 2021-10-26 17:49:12
font awesome icons in react
// install font-awesome module npm install --save font-awesome // import font-awesome to your index.js file import 'font-awesome/css/font-awesome.min.css' // use icon like this <i className="fa fa-spinner fa-spin">no spinner but why</... Add solution -
Other 2021-10-24 22:24:10
installing and using font awesome icons in react
// install font-awesome module npm install --save font-awesome // import font-awesome to your index.js file import 'font-awesome/css/font-awesome.min.css' // use icon like this <i className="fa fa-spinner fa-spin">no spinner but why</... Add solution -
Other 2021-10-21 15:46:19
tailwind 2 on rails 6
Step 1 # Tailwind 2 For rails 6. (currently working 2021/03/13) Step 2 # Create a new rails app Step 3 # Run the following: yarn add tailwindcss@npm:@tailwindcss/postcss7-compat @tailwindcss/postcss7-compat postcss@^7 autoprefixer@^9 Step 4 # Go to 'ap... Add solution -
Javascript 2021-10-21 12:14:03
discord.js presence update
// In Index.js file client.on("presenceUpdate", function (oldPresence, newPresence) { console.log(`Old Presnce: ${oldPresence.status} | New Presnce: ${newPresence.status}`); } // Command Handler module.exports = (client, oldPresence, newPres... 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 -
Javascript 2021-10-13 23:32:06
use strict javascript
//It's a new feature of ECMAScript 5. //With strict mode, you can not, for example, use undeclared variables. Insert a 'use strict'; statement on top of your script: /***START ANY JS FILE***/ 'use strict'; var a = 2; .... /***END***/ Or, insert a 'use ... Add solution -
Javascript 2021-10-13 10:07:04
use strict' in javascript
//It's a new feature of ECMAScript 5. //With strict mode, you can not, for example, use undeclared variables. Insert a 'use strict'; statement on top of your script: /***START ANY JS FILE***/ 'use strict'; var a = 2; .... /***END***/ Or, insert a 'use ... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5