Skip to content

Instantly share code, notes, and snippets.

View iamgaby7521's full-sized avatar

Gabriela F. iamgaby7521

View GitHub Profile
@iamgaby7521
iamgaby7521 / booking-log.json
Created April 21, 2024 05:27
booking_log-example
{
"accommodationBookings": "[]",
"activityBookings": "[{'bookingId': 67255847, 'parentBookingId': 42057774, 'confirmationCode': 'BT-42057774', 'productConfirmationCode': 'BT-T67255847', 'barcode': {'value': 'BT-T67255847', 'barcodeType': 'QR_CODE'}, 'hasTicket': False, 'boxBooking': False, 'startDateTime': 1713436200000, 'endDateTime': 1713452400000, 'status': 'CANCELLED', 'cancellationDate': 1713419184000, 'cancelledBy': 'Sergio R. (info@border-tours.com) - Border Tours', 'includedOnCustomerInvoice': False, 'title': 'Intro to Mexico Walking Tour: Tijuana Day Trip from San Diego', 'totalPrice': 146.0, 'priceWithDiscount': 131.4, 'totalPriceAsText': '$146.00', 'priceWithDiscountAsText': '$131.40', 'discountPercentage': 10.0, 'discountAmount': 14.6, 'productCategory': 'ACTIVITIES', 'paidType': 'PAID_IN_FULL', 'product': {'id': 92667, 'title': 'Intro to Mexico Walking Tour: Tijuana Day Trip from San Diego', 'flags': [], 'vendor': {'id': 3818, 'title': 'Border Tours', 'currencyCode': 'USD', 'showInvoiceIdOnTi
@iamgaby7521
iamgaby7521 / .gitignore
Created April 3, 2024 18:38 — forked from salcode/.gitignore
Please see https://salferrarello.com/wordpress-gitignore/ for the canonical version of this WordPress .gitignore file. Note: I do not receive notifications for comments here (because GitHub does not send notifications on Gists)
# -----------------------------------------------------------------
# .gitignore for WordPress @salcode
# ver 20180808
#
# From the root of your project run
# curl -O https://gist.githubusercontent.com/salcode/b515f520d3f8207ecd04/raw/.gitignore
# to download this file
#
# By default all files are ignored. You'll need to whitelist
# any mu-plugins, plugins, or themes you want to include in the repo.
@iamgaby7521
iamgaby7521 / qi-main.css
Created November 7, 2023 01:06
qi-main.css
/* ==========================================================================
Include variables and mixins
========================================================================== */
/* ==========================================================================
Typography variables
========================================================================== */
/* ==========================================================================
Box variables
========================================================================== */
/* ==========================================================================
@iamgaby7521
iamgaby7521 / php.ini
Created April 6, 2023 19:38
Recommended Server Configuration for WordPress environment
upload_max_filesize = 512M
post_max_size = 512M
memory_limit = 516M
max_execution_time = 600
max_input_vars = 5000
max_input_time = 400
@iamgaby7521
iamgaby7521 / sassas.md
Created May 27, 2022 20:31 — forked from AdamMarsden/sassas.md
Sass Architecture Structure

Sass Architecture Structure

sass/
|
|– base/
|   |– _reset.scss       # Reset/normalize
|   |– _typography.scss  # Typography rules
|   ...                  # Etc…
|
@iamgaby7521
iamgaby7521 / acf-get-field.sublime-snippet
Created July 22, 2021 20:55 — forked from nashvillegeek/acf-get-field.sublime-snippet
Sublime Text 2 snippet for Advanced Custom Fields 'get field'
<snippet>
<content><![CDATA[
\$${1:varname} = get_field('${2:field_name}', '${3:\$post_id}');
if (\$${1:varname} != '') {
echo \$${1:varname};
}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>acfgetfield</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
@iamgaby7521
iamgaby7521 / sort order for csscomb.txt
Last active July 22, 2021 19:51
Sort order for CSScomb
[
"background",
"background-attachment",
"background-color",
"background-clip",
"background-image",
"background-origin",
"background-position",
"background-position-x",
"background-position-y",
@iamgaby7521
iamgaby7521 / BrowserDeviceInfo.js
Created June 8, 2021 20:43 — forked from TrevorJTClarke/BrowserDeviceInfo.js
A quick list of browsers and devices for use in testing. Chrome is used for all devices that need simulation.
var devices = [
{ name: 'Desktop - Huge', width: 2880, height: 1800, ratio: 2, type: 'desktop' },
{ name: 'Desktop - Extra Large', width: 1920, height: 1080, ratio: 1, type: 'desktop' },
{ name: 'Desktop - Large', width: 1440, height: 900, ratio: 1, type: 'desktop' },
{ name: 'Desktop - HiDPI', width: 1366, height: 768, ratio: 1, type: 'desktop' },
{ name: 'Desktop - MDPI', width: 1280, height: 800, ratio: 1, type: 'desktop' },
{ name: 'Laptop with HiDPI screen', width: 1440, height: 900, ratio: 2, type: 'desktop' },
{ name: 'Laptop with MDPI screen', width: 1280, height: 800, ratio: 1, type: 'desktop' },
{ name: 'Laptop with touch', width: 1280, height: 950, ratio: 1, type: 'desktop' },
{ name: 'Tablet - Portrait', width: 768, height: 1024, ratio: 1, type: 'tablet' },
@iamgaby7521
iamgaby7521 / functions.php
Last active December 14, 2020 19:51
Hide admin bar for WP
<?php
/**
* Hide admin bar
*/
// show admin bar only for admins
if ( ! current_user_can( 'manage_options' ) ) {
add_filter( 'show_admin_bar', '__return_false' );
}
@iamgaby7521
iamgaby7521 / gist:e58ed97d8e4b8776150c57730facf77a
Created October 8, 2020 22:11 — forked from fat/gist:3744369
all you probably really need
/*! normalize-all-you-really-need-tho.css v1.0.0 | MIT License */
html {
font-family: sans-serif; /* 1 */
-webkit-text-size-adjust: 100%; /* 2 */
-ms-text-size-adjust: 100%; /* 2 */
}
body {
margin: 0;