This file contains 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
<meta name="twitter:card" content="[summary]"> | |
<meta name="twitter:site" content="[@handle]"> | |
<meta name="twitter:creator" content="[@handle]"> | |
<meta property="og:url" content="[url]"> | |
<meta property="og:title" content="[title]"> | |
<meta property="og:description" content="[summary]"> | |
<meta property="og:image" content="[image url]"> |
This file contains 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
/** | |
* A selection of handy code snippets, plugins, and best practices for WordPress development. | |
* | |
*/ |
This file contains 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
$('.video').magnificPopup({ | |
type: 'iframe', | |
iframe: { | |
patterns: { | |
youtu: { | |
index: 'youtu.be', | |
id: function( url ) { | |
// Capture everything after the hostname, excluding possible querystrings. | |
var m = url.match( /^.+youtu.be\/([^?]+)/ ); |
This file contains 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
/** | |
* Change class when element is in view | |
*/ | |
var elementTop = $(".container").offset().top; | |
$(window).on("scroll", function updateClassWhenInView() { | |
if ($(window).scrollTop() > elementTop - window.innerHeight * 0.9) { | |
$(window).off("scroll", updateClassWhenInView); | |
$(".element").removeClass("is-hidden").addClass("is-visible"); | |
} |
This file contains 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
❯ keybase pgp export -s | gpg --import --allow-secret-key-import | |
gpg: directory '/Users/SELF/.gnupg' created | |
gpg: keybox '/Users/SELF/.gnupg/pubring.kbx' created | |
gpg: /Users/SELF/.gnupg/trustdb.gpg: trustdb created | |
gpg: bad data signature from key 0XFOO: Wrong key usage (0x19, 0x2) | |
gpg: key 0XBAR: public key "keybase.io/USER <USER@keybase.io>" imported | |
gpg: bad data signature from key 0XFOO: Wrong key usage (0x19, 0x2) | |
gpg: key 0XBAR/0XBAR: error sending to agent: Inappropriate ioctl for device | |
gpg: error building skey array: Inappropriate ioctl for device | |
gpg: Total number processed: 1 |
This file contains 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 | |
/** | |
* Get following/followers count of an Twitter account, without using 1.1 API | |
* @author Lancelot HARDEL | |
* @param username That's clear | |
* @param cache If you want to enable cache (or not) | |
* @param cachetime Time that the cachefile is valied | |
* @param stat_name you can use two values : followers, or following | |
* @return int | |
*/ |
This file contains 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
tooltip = { | |
elements: void 0, | |
CLASS_BUBBLE: "tooltip-bubble", | |
CLASS_CONTENT: "tooltip-content", | |
CLASS_HEADER: "tooltip-header", | |
CLASS_FOOTER: "tooltip-footer", | |
STATE_INIT: "is-initialized", | |
STATE_VISIBLE: "is-visible", | |
init: function(e) { | |
this.elements = e; |
This file contains 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
{ | |
"plugins": [ | |
"stylelint-order", | |
"stylelint-scss" | |
], | |
"extends": [ | |
"stylelint-config-recess-order" | |
], | |
"rules": { | |
"color-hex-case": "lower", |
This file contains 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
/** | |
* Cross-browser opacity. | |
* | |
* 1. Even IE8 | |
* | |
* Usage: | |
* | |
@include opacity(0.8); | |
* | |
*/ |
This file contains 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
<!-- | |
Clean, efficient, complex content elements. | |
--> |
NewerOlder