Skip to content

Instantly share code, notes, and snippets.

$('.thumb').each(function (i) {
$(this).click(function () {
alert (i+1); //index starts with 0, so add 1 if you want 1 first
});
});
@agragregra
agragregra / font64base.css
Created May 8, 2015 14:04
Font 64base CSS
src: url(data:font/woff;charset=utf-8;base64,ДАННЫЕ) format("woff")
@agragregra
agragregra / gist:1977780b19b159ff5a98
Last active October 24, 2015 21:01
jQuery Plugin Start
We couldn’t find that file to show.
@agragregra
agragregra / userChrome.css
Created November 25, 2015 14:34
Firefox DevTools Font-size
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document regexp("chrome://browser/content/devtools/**/.*"){
.devtools-monospace {
font-size: 11pt!important;
}
}
@agragregra
agragregra / archive.php
Created April 28, 2015 11:36
WordPress Get Full Content
<?php global $more; $more = 1; the_content(); ?>
@agragregra
agragregra / cacert.pem
Created October 10, 2016 13:10
cacert.pem
##
## Bundle of CA Root Certificates
##
## Certificate data from Mozilla as of: Wed Sep 14 03:12:05 2016
##
## This is a bundle of X.509 certificates of public Certificate Authorities
## (CA). These were automatically extracted from Mozilla's root certificates
## file (certdata.txt). This file can be found in the mozilla source tree:
## http://hg.mozilla.org/releases/mozilla-release/raw-file/default/security/nss/lib/ckfw/builtins/certdata.txt
##
@agragregra
agragregra / sitemap.xml
Created October 12, 2016 21:01
Jekyll Sitemap Without Plugins
---
layout: null
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% for post in site.posts %}{% unless post.published == false %}<url>
<loc>{{ site.url }}{{ post.url }}</loc>
{% if post.date %}<lastmod>{{ post.date | date_to_xmlschema }}</lastmod>{% endif %}
</url>{% endunless %}
@agragregra
agragregra / userChrome.css
Last active February 4, 2018 11:03
Firefox DevTools font size
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document regexp("chrome://browser/content/devtools/**/.*"){
.devtools-monospace {
font-size: 13pt!important;
}
}
@agragregra
agragregra / no-select.css
Created April 16, 2015 14:45
No Select CSS
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;