What do you want to save?
Add Code snippet
New code examples
-
C# 2022-03-18 01:10:02
cosmos db get all items in container
//These three are from microsoft.azure.cosmos //You can download them using nuget CosmosClient cosmosClient = new CosmosClient(Uri, PrimaryKey); Database database = cosmosClient.GetDatabase(DatabaseId); Container container = database.GetContainer(Containe... Add solution -
Other 2022-03-17 16:30:03
windows communication foundation
What Is Windows Communication Foundation (WCF) Windows Communication Foundation (WCF) is a framework for building service-oriented applications. Using WCF, you can send data as asynchronous messages from one service endpoint to another. - A servic... Add solution -
Javascript 2022-03-17 10:55:41
puppeteer wait for select[name=
test("fruit dropdown becomes enabled when food type fruit is selected", async () => { await page.select('[data-testid="food"]', "fruit"); // this makes a selection in the drop down and fires a request // I should wait... Add solution -
Python 2022-03-17 06:40:21
discord py check if user has permission return message if not
@bot.command() @has_permissions(kick_members=True) async def kick(self, ctx, Member: discord.Member): await bot.kick(Member) @kick.error async def kick_error(error, ctx): if isinstance(error, MissingPermissions): await ctx.send(&quo... Add solution -
Javascript 2022-03-16 21:05:03
my js
const express = require('express') const app = express() const port = 3000 app.get('/', (req, res) => res.send('Hello World!')) var points = [40, 100, 1, 5, 25, 10]; points.sort((a,b) => a-b) var newArray = array.filter(function(item) { return ... Add solution -
Javascript 2022-03-16 17:00:10
redux-thunk action creator
/* Redux-Thunk Action Creator */ const createAction = () => { type: 'ACTION_TYPE' }; function createAsyncAction() { return (dispatch) => { setTimeout(() => { dispatch(createAction()); /* ^ invoke sync or async actions with ... Add solution -
C# 2022-03-16 11:15:47
.net httpclient add body
public async string Example() { //The data that needs to be sent. Any object works. var pocoObject = new { Name = "John Doe", Occupation = "gardener" }; //Converting the object to a json string. NOTE: Make sure the ob... Add solution -
Javascript 2022-03-16 10:45:02
await reserved word testcafe using await in loop
async function foo(things) { const results = []; for (const thing of things) { // Good: all asynchronous operations are immediately started. results.push(bar(thing)); } // Now that all the asynchronous operations are running, here we wait ... Add solution -
Javascript 2022-03-14 16:10:08
google maps places autocomplete api
<input type="text"required id="autocomplete"> <script> function initAutocomplete() { new google.maps.places.Autocomplete( (document.getElementById('autocomplete')), {types: ['geocode']} ); } </s... Add solution