What do you want to save?
Add Code snippet
New code examples
-
C# 2021-09-01 05:08:01
file picker uwp c#
// Create the picker object and set options var openPicker = new Windows.Storage.Pickers.FileOpenPicker(); openPicker.viewMode = Windows.Storage.Pickers.PickerViewMode.thumbnail; openPicker.suggestedStartLocation = Windows.Storage.Pickers.PickerLocationId... Add solution -
C 2021-08-31 15:25:02
mangoosejs
const mongoose = require('mongoose'); mongoose.connect('mongodb://localhost:27017/test', {useNewUrlParser: true, useUnifiedTopology: true}); const Cat = mongoose.model('Cat', { name: String }); const kitty = new Cat({ name: 'Zildjian' }); kitty.save().t... Add solution -
Javascript 2021-08-31 13:58:02
devicemotionevent
window.onload = function () { // Check if is IOS 13 when page loads. if ( window.DeviceMotionEvent && typeof window.DeviceMotionEvent.requestPermission === 'function' ){ // Everything here is just a lazy banner. You can do the banner y... Add solution -
Javascript 2021-08-31 11:56:01
async await javascript stack overflow
function makePromise(x) { return new Promise(resolve => { setTimeout(() => { resolve(x); }, 1000); }); } async function asyncFunc() { var x = await makePromise(1); // the function is paused here until the prom... Add solution