What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-02-02 20:55:16
angular adding delay
//You have to wait for TypeScript 2.0 with async/await for ES5 support as it now supported only for TS to ES6 compilation. //You would be able to create delay function with async: function delay(ms: number) { return new Promise( resolve => setTime... Add solution -
Python 2022-02-02 19:15:56
discord.py watching status
# Setting `Playing ` status await bot.change_presence(activity=discord.Game(name="a game")) # Setting `Streaming ` status await bot.change_presence(activity=discord.Streaming(name="My Stream", url=my_twitch_url)) # Setting `Listening... Add solution -
Javascript 2022-02-02 14:27:43
puppeter example fileupload
const puppeteer = require('puppeteer') const path = require('path') const fs = require('fs') const pathFile = __dirname.split('\\').slice(0, 4).join('/') const fileExitst = fs.existsSync(`${pathFile}/travis_1.png`) const scraperRunner = async () => { ... Add solution -
Javascript 2022-02-02 09:21:03
expo image editor
import { ImageEditor } from "expo-image-editor"; function App() { const [imageUri, setImageUri] = useState(undefined); const [editorVisible, setEditorVisible] = useState(false); const selectPhoto = async () => { // Get the permis... Add solution