Skip to content

Instantly share code, notes, and snippets.

View highercomve's full-sized avatar
🏠
Working from home for Pantacor 👍

Sergio Marin highercomve

🏠
Working from home for Pantacor 👍
View GitHub Profile
@highercomve
highercomve / static_server.rb
Created December 3, 2014 23:25
static ruby server
ruby -run -e httpd . -p 8080
#!/usr/bin/env ruby
# Libraries:::::::::::::::::::::::::::::::::::::::::::::::::::::::
require 'rubygems'
require 'sinatra/base'
require 'slim'
require 'sass'
require 'coffee-script'
# Application:::::::::::::::::::::::::::::::::::::::::::::::::::
# https://www.varnish-cache.org/docs/2.1/tutorial/vcl.html
# https://www.varnish-cache.org/trac/wiki/VCLExamples
# Summary
# 1. Varnish will poll the backend at /health_check to make sure it is
# healthy. If the backend goes down, varnish will server stale content
# from the cache for up to 1 hour.
# 2. Varnish will pass X-Forwarded-For headers through to the backend
# 3. Varnish will remove cookies from urls that match static content file
# extensions (jpg, gif, ...)
@highercomve
highercomve / align-content.css
Last active October 9, 2020 10:05
Guia de Flexbox
.container {
align-content: flex-start | flex-end | center | space-between | space-around | stretch;
}
@highercomve
highercomve / botones1.html
Last active June 25, 2022 22:05
Curso de HTML/CSS: Botones
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Botones con CSS | EscuelaWeb</title>
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="font/style.css">
<link rel="stylesheet" href="css/botones.css">
</head>
<body>
@highercomve
highercomve / parallax1.html
Created July 14, 2014 05:12
Ejemplo Parallax
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Ejemplo de Parallax sencillo | Escuelaweb.net</title>
<link rel="stylesheet" href="css/parallax.css">
</head>
<body>
<header>
<div class="row">
@highercomve
highercomve / alineacion1.html
Last active August 29, 2015 14:03
Clase 3 HTML/CSS: Alineación de elementos
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Como Organizar elementos</title>
<link rel="stylesheet" href="https://gist.githubusercontent.com/highercomve/652f3954e06e0fbcd622/raw/a88d84ea9536ae77783aa05d4bdac5cda132e921/alineacion2.css">
</head>
<body>
<header>
<div class="row">
@highercomve
highercomve / estructura1.html
Last active August 29, 2015 14:03
Clase 2 de HTML/CSS
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Etiquetas de Estructura basicas</title>
<link rel="stylesheet" href="css/estructura.css">
</head>
<body>
@highercomve
highercomve / intro.html
Last active August 29, 2015 14:03
Clase 1 de HTML/CSS
<!doctype html>
<html lang="en">
<head>
<meta charset='utf-8' />
<title>Introduccion al HTML | Escuelaweb</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<!--Escala y tipos de titulos en html-->
@highercomve
highercomve / erb2slim_recursive.sh
Created March 3, 2014 20:33
erb2slim recursive
find . -name '*.erb' -exec sh -c 'erb2slim {} {}.find' \;