Skip to content

Instantly share code, notes, and snippets.

View alvarotrigo's full-sized avatar

Álvaro alvarotrigo

View GitHub Profile
alvarotrigo / ssp.class.php
Created June 25, 2019 00:14
Modified ssp.class.php file to deal with multiple tables query
* Helper functions for building a DataTables server-side processing SQL query
* The static functions in this class are just helper functions to help build
* the SQL used in the DataTables demo server-side processing scripts. These
* functions obviously do not represent all that can be done with server-side
* processing, they are intentionally simple to show how it works. More complex
* server-side processing operations will likely require a custom script.
alvarotrigo / App.vue
Last active March 2, 2022 13:04
vue-fullpage App.vue example
<div id="app">
<ul id="menu">
<li data-menuanchor="page1" class="active"><a href="#page1">Section 1</a></li>
<li data-menuanchor="page2"><a href="#page2">Section 2</a></li>
<li data-menuanchor="page3"><a href="#page3">Section 3</a></li>
<a href="" target="_blank" rel="noopener" class="twitter-share">
<svg viewBox="0 0 512 512">
alvarotrigo / 11ty-error-h2
Created October 16, 2021 20:10
is_post: true
layout: post
title: aaaaa
date: 2021-10-13
author: Here
image: /assets/imgs/2021-10-13/aa.png
shareImage: /assets/imgs/2021-10-13/aa2.png
color: "#19a3b2"
published_date: "Oct 13, 2021"
<div id="multiscroll">
<div class="ms-left">
<div class="ms-section">Section 1 left</div>
<div class="ms-section">Section 2 left</div>
<div class="ms-section">Section 3 left</div>
<div class="ms-right">
<div class="ms-section">Section 1 right</div>
<div class="ms-section">Section 2 right</div>
<div class="ms-section">Section 3 right</div>
alvarotrigo / sw.js
Created January 22, 2021 12:06
'use strict';
// Licensed under a CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
(function() {
// Update 'version' if you need to refresh the cache
var staticCacheName = 'sw-test-cache';
function init(){
var year = '2019';
var months = [];
var rowsForGivenYear = [];
// Filtering the row for the given year
alvarotrigo / test.js
Created December 9, 2019 15:09
jQuery(function($) {
new fullpage('#fullpage', {
//options here
licenseKey: '42FCE5FA-2C984AC1-B445D929-FDDADEC3',
scrollHorizontallyKey: 'B5F85F27-2D6D476E-A8CF7F27-2C0174BC',
fitToSection: false,
verticalCentered: false,
scrollHorizontally: true,
navigation: true,
alvarotrigo / en.yml
Created October 4, 2019 10:41
English fullpage.js site
#Page meta data
title: fullPage.js | One Page Scroll sections Site Plugin
description: fullPage plugin by Alvaro Trigo. Create fullscreen pages fast and simple. One page scroll sections jquery plugin. Mouse snap.
keywords: fullpage,jquery,alvaro,trigo,plugin,fullscren,screen,full,iphone5,snap,snapping,apple,scroll,sections
og-title: fullPage scroll snapping. Create full screen pages fast and simple
og-description: Mouse wheel snap to sections. Fast and simple to use.
twitter-description: Great Javascript library to create fullscreen scrolling websites
#Sections content
Create Beautiful Fullscreen Scrolling Websites: Create Beautiful Fullscreen Scrolling Websites
alvarotrigo / fullpage-setup.js
Last active September 20, 2018 14:31
Current basic structure of fullpage.js
* I basically want to generate this UMD with some tool.
* Right now I did it manually by copying and pasting some generic one.
* But it is failing in some cases due to having in this same file the jQuery
* adator you'll see at the bottom.
(function( root, window, document, factory, undefined) {
if( typeof define === 'function' && define.amd ) {
// AMD. Register as an anonymous module.