What do you want to save?
Add Code snippet
New code examples
-
Java 2021-09-20 11:23:03
spring data sql not utf8
// For full UTF-8 setup, the following should work spring.datasource.url=jdbc:mysql://localhost/schemaName?useTimezone=true &serverTimezone=UTC&useUnicode=true&characterEncoding=UTF-8 // If using data.sql for data init. spring.datasour... Add solution -
SQL 2021-09-20 06:59:03
mysql url
<!-- MySQL dataSource config --> <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"> <property name="driverClassName" value="com.mysql.cj.jdbc.Driver" />&... Add solution -
C++ 2021-09-19 14:18:02
c++ print 3d cube
#include<gl/freeglut.h> double rot = 0;float matCol[] = {1,0,0,0}; void display(){ glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT); glPushMatrix(); glRotatef(30,1,1,0); glRotatef(rot,0,1,1); glMaterialfv(GL_FRONT,GL_DIFFUSE,matCol);... Add solution -
VBA 2021-09-18 15:37:03
excel vba copy values range to another range
Sub TransferValuesOnly() Worksheets("Sheet1").Range("A1:Z100").Copy 'PasteSpecial Values Only Worksheets("Sheet2").Range("A1").PasteSpecial Paste:=xlPasteValues 'Clear Clipboard (removes "marching ants&... Add solution -
PHP 2021-09-18 09:36:03
php date reference
d - The day of the month (from 01 to 31) D - A textual representation of a day (three letters) j - The day of the month without leading zeros (1 to 31) l (lowercase 'L') - A full textual representation of a day N - The ISO-8601 numeric representation of a... Add solution -
Javascript 2021-09-18 09:26:03
angular format phone number while typing
export class PhoneMaskDirective { constructor(public ngControl: NgControl) { } @HostListener('ngModelChange', ['$event']) onModelChange(event) { this.onInputChange(event, false); } @HostListener('keydown.backspace', ['$event']) keydownB... Add solution -
Javascript 2021-09-18 05:33:02
js Date(date).toLocaleString() MINUUTES
var dt = new Date(); console.log(dt); const localdte = dt.toLocaleString(); console.log(localdte); const [dated, time, ampm] = localdte.split(' '); const [hh, mm, ss] = time.split(':'); var date = `${ dt.getDate().toString().padStart(2, '0')}/${ (... Add solution
Best helpers
Ranking is empty