Skip to content

Instantly share code, notes, and snippets.

Avatar

bantunes bantunesm

View GitHub Profile
@bantunesm
bantunesm / wysiwyg.php
Created Jun 28, 2022
Add options to wysiwyg Wordpress
View wysiwyg.php
// Options wisywg
add_filter('mce_buttons_2', function( $buttons ) {
array_shift( $buttons );
array_unshift( $buttons, 'fontsizeselect');
return $buttons;
} );
add_filter( 'tiny_mce_before_init', function( $initArray ){
$initArray['theme_advanced_font_sizes'] = "9px 10px 12px 13px 14px 16px 18px 22px 24px 28px 32px 36px";
@bantunesm
bantunesm / googleSheets.js
Last active Jun 25, 2022
Scriptable widget Google Sheets for iOS
View googleSheets.js
let spreadsheetid = "ID Spreadsheet"
let sheetname = "Sheet Name"
let apikey = "COMPLETE" // Activate Google Sheets Service
const endpoint = 'https://sheets.googleapis.com/v4/spreadsheets/' + spreadsheetid + '/values/' + sheetname + '?alt=json&key=' + apikey;
console.log(endpoint)
// The URL of your JSON endpoint
@bantunesm
bantunesm / index.html
Created Feb 23, 2022
Slick Slider with auto play YouTube, Vimeo and HTML5 video
View index.html
<header>
<h1>SITE TITLE</h1>
<nav>
<ul>
<li><a href="#">HOME</a></li>
<li><a href="#">ABOUT</a></li>
<li><a href="#">SERVICES</a></li>
<li><a href="#">CONTACT</a></li>
</ul>
</nav>