Skip to content

Instantly share code, notes, and snippets.

View dacastro4's full-sized avatar
:shipit:
Focusing

Daniel Castro dacastro4

:shipit:
Focusing
View GitHub Profile
@dacastro4
dacastro4 / FormError.js
Created November 27, 2022 01:56
Laravel Vue Error Handling Class
export default class FormErrors {
errors = []
constructor(errors = []) {
this.errors = errors
}
/**
* Returns the first message from key
*
@pthiers
pthiers / PHP-Array.groovy
Last active March 7, 2024 14:26
datagrip php array extractor
/*
* Available context bindings:
* COLUMNS List<DataColumn>
* ROWS Iterable<DataRow>
* OUT { append() }
* FORMATTER { format(row, col); formatValue(Object, col) }
* TRANSPOSED Boolean
* plus ALL_COLUMNS, TABLE, DIALECT
*
* where:
@benzittlau
benzittlau / Remove From Git By Extension
Created May 4, 2011 21:59
Remove all *.swp files from a git repository
git ls-files | grep '\.swp$' | xargs git rm