What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-21 09:18:09
solidworks macro get pathname without filename
' PathName of current model document Dim sModelFullPath As String sModelFullPath = swModel.GetPathName ' get path name without filename Dim sFilePath As String sFilePath = Left(sModelFullPath, InStrRev(sModelFullPath, "\")) ' get filename and ... Add solution -
Javascript 2021-10-20 09:13:09
Get requests return html code instead of real data
// use this after route not before route if (process.env.NODE_ENV === 'production') { app.use(express.static(resolve(process.cwd(), 'client/build'))) app.get('*', (req, res) => { res.sendFile(resolve(process.cwd(), 'client/build/index.html')) ... Add solution -
Javascript 2021-10-19 22:13:06
Express Routing
//to run : node filename.js const express = require('express') const app = express() const port = 3000 app.get('/', (req, res) => res.send('Hello World!')) app.listen(port, () => console.log(`Example app listening at http://localhost:${port}`)) /... Add solution -
Other 2021-10-19 04:37:04
passport-google-oauth2 cookies
// Required dependencies const express = require('express'); const app = express(); const passport = require('passport'); const GoogleStrategy = require('passport-google-oauth20'); const cookieSession = require('cookie-session'); // cookieSession config... Add solution -
Other 2021-10-17 20:26:08
apps script convert docx to doc
function myFunction() { var docx = DriveApp.getFilesByName('Dummy.docx').next(); var newDoc = Drive.newFile(); var blob =docx.getBlob(); var file=Drive.Files.insert(newDoc,blob,{convert:true}); DocumentApp.openById(file.id).setName(docx.getName(... Add solution