Skip to content

Instantly share code, notes, and snippets.

View lajennylove's full-sized avatar
🚀
I'm going to have to science the shit out of this.

Jenny Martinez lajennylove

🚀
I'm going to have to science the shit out of this.
View GitHub Profile
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Incident Identifier: 1FBF2F37-DD83-4FAE-83DB-1D5F939BD929
CrashReporter Key: 55C78E54-2CEA-D459-836B-B208E2242DA6
Hardware Model: MacBookPro18,1
Process: iPhone Mirroring [2896]
Path: /System/Applications/iPhone Mirroring.app/Contents/MacOS/iPhone Mirroring
Identifier: com.apple.ScreenContinuity
@bdsqqq
bdsqqq / vesper-dark.json
Last active June 19, 2024 18:59
Vesper theme for zed.dev
{
"$schema": "https://zed.dev/schema/themes/v0.1.0.json",
"name": "Vesper",
"author": "Rauno Freiberg",
"themes": [
{
"name": "Vesper",
"appearance": "dark",
"style": {
"border": "#101010",
@yaroslav-borodii
yaroslav-borodii / wp-local-setup-proxy.sh
Last active March 6, 2024 02:39
The script automates the configuration of a WordPress (WP) site to proxy missing media files from a production server, by modifying Nginx settings.
#!/bin/bash
# wp-local-setup-proxy.sh
# Automates the configuration of a WordPress (WP) site to proxy missing media files from a production server.
# -----------------------------------------------------------------------------------------
# To use this script from anywhere on your system, follow these steps:
# For macOS and Linux:
#
# Using one line:
@Log1x
Log1x / PostSearch.php
Last active June 27, 2024 07:59
Post Search component example using Acorn v4 and Livewire 3
<?php
namespace App\Livewire;
use Livewire\Attributes\Url;
use Livewire\Component;
use WP_Query;
class PostSearch extends Component
{
@lgladdy
lgladdy / custom-acf-json-paths.php
Last active January 11, 2024 16:09
ACF 6.2 custom load and save paths for ACF JSON
<?php
add_filter( 'acf/json/load_paths', 'set_custom_json_load_paths' );
function set_custom_json_load_paths( $paths ) {
$paths[] = get_stylesheet_directory() . '/acf-json/post-types';
$paths[] = get_stylesheet_directory() . '/acf-json/field-groups';
$paths[] = get_stylesheet_directory() . '/acf-json/taxonomies';
$paths[] = get_stylesheet_directory() . '/acf-json/option-pages';
return $paths;
}
import React, { Component, Fragment } from 'react';
import QRCodeScanner from 'react-native-qrcode-scanner';
import styles from './scanStyle'
import {
TouchableOpacity,
Text,
StatusBar,
Linking,
View
} from 'react-native';
@dustinleblanc
dustinleblanc / lando.yml
Created May 3, 2019 18:04
Browsersync Lando
proxy:
mannequin:
- appname-styleguide.lndo.site
node:
- appname-bs.lndo.site:3000
services:
mannequin:
type: compose
services:
image: php:7.3
@Dorf
Dorf / faqs.blade.php
Last active February 2, 2024 17:02
[Shortcodes in Sage] Example for FAQs #sage #blade #shortcodes #partials
///////////////////////////
// /resources/views/partials/shortcodes/faqs.blade.php
<ul class="accordion span12" data-allow-all-closed="true" data-deep-link="true" data-deep-link-smudge="true" data-deep-link-smudge-delay="600" data-accordion id="deeplinked-accordion-with-smudge">
@foreach($faqs as $faq)
<li class="accordion-item" data-accordion-item>
<a href="#{{ $category }}{{ $loop->iteration }}" class="accordion-title">{!! $faq->post_title !!}</a>
<div class="accordion-content" data-tab-content id="answer{{ $loop->iteration }}">
{!! $faq->post_content !!}
</div>
</li>
@cferdinandi
cferdinandi / who-is-driving-refactor.html
Created January 30, 2019 15:04
A refactor of the vanilla JS Who's Driving app.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Who should drive?</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Styles -->
<style type="text/css">
@mlbd
mlbd / Create Programmatically WordPress Nav menu
Last active July 21, 2023 13:25
Programmatically create wp nav menu from external json file
/**
* Registers a wp nav menu Programmatically.
*
* @link https://codex.wordpress.org/Function_Reference/wp_get_nav_menu_object
* @link https://codex.wordpress.org/Function_Reference/wp_create_nav_menu
* @link https://developer.wordpress.org/reference/functions/wp_update_nav_menu_item/
* @link https://developer.wordpress.org/reference/functions/wp_remote_get/
* @link https://codex.wordpress.org/Function_API/wp_remote_retrieve_body
*
* @since 1.0