Skip to content

Instantly share code, notes, and snippets.

View Fahrek's full-sized avatar

Andres G. Quina Fahrek

View GitHub Profile
@Fahrek
Fahrek / ejerciciocssgrid.markdown
Created November 3, 2022 13:08
ejerciciocssgrid
@Fahrek
Fahrek / gulpfile.js
Created April 9, 2021 07:54 — forked from lsjroberts/gulpfile.js
Gulp styles & scripts build and watcher
/**
* Install:
* $ npm install gulp gulp-minify-css gulp-autoprefixer gulp-ruby-sass gulp-coffee gulp-uglify gulp-concat gulp-rimraf gulp-notify
*/
var gulp = require('gulp');
// styles
var minifycss = require('gulp-minify-css');
var autoprefixer = require('gulp-autoprefixer');
@Fahrek
Fahrek / city.list.json
Created December 28, 2020 07:47 — forked from aggarwalankush/city.list.json
openweathermap city list
[{"_id":2610888,"name":"Understed","country":"DK","coord":{"lon":10.51667,"lat":57.383331}},
{"_id":2613685,"name":"Skodsborg","country":"DK","coord":{"lon":12.57324,"lat":55.822498}},
{"_id":2613357,"name":"Smidstrup","country":"DK","coord":{"lon":12.55787,"lat":55.865688}},
{"_id":6460975,"name":"Rastnik","country":"BG","coord":{"lon":25.283331,"lat":41.400002}},
{"_id":727762,"name":"Rastnik","country":"BG","coord":{"lon":25.283331,"lat":41.400002}},
{"_id":596826,"name":"Murava","country":"LT","coord":{"lon":23.966669,"lat":54.916672}}]
@Fahrek
Fahrek / paginator.html
Created December 22, 2020 10:59 — forked from moisessepulveda/paginator.html
DJANGO PAGINATOR
{% if paginator.num_pages > 1%}
<div class="d-flex justify-content-center">
<ul class="pagination">
{% if entity.has_previous %}
<li class="page-item d-none d-sm-block"><a class="page-link" href="?page={{ entity.previous_page_number }}#pagtable">Anterior</a></li>
{% endif %}
{% for page in paginator.page_range %}
{% if forloop.last and page != entity.number and paginator.num_pages > 7 %}
{% if entity.next_page_number != paginator.num_pages%}
<li class="page-item">
@Fahrek
Fahrek / jobapisearch.md
Last active November 17, 2020 11:48
Welcome file

CONSTRUIR BASE DE DATOS CON API DE BUSQUEDA DE TRABAJO

Vamos a recoger ofertas de trabajo desde una API de búsqueda de trabajos.

  • Parte 1: Creación de una base de datos de trabajos con una API.
  • Parte 2: Creación de un web scraping para mejorar la base de datos.
  • Parte 3: Encapsular todo el código en Django.
  • Parte 4: Crear la app de generar CV con los datos de usuario.

EMPEZANDO

@Fahrek
Fahrek / .htaccess
Created March 23, 2020 03:09 — forked from seoagentur-hamburg/.htaccess
UPDATE 2019/07: Perfect .htaccess file for highspeed and security. You can use it for every WordPress-Website without problems. Highspeed and Security - testet on hundreds of Websites. If you are using a WordPress Multisite, change the last part of this file.
########################################################################
# OPTIMAL .htaccess FILE FOR SPEED AND SECURITY @Version 2020
# ----------------------------------------------------------------------
# @Author: Andreas Hecht
# @Author URI: https://seoagentur-hamburg.com
# License: GNU General Public License v2 or later
# License URI: http://www.gnu.org/licenses/gpl-2.0.html
########################################################################
@Fahrek
Fahrek / README.mdown
Created October 15, 2019 06:42 — forked from internoma/README.mdown
Leer JSON y rellenar control form select

Lee un archivo json y añade la lista de opciones a un elemento select

Reading json file and append list options into element select

@Fahrek
Fahrek / gist:bb976ae77d65c80cd9027656c625a224
Created October 14, 2019 01:36 — forked from webaware/gist:4048580
basic example of populating a form from a database using AJAX and JSON, jQuery version
<?php
// jQuery version of https://gist.github.com/3110728
/*
-- the SQL database table
create table form_ajax (
ID varchar(5) not null,
Name varchar(100),
Address varchar(100),
/* USAGE:
$(function(){
var steps = new Stepper("#steps");
steps.addSlide(1, function(){ this.canvas.text("slide 1"); });
steps.addSlide(2, function(){ this.canvas.text("slide 2"); });
steps.go();
});
*/
@Fahrek
Fahrek / rss2html.php
Created August 21, 2019 15:13 — forked from zma/rss2html.php
rss2html.php
<?php
// Check http://www.systutorials.com/136102/a-php-function-for-fetching-rss-feed-and-outputing-feed-items-as-html/ for description
// RSS to HTML
/*
$tiem_cnt: max number of feed items to be displayed
$max_words: max number of words (not real words, HTML words)
if <= 0: no limitation, if > 0 display at most $max_words words
*/