Skip to content

Instantly share code, notes, and snippets.

View dimaspante's full-sized avatar
🚀

Dimas Pante dimaspante

🚀
View GitHub Profile
@dimaspante
dimaspante / clip-path.css
Created November 10, 2022 12:39
A CSS file which uses the clip-path property, allowing you to make complex shapes in CSS basically using polygons. Summarized from https://bennettfeely.com/clippy/
/**
* CSS file created using Bennett Feely's clip-path generator <https://bennettfeely.com/clippy/>
*/
.clipped-parallelogram {
-webkit-clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
}
.clipped-trapezoid {
@dimaspante
dimaspante / tips.sql
Created January 3, 2023 16:20
MySQL tips
/*! Convert field content to utf8 */
UPDATE table SET field = convert(cast(convert(field using latin1) as binary) using utf8