Skip to content

Instantly share code, notes, and snippets.

View rifttech's full-sized avatar
🐳
Focusing

Arthur Abramov rifttech

🐳
Focusing
View GitHub Profile
@ankushs92
ankushs92 / LocalDateTimeJPAConverter.java
Created April 16, 2016 17:12
Converting java.sql.timestamp to LocalDateTime and vice versa
import java.sql.Timestamp;
import java.time.LocalDateTime;
import javax.persistence.AttributeConverter;
import javax.persistence.Converter;
@Converter(autoApply = true)
public class LocalDateTimeConverter implements AttributeConverter<LocalDateTime, Timestamp> {
@Override
public Timestamp convertToDatabaseColumn(LocalDateTime ldt) {
@jbutko
jbutko / gulpfile.js
Last active February 13, 2019 06:25
BrowserSync + Gulp.js: Simple webServer + liveReload + watching CSS, HTML and SASS files
/**
* This example:
* Uses the built-in BrowserSync server for HTML files
* Watches & compiles SASS files
* Watches & injects CSS files
*
* More details: http://www.browsersync.io/docs/gulp/
*
* Install:
* npm install browser-sync gulp gulp-sass --save-dev
@seankross
seankross / Update Fork.md
Last active August 9, 2022 18:06
Update a Github Fork from the Original Repo

Taken from here

Add remonte branch:

git remote add --track master mleung git://github.com/mleung/feather.git

Verify:

git remote