Skip to content

Instantly share code, notes, and snippets.

@apokusin
apokusin / keybase.md
Created August 19, 2014 18:42
keybase verification — don't delete

Keybase proof

I hereby claim:

  • I am apokusin on github.
  • I am acp (https://keybase.io/acp) on keybase.
  • I have a public key whose fingerprint is 3160 AB3E 532B 03C6 A735 DC5F 221E 8CF9 53BA 32BE

To claim this, I am signing this object:

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content="your website's subject">
<meta name='copyright' content='company name'>
@apokusin
apokusin / index.html
Created August 16, 2013 12:06
A CodePen by Artur Pokusin. Code Unlock - A simple unlock UI element that I'm working on for a side project. It validates to "1234"
<div>
<h3>enter code</h3>
<form class="code_input">
<input type="text" maxlength="1" placeholder="#" autofocus></input>
<input type="text" maxlength="1" placeholder="#"></input>
<input type="text" maxlength="1" placeholder="#"></input>
<input type="text" maxlength="1" placeholder="#"></input>
</form>
<ul class="hint">
@apokusin
apokusin / sample-default-layout.html
Created December 12, 2013 02:43
A sample default layout file for the Bolt Jekyll Blog
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>{{ page.title }}</title>
<meta name="viewport" content="width=device-width">
{% include social_meta.inc %}
@apokusin
apokusin / gist:7922610
Created December 12, 2013 03:04
styles link
<link href='//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,300italic,400italic,600italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="/css/reset.css">
<link rel="stylesheet" href="/css/syntax.css">
<link rel="stylesheet" href="/css/main.css">
@apokusin
apokusin / sample-authors.yml
Created December 12, 2013 03:35
Author database file
artur:
name: Artur Pokusin
linkName: pokus.in
url: "http://pokus.in"
img: "https://bolt.co/assets/artur_headshot.png"
twitter: "@apokusin"
andrew:
name: Andrew Benton
linkName: benton.io
@apokusin
apokusin / basic-author-display.html
Created December 12, 2013 03:48
Basic author via global data
<!-- Get the appropriate author object based on the `page.author` variable, specified in your Front-matter -->
{% assign author = site.data.authors[page.author] %}
<div class="author">
<div class="image">
<img src="{{ author.img }}" alt="{{ author.name }}" width="50" height="50">
</div>
<div class="author_info">
<span class="name">{{ author.name }}</span>
<span class="date">{{ page.date | date: '%B %d, %Y' }}</span>
@apokusin
apokusin / author-display.html
Created December 12, 2013 03:52
Display author(s), reliant on a 'post' loop.
{% if post.author %}
{% assign author = site.data.authors[post.author] %}
{% assign p = post %}
{% else %}
{% assign author = site.data.authors[page.author] %}
{% assign p = page %}
{% endif %}
<div class="author">
<div class="image">
@apokusin
apokusin / sample-social-meta.html
Last active June 14, 2017 07:15
Social Meta tags with Jekyll
{% unless page.layout == 'error' %}
{% if page.layout == 'article' %}<meta name="description" content="{{ page.content | strip_html | xml_escape | truncate: 200 }}">{% endif %}
<meta property="og:title" content="{{ page.title }}"
/>
{% if page.layout == 'article' %}<meta property="og:description" content="{{ page.content | strip_html | xml_escape | truncate: 200 }}"
/>{% endif %}
<meta property="og:url" content="{{ site.blogURL }}{{ page.url }}" />
<meta property="og:image" content="{{ site.og_image }}"
/>
<meta property="og:site_name" content="{{ site.name }}"
@apokusin
apokusin / country_code_select.js
Last active August 18, 2017 15:53
An AngularJS directive for selecting a country code from a select dropdown
'use strict';
angular.module('webappApp')
.directive('countryCodeSelect', ['$parse', function($parse) {
return {
restrict: 'A',
template: '<select><option ng-repeat="(key, value) in countries" value="{{ value }}">{{ key }} ({{ value }})</option></select>',
replace: true,
link: function(scope, elem, attrs) {
var assignCountry;