Skip to content

Instantly share code, notes, and snippets.

View denzndhauz's full-sized avatar
🎯
Focusing the magic.

Edwin Julaton denzndhauz

🎯
Focusing the magic.
  • Cebu, PH
View GitHub Profile
name: CI-CD
on:
push:
branches: develop
jobs:
build-js:
name: Build Js/Css
runs-on: ubuntu-latest
@denzndhauz
denzndhauz / email_phone_scanner.js
Last active January 22, 2020 08:52
Scan Phone Number and Email in a line/sentence in a string. If detected in a certain line/sentence, remove the whole line/sentence.
/*
* Author: Edwin Julaton
* Last Update: Jan. 22, 2020
* Description: Scan Phone Number and Email in a line/sentence in a string. If detected in a certain line/sentence, remove the whole line/sentence.
*/
var sample_text = `Hello,
We have a client in CA Beach looking for a 50% time Provider.. This is a great opportunity to work close to the beach, have a job with great hours, have three day weekends, and enjoy an area that has a lot to offer. I've provided a few facts below. If you would like more information, please email your updated CV to foo.bat@example.com, and/or call/text 999-999-9999.
@denzndhauz
denzndhauz / gzip_contentexp_guide.txt
Created March 27, 2019 04:47
Enabling GZIP and Content Expiration in Apache
<IfModule mod_deflate.c>
# Compress HTML, CSS, JavaScript, Text, XML and fonts
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-input/core-input.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;