Skip to content

Instantly share code, notes, and snippets.

View jacrys's full-sized avatar
👔
Working

Keith Lewis jacrys

👔
Working
View GitHub Profile
//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Updated: 2010/12/05
// License: MIT
//
// Copyright (c) 2010-2013 Diego Perini (http://www.iport.it)
//
// Permission is hereby granted, free of charge, to any person
@jacrys
jacrys / index.html
Created August 29, 2018 19:50
Electron Fiddle Gist
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
<!-- All of the Node.js APIs are available in this renderer process. -->
We are using Node.js <script>document.write(process.versions.node)</script>,
@jacrys
jacrys / index.html
Created August 29, 2018 19:51
Electron Fiddle Gist
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
<!-- All of the Node.js APIs are available in this renderer process. -->
We are using Node.js <script>document.write(process.versions.node)</script>,
@jacrys
jacrys / resume.json
Last active May 12, 2022 18:14
JSON version of my resume
{
"meta": {
"theme": "jacrys",
"palette": {
"primary": "amber",
"secondary": "blue"
},
"darkMode": false
},
"basics": {

Keybase proof

I hereby claim:

  • I am jacrys on github.
  • I am jacrys (https://keybase.io/jacrys) on keybase.
  • I have a public key ASBPsC8kXrIlv7bmzbJ7Rs-HpthMklXuca2NA1yqxyET8wo

To claim this, I am signing this object:

@jacrys
jacrys / vite-log-cleanup.regex
Last active December 6, 2023 17:55
RegEx to clean up un-needed data from vite output logs
(^[0-9\s]*\||^\s*(Plugin|File|at))[\w\d\s\^:",\/.\{\};\-@_\(\)<>='$]*\s*\n //Capture traces and meta data
//Replace with ""
^([0-9]{1,2}:[0-9]{1,2}:[0-9]{1,2} (A|P)M\s*\[vite\]\s*[A-Za-z\-\s:]*")([A-Za-z\-@\/\._]*)(" from "[A-Za-z\\\.0-9"_\s?\(\)]*)$ //Capture all but failing imports
//Replace with $3 (or /3 depending on regex parser) to extract just the failing imports