Skip to content

Instantly share code, notes, and snippets.

View gist:9547235
<form method="post" class="formulario-early-suscriber" id="form-plan-anual">
<input name="email" placeholder="Escribe tu Email" type="email" required>
<input name="plan" value="anual" type="hidden">
<input name="precio" value="195 eur" type="hidden">
<button class="submit-form" data-em="button" type="submit">Avísame Cuando esté Listo</button>
</form>
<!-- Javascript Code -->
<script type="text/javascript">
$(document).ready(function() {
View gist:32c923ff311a4ea9b564
# Block SPAM Referrer Spam
RewriteEngine on
RewriteCond %{HTTP_REFERER} ^http://.*ilovevitaly\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*traffic2money\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*seo-platform\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*get-free-social-traffic\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*qualitymarketzone\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*success-seo\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*floating-share-buttons\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*site2\.free-floating-buttons\.com/ [NC,OR]
@jelukas
jelukas / index.php
Created Feb 9, 2016
index.php modificado del Post como Crear tu Primera tema Wordpress
View index.php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="<?php bloginfo('description'); ?>">
<meta name="author" content="">
View gist:89e4f7e075ecd168c047
Partidos del Mundial de Brasil 2014
{% for partido in partidos %}
<h3><img src="http://flagpedia.net/data/flags/normal/{{ partido.local.codigo_pais_bandera }}.png" alt="" width="25px;"> {{ partido.local }} - {{ partido.visitante }} <img src="http://flagpedia.net/data/flags/normal/{{ partido.visitante.codigo_pais_bandera }}.png" alt="" width="25px;"></h3>
{{ partido.fecha }} {% endfor %}
View checkbox.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Bootstrap 101 Template</title>
<!-- Bootstrap --><link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
View neutron.bash
neutron net-list
+--------------------------------------+--------------+-----------------------------------------------------+
| id | name | subnets |
+--------------------------------------+--------------+-----------------------------------------------------+
| d15e0eb6-c892-4717-8be1-b3e85795e8c9 | ext-net | c80b173f-c203-4e63-956a-ed7351a5a073 185.45.72.0/23 |
| d5d686b5-32fb-4e45-8809-98df3ee5ef3e | 00000061-net | 4751dc7e-6b54-4284-ba02-6c1a44deb076 10.0.15.64/26 |
+--------------------------------------+--------------+-----------------------------------------------------+
neutron subnet-list
+--------------------------------------+-----------------+----------------+---------------------------------------------------+
@jelukas
jelukas / base-html-fragment.html
Created Sep 22, 2016
base.html - fragment , thisis in base html so it used in all templates (Django).
View base-html-fragment.html
{% if request.user.is_authenticated %}
<!-- Customer.io Tracking -->
<script type="text/javascript">
var _cio = _cio || [];
(function() {
var a,b,c;a=function(f){return function(){_cio.push([f].
concat(Array.prototype.slice.call(arguments,0)))}};b=["load","identify",
"sidentify","track","page"];for(c=0;c<b.length;c++){_cio[b[c]]=a(b[c])};
var t = document.createElement('script'),
s = document.getElementsByTagName('script')[0];
@jelukas
jelukas / mixpanel-cheatsheet.js
Created Sep 24, 2016 — forked from LeCoupa/mixpanel-cheatsheet.js
Mixpanel Library CheatSheet
View mixpanel-cheatsheet.js
// Mixpanel Cheatsheet
// This requires the mixpanel javascript library to be embedded on your site
// https://mixpanel.com/help/reference/javascript-full-api-reference
// 1. API Methods.
mixpanel.init('new token', { your: 'config' }, 'library_name'); // initialize a new instance of the Mixpanel tracking object
mixpanel.push(['register', { a: 'b' }]); // push() keeps the standard async-array-push behavior around after the lib is loaded. This is only useful for external integrations that do not wish to rely on our convenience methods (created in the snippet).
You can’t perform that action at this time.