- Install ginfinity chrome extension to allow infinite scrolling through Google results
- Search for all indexed urls using query like site:example.com
- Scroll through all the results (hope there is not too much :)
- Once all results are shown, open Dev Tools JS console and run this command
(document.querySelectorAll('.g .r > a')).forEach(function(el) { console.log(el.href) });
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(function($) { | |
// get vertical offset of element by selector | |
var getElOffset = function(selector) { | |
var offset; | |
if(selector === '#top') { | |
return 0; | |
} else { | |
offset = $(selector).offset(); | |
if(typeof offset === 'undefined') return false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// from ACF | |
if($image = get_field('photo')): ?> | |
<?php ps_responsive_image($image, 'large', '(min-width: 1160px) 173px, (min-width: 1024px) calc(25vw - 117px), (min-width: 768px) calc(25vw - 72px), 150px'); ?> | |
<?php endif | |
// featured image as variable | |
if (has_post_thumbnail( get_the_id() ) ) { | |
$profile_image_html = ps_get_responsive_image(get_post_thumbnail_id( get_the_id() ), 'team-profile', '(min-width: 768px) 90px, 140px'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// antialiased text | |
@mixin antialiased() { | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
} | |
// recount pixels to em | |
@function em($pixels, $context: $default-font-size) { | |
@return #{$pixels/$context}em; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Get path for Storage disk | |
*/ | |
function disk_path($disk = 'local') { | |
return Storage::disk($disk)->getDriver()->getAdapter()->getPathPrefix(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// ----------- CONTROLLER ----------- | |
/** | |
* Store resource | |
*/ | |
public function store(Request $request) | |
{ | |
// nothing special, slug generated automatically |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App; | |
use Illuminate\Database\Eloquent\Model; | |
use Illuminate\Database\Eloquent\Builder; | |
class ContentBlock extends Model | |
{ | |
// if set it doesn't allow keyBy() called on collection. And still the key is composite so we have to search by two params manually anyway |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Custom shortcodes | |
*/ | |
class LHShortcodes | |
{ | |
/** | |
* Constructor | |
*/ |