This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Responsive CSS Image Slider - Jade, Stylus | |
------------------------------------------ | |
Preprocessor: Jade Stylus | |
https://luisgagocasas.com/ | |
A [Pen](http://codepen.io/luisgagocasas/pen/eNyvoz) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Para que funcione con extends tiene que usar esta configuración en su archivo Gruntfile.js | |
//base.jade | |
<!DOCTYPE html> | |
html(lang="es") | |
head | |
meta(charset="UTF-8") | |
block titulo | |
title Luis Gago Casas | |
body |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Install ISPConfig3 on Ubuntu 14.04 64Bits | |
## Author Original: Nilton OS blog.linuxpro.com.br | |
## Modificado Español: Luis Gago Casas luisgagocasas.com | |
## Version 0.6 | |
## Caso precise | |
## echo 'LC_ALL="en_US.utf8"' >>/etc/environment | |
## dpkg-reconfigure dash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//PRIMERA OPCION - funciones nativas php | |
//Optengo la API REST | |
$url = "http://localhost/wordpress/?page_id=2&json=1"; | |
$data = file_get_contents($url); | |
$json = json_decode($data); | |
//Muestro los resultados | |
echo "<p>".$json->status."</p>"; | |
echo "<p>".$json->page->id."</p>"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var items = ""; | |
$.getJSON( "http://localhost/wordpress/?page_id=246&json=1", function(data) { | |
for (var i = 0; i < data.page.comments.length; i++) { | |
items += '<p>'+data.page.comments[i].name+'</p>>'; | |
} | |
$("#lista_comentarios").html(items); | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html @php(language_attributes())> | |
@include('partials.head') | |
<body @php(body_class())> | |
@php(do_action('get_header')) | |
@if (elementor_location_exits( 'header_content', true )) | |
@include('partials.header') | |
@else | |
@include('partials.header-home') | |
@endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section class="slider-advisory"> | |
<div class="container p-0"> | |
@php | |
$wp_query = new WP_Query( | |
array( | |
'post_type' => 'advisory', | |
'post_status' => 'publish', | |
'posts_per_page' => -1 | |
) | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script will set up a LEMP environment for local development on | |
# Ubuntu 18.04. Nginx will look for sites in ~/Code/{folder}/public/. These | |
# sites can be accessed locally by going to http://{folder}.localtest.me. An | |
# example site called "info" is created automatically and you can view it by | |
# going to http://info.localtest.me. The source code for this site is in | |
# ~/Code/info/public/ | |
# ADD SOME PPAs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
nginx-proxy: | |
image: jwilder/nginx-proxy | |
restart: always | |
ports: | |
- "80:80" | |
volumes: | |
- /var/run/docker.sock:/tmp/docker.sock:ro |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# get back a list of urls for search term | |
# $ goog stuart-warren github | |
# $ goog site:stackoverflow.com ValueError | |
goog() { | |
# uses https://github.com/mgdm/htmlq | |
query=${@} | |
v="" | |
if [[ "$1" == "-v" ]]; then v="-v"; fi | |
curl ${v} -LG --data-urlencode "q=${query}" \ | |
--data-urlencode "sourceid=chrome" \ |
OlderNewer