Skip to content

Instantly share code, notes, and snippets.

View dallington's full-sized avatar

Dallington Augusto dallington

View GitHub Profile
@dallington
dallington / eleventy-rss-reader-feature-list.md
Created July 3, 2021 22:58 — forked from 5t3ph/eleventy-rss-reader-feature-list.md
Jamstack RSS Reader with Eleventy - Feature List

Project Requirements

Join my stream on Twitch to help build this app! Feel free to add comments about additional features we should explore.

  • Structure of the RSS item
    • Name of the source
    • Article title
    • Date
    • Excerpt
  • Full article
@dallington
dallington / .babelrc
Created June 29, 2021 12:29 — forked from federicofazzeri/.babelrc
Node Express-based REST API (CRUD) using Firebase cloud Functions and FireStore cloud database + Babel config (The current Node version running in Cloud Functions is 6.10)
{
"presets": [
["env", {
"targets": {
"node": "6.10"
}
}]
]
}
@dallington
dallington / css
Last active May 5, 2021 15:25
css eti
body{font-family: "Open Sans", sans-serif;}
.oculta{font-size: 0px; margin: 0px; padding: 0px;}
header{background-color: #2F3855;padding: 5px;width: 100%;text-align: center;color: #FFF;}
.header-menu-top{background-color: #0d0d0f;border: #2F3855;}
.header-menu-top .container {display: flex;align-items: center;}
.header-menu-top .header-logo-campus {display: flex;align-items: center;float: none;}
.header-menu-top .header-logo-campus .navbar-brand{float: none;display: block;margin-left: 0; padding: 0;}
.header-menu-top .navbar-collapse {flex: 1;justify-content: flex-end};
body{font-family: "Open Sans", sans-serif;}
.oculta{font-size: 0px; margin: 0px; padding: 0px;}
header{background-color: #2F3855;padding: 5px;width: 100%;text-align: center;color: #FFF;}
.header-menu-top{background-color: #0d0d0f;border: #2F3855;}
.header-menu-top .container {display: flex;align-items: center;}
.header-menu-top .header-logo-campus {display: flex;align-items: center;float: none;}
.header-menu-top .header-logo-campus .navbar-brand{float: none;display: block;margin-left: 0; padding: 0;}
.header-menu-top .navbar-collapse {flex: 1;justify-content: flex-end};
@dallington
dallington / custom-post-taxonomy-permalinks.php
Created October 18, 2018 22:00 — forked from kasparsd/custom-post-taxonomy-permalinks.php
Create permalink structure URLs for custom post types that include all parent terms from a custom taxonomy
<?php
/*
Term Archive Pages:
- http://example.com/recipes/dinner/
- http://example.com/recipes/breakfast,brunch/
Single Recipe Pages:
- http://example.com/recipes/dinner/soup-title/
@dallington
dallington / skip-to-check-out.php
Created July 24, 2018 14:26 — forked from micc83/skip-to-check-out.php
Skip cart and redirect to direct checkout on WooCommerce
<?php
/**
* Skip cart and redirect to direct checkout
*
* @package WooCommerce
* @version 1.0.0
* @author Alessandro Benoit
*/
// Skip the cart and redirect to check out url when clicking on Add to cart
@dallington
dallington / intersection-observer.js
Created January 24, 2018 17:51 — forked from deanhume/intersection-observer.js
Intersection Observer - Image lazy load
// Get all of the images that are marked up to lazy load
const images = document.querySelectorAll('.js-lazy-image');
const config = {
// If the image gets within 50px in the Y axis, start the download.
rootMargin: '50px 0px',
threshold: 0.01
};
// The observer for the images on the page
let observer = new IntersectionObserver(onIntersection, config);
@dallington
dallington / README.md
Created December 1, 2017 17:29 — forked from joyrexus/README.md
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@dallington
dallington / jquery-to-vanilla-js.md
Created December 1, 2017 17:29 — forked from jhafner/jquery-to-vanilla-js.md
jQuery methods in vanilla JavaScript.

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
const $_get = ( _this, me ) => ( pos = undefined ) =>
( pos === undefined )
? _this.e[ 0 ]
: _this.e[ pos ]
const $_val = ( _this, me ) => ( newval = undefined ) => {
if ( newval === undefined ) return _this.e.value
_this.e.value = newval
return me
}