Skip to content

Instantly share code, notes, and snippets.

View frankyonnetti's full-sized avatar

Frank Yonnetti frankyonnetti

View GitHub Profile
@frankyonnetti
frankyonnetti / S3 - setting up new static site.md
Created May 23, 2021 20:19
S3 - setting up new static site #aws #s3

Example: Setting up a Static Website Using a Custom Domain

Create Two Buckets

Add an index.html file to the example.com bucket.

@frankyonnetti
frankyonnetti / PHP info.php
Created May 23, 2021 20:10
PHP info #php
<?php phpinfo(); ?>
@frankyonnetti
frankyonnetti / PHP - console.log.php
Created May 23, 2021 20:09
PHP - console.log #php
<?php
echo '<script>console.log(' . $var . ')</script>';
?>
@frankyonnetti
frankyonnetti / Over laping elements in way of click..css
Created May 23, 2021 20:07
CSS - click through over laping elements #css #pointer-events
/* prevent children elements from getting in the way of click events using CSS. */
a > * {
pointer-events: none;
}
@frankyonnetti
frankyonnetti / .browserslistrc
Last active March 3, 2025 22:03
NPM scripts #npm #scss #javascript
# https://github.com/browserslist/browserslist
>= 1%
last 2 major version
not dead
Chrome >= 45
Firefox >= 38
Edge >= 12
Explorer >= 10
iOS >= 9
@frankyonnetti
frankyonnetti / NPM - Vue and Font Awesome.md
Last active May 23, 2021 20:02
Vue and Font Awesome #vue #fontawesome
  1. Create a .npmrc file in the root of your project (or where you have your package.json file) with the following content:

@fortawesome:registry=https://npm.fontawesome.com/ //npm.fontawesome.com/:_authToken=XXXXXXXXXXX

Install per project

@frankyonnetti
frankyonnetti / mobile-menu.html
Last active May 23, 2021 19:56
Mobile menu icon #mobile #menu
<div id="mobile-menu-icon">
<i></i>
<i></i>
<i></i>
<i></i>
<span>menu</span>
</div>
@frankyonnetti
frankyonnetti / macOS Dark mode.md
Created May 23, 2021 19:51
macOS - force enable dark mode #macos #dark
{
"extends": "standard",
"env": {
"browser": true,
"es2020": true
},
"root": true
}
---
@frankyonnetti
frankyonnetti / jQuery--replace-with.js
Created May 23, 2021 19:37
Example: style the legend tag across browsers #jquery
// style the fieldset legend tag across browsers
$('legend').replaceWith( '<h3 class="legend">' + $('legend').html() + '</h3>' );