What do you want to save?
Add Code snippet
New code examples
-
C# 2021-09-30 16:29:04
c# check if type implements interface
typeof(IMyInterface).IsAssignableFrom(typeof(MyType)) // or typeof(MyType).GetInterfaces().Contains(typeof(IMyInterface)) // or for a generic interface, it’s a bit different: typeof(MyType).GetInterfaces().Any(i => i.IsGenericType && ... Add solution -
Other 2021-09-25 23:41:03
include sass in html
You have to use a build tool like Gulp which will convert the SASS file to CSS file , then you just have to link the CSS file in your HTML. What’s interesting is that you don’t have to do this everytime you make a change in your SASS file. Gul... Add solution -
CSS 2021-09-25 17:37:05
importing scss into vue component
npm i node-sass sass-loader // create the path: styles/main.scss in your src directory –src |––styles |––main.scss // add this to your vue.config.js file in the root directory module.exports = { css: { loaderOptio... Add solution -
-