What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-01 13:29:03
disable strict mode angular
//Following Angular doc, the strict mode can be //disabled turning off these flags on tsconfig.json file: "forceConsistentCasingInFileNames": false, "strict": false, "noImplicitReturns": false, "noFallthrou... Add solution -
Python 2021-09-27 22:45:06
Templates Dirs
TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [os.path.join(BASE_DIR, 'templates')], &nbs... Add solution -
Javascript 2021-09-26 21:34:06
create gatsby pages node js
const axios = require('axios'); require("dotenv").config({ path: `.env.${process.env.NODE_ENV}` }); const getRepositoryData = async () => { console.log(process.env.API_URL); return axios.get(`${process.env.API_URL}/repositories`); }; ... Add solution -
Javascript 2021-09-21 11:43:02
jsx classname multiple
// Using String Templates <div className={`${this.state.className} ${this.props.content.divClassName}}`> ... </div> // OR // Using An Array <div className={[this.state.className, this.props.content.divClassName].join(" ")}> .... Add solution -
C# 2021-09-21 05:52:02
c# func vs action
//A Action is a container to set a method for invoking that has no returns //where as a Func is a container to set a method for invoking that has returns //so //Any Generals or Templates in a Action will always be signiture input params //Where as to say... Add solution -
Javascript 2021-09-17 23:50:04
gatsby creating pages from contentful
const path = require('path') exports.createPages = ({graphql, boundActionCreators}) => { const {createPage} = boundActionCreators return new Promise((resolve, reject) => { const storeTemplate = path.resolve('src/templates/store.js') res... Add solution -
Other 2021-09-17 09:04:02
iosstream library download
// Copyright (C) 1997-1999, 2000 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the // terms of the GNU General Public License as publish... Add solution