Skip to content

Instantly share code, notes, and snippets.


Bruno ANTUNES bantunesm

View GitHub Profile
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 / 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 = '' + spreadsheetid + '/values/' + sheetname + '?alt=json&key=' + apikey;
// The URL of your JSON endpoint
bantunesm / index.html
Created Feb 23, 2022
Slick Slider with auto play YouTube, Vimeo and HTML5 video
View index.html
<h1>SITE TITLE</h1>
<li><a href="#">HOME</a></li>
<li><a href="#">ABOUT</a></li>
<li><a href="#">SERVICES</a></li>
<li><a href="#">CONTACT</a></li>