What do you want to save?
Add Code snippet
New code examples
-
C# 2022-02-23 23:10:14
premade movement script c#
using UnityEngine; using System.Collections; // This script moves the character controller forward // and sideways based on the arrow keys. // It also jumps when pressing space. // Make sure to attach a character controller to the same game object. // It... Add solution -
TypeScript 2022-02-22 21:20:03
mat input datetime-local now
@Component({ selector: 'app', template: `<input type="datetime-local" [value]="date" (change)="date=$event.target.value" /> {{date}}` }) export class AppComponent { date: string; constructor(... Add solution -
Javascript 2022-02-20 18:45:04
findone and update mongoose
// note: this uses async/await so it assumes the whole thing // is in an async function const doc = await CharacterModel.findOneAndUpdate( { name: 'Jon Snow' }, { title: 'King in the North' }, // If `new` isn't true, `findOneAndUpdate()` will ret... Add solution -
Javascript 2022-02-20 03:25:05
js months ago
var d = new Date(); d.setMonth(d.getMonth() - 3); Add solution -
SQL 2022-02-19 10:45:06
sql server trigger after insert, update specific column
-- SQL Server (update my_table after update on my_table) CREATE TRIGGER trigger_name ON my_table AFTER UPDATE AS IF UPDATE (col_name) -- Optional, for particular column BEGIN UPDATE my_table SET my_col_date = getdate() FROM my_table END; -- Oracle (i... Add solution
Best helpers
Ranking is empty