Skip to content

Instantly share code, notes, and snippets.

View as3k's full-sized avatar
🏠
Staying safe at home

Zachary A Guerrero as3k

🏠
Staying safe at home
View GitHub Profile
@as3k
as3k / ee-wp.sh
Created August 31, 2022 22:01
Easy Engine WP Creation shell script
#!/bin/sh
clear
read -p "Enter the site url: " url
read -p "Enter admin email: " adminEmail
read -p "Enter admin username: " adminUser
read -p "Enter admin password: " adminPass
read -p "Use letsencrypt for SSL? (y/n) " le
read -p "Use Redis Cache? [y/n] " redis
echo "Creating wordpress site...."
@as3k
as3k / data-structures.json
Last active July 26, 2022 19:27
Moretgage funnel POST data
// Result from Refinance flow as json object
// NOTE -- PC == Preset choice
{
"ready": true, // Boolean
"user_is_looking_to": "Refinance", // String - PC
"type_of_property": "Primary", // String - PC
"type_of_property_to_refinance": "Single Family", // String - PC
"zipcode": "12345", // Number
"estimated_value_of_property": "120000", // Number
"balance_on_first_mortgage": "120", // Number
@as3k
as3k / slugify.js
Created June 30, 2021 01:30 — forked from codeguy/slugify.js
Create slug from string in Javascript
function string_to_slug (str) {
str = str.replace(/^\s+|\s+$/g, ''); // trim
str = str.toLowerCase();
// remove accents, swap ñ for n, etc
var from = "àáäâèéëêìíïîòóöôùúüûñç·/_,:;";
var to = "aaaaeeeeiiiioooouuuunc------";
for (var i=0, l=from.length ; i<l ; i++) {
str = str.replace(new RegExp(from.charAt(i), 'g'), to.charAt(i));
}
@as3k
as3k / .eslintrc.js
Created September 26, 2020 00:41
eslint rules for ignoring long SVG strings.
module.exports = {
...
rules: {
// This accomplishes two things:
// - Sets the code and template string lengths to 80 chars.
// - Tells esLint to ignore svg paths since these tend to
// be VERY long.
'vue/max-len': ["error", {
"code": 80,
"template": 80,

Keybase proof

I hereby claim:

  • I am as3k on github.
  • I am zackgrrr (https://keybase.io/zackgrrr) on keybase.
  • I have a public key whose fingerprint is 92AE 6412 DCD6 D018 F06C 2427 08ED 8531 BEF0 0A0F

To claim this, I am signing this object:

@as3k
as3k / mq.less
Created March 11, 2018 07:33
Responsive Media Query LESS Mixin
// Media query breakpoints
@screen-xs-min: 48rem;
@screen-sm-min: 76.8rem;
@screen-md-min: 99.2rem;
@screen-lg-min: 120rem;
// Media query function creates a media query
// when these are used.
.media(@min, @styles) {
@media only screen and (min-width: @min) {