Skip to content

Instantly share code, notes, and snippets.

Adam acal

  • At large
  • Greystones, IR
View GitHub Profile
@xxlukas42
xxlukas42 / lora_demo.ino
Created Jun 12, 2019
Test script based on LMIC example tested with BSFrance Lora32u4 II v1.2, don't forget to change EUIs
View lora_demo.ino
/*******************************************************************************
* Copyright (c) 2015 Thomas Telkamp and Matthijs Kooijman
*
* Permission is hereby granted, free of charge, to anyone
* obtaining a copy of this document and accompanying files,
* to do whatever they want with them without any restriction,
* including, but not limited to, copying, modification and redistribution.
* NO WARRANTY OF ANY KIND IS PROVIDED.
*
* This example sends a valid LoRaWAN packet with payload "Hello,
@coinsandsteeldev
coinsandsteeldev / dialog.html
Last active Jul 2, 2020 — forked from arthurattwell/dialog.html
Google Sheets script to allow multi-select in cells with data-validation (adapted from https://www.youtube.com/watch?v=dm4z9l26O0I)
View dialog.html
<!DOCTYPE html>
<html>
<head>
<script>
var data
var formId = 'form'
function drawForm() {
if (!data) return
var outputEl = document.getElementById(formId);
@vanbo
vanbo / wc-css-make-storefront-product-tabs-horizontal
Created Oct 27, 2017
WooCommerce: CSS to make Storefront product tabs horizontal again
View wc-css-make-storefront-product-tabs-horizontal
.product .woocommerce-tabs ul.tabs {
width: 100%;
float: none;
margin-right: 5.8823529412%;
}
.woocommerce div.product .woocommerce-tabs ul.tabs {
list-style: none;
padding: 0 0 0 1em;
margin: 0 0 1.618em;
@ben-heath
ben-heath / add-to-woocommerce-additional-info-tab-single-product.php
Last active Mar 8, 2020
Add content to WooCommerce Additional Information Tab on Single Products
View add-to-woocommerce-additional-info-tab-single-product.php
<?php
// This code should be added to the functions.php file of the child theme
// Add custom info to Additional Information product tab
add_filter( 'woocommerce_product_tabs', 'woo_rename_tabs', 98 );
function woo_rename_tabs( $tabs ) {
global $product;
$tabs['additional_information']['callback'] = 'custom_function_name'; // this is the function name which is included below
return $tabs;
}
View example.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<style>
[data-toggle="collapse"][aria-expanded="true"] > .js-rotate-if-collapsed
{
-webkit-transform: rotate(180deg);
@mikejolley
mikejolley / functions.php
Created May 6, 2016
WooCommerce - Change number of displayed upsells on product pages
View functions.php
add_filter( 'woocommerce_upsell_display_args', 'custom_woocommerce_upsell_display_args' );
function custom_woocommerce_upsell_display_args( $args ) {
$args['posts_per_page'] = 5; // Change this number
$args['columns'] = 5; // This is the number shown per row.
return $args;
}
View bootstrap-4-nav-walker.php
<?php
/*
Bootstrap 4.0.0-alpha2 nav walker extension class
=================================================
Add this to your `functions.php`
*/
class bootstrap_4_walker_nav_menu extends Walker_Nav_menu {
@nickcernis
nickcernis / mailchimp-popup-for-wordpress.md
Last active Jun 30, 2020
MailChimp Popup Script that works with WordPress sites
View mailchimp-popup-for-wordpress.md

MailChimp's default popup scripts can break on WordPress sites that use jQuery/jQuery UI unless you include their embed code as the final elements before the closing body tag.

Including them in this way isn't always possible or easy with WordPress.

The code below is an alternative implementation of the loader that forces MailChimp's popup scripts to appear below all other scripts upon page load.

To use it, modify the baseUrl, uuid, and lid attributes with the ones from the original popup script that MailChimp supplies.

<script>
@thewebprincess
thewebprincess / dateform.js
Last active Dec 11, 2018
Gravity Forms - Datepicker extension for Date Range Fields
View dateform.js
jQuery(function ($) {
var datepickerInArgs = {
minDate: 1,
defaultDate: 0,
dateFormat: 'dd/mm/yy',
changeMonth: true,
changeYear: true,
onClose: function( dateText, inst ) {
var d = $.datepicker.parseDate( inst.settings.dateFormat, dateText );
@codescribblr
codescribblr / custom-variations-select.css
Last active Apr 28, 2020
Custom Select Box Replacements for Woocommerce Variations
View custom-variations-select.css
.woocommerce.single-product .product .summary .variations {
width: 100%;
}
.woocommerce.single-product .product .summary .variations td {
display: block;
width: 100%;
}
.woocommerce.single-product .product .summary .variations td label {
font-family: 'Nunito', Helvetica, Arial, sans-serif;
letter-spacing: 0px;
You can’t perform that action at this time.