Skip to content

Instantly share code, notes, and snippets.

View SketchSystems.spec
# Grading flow
Attempt View
Assignment done?
yes -> Grading area
no -> Attempt View
Grading area
Input
numerical keypress -> Number
enter keypress -> Submit grade
View SketchSystems.spec
# Timeline
Timeline
Assignment
View Assignment
edit -> Edit assignment
open attempt -> Attempt
Edit assignment
save -> Assignment
cancel -> Assignment
View meta-tags.md

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 / keybase.md
Created Aug 19, 2014
keybase verification — don't delete
View keybase.md

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:

@apokusin
apokusin / country_code_select.js
Last active Aug 18, 2017 — forked from basiam/country_code_select.js.coffee
An AngularJS directive for selecting a country code from a select dropdown
View country_code_select.js
'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;
@apokusin
apokusin / author-display.html
Created Dec 12, 2013
Display author(s), reliant on a 'post' loop.
View author-display.html
{% 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 / basic-author-display.html
Created Dec 12, 2013
Basic author via global data
View basic-author-display.html
<!-- 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 / sample-authors.yml
Created Dec 12, 2013
Author database file
View sample-authors.yml
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
View gist:7922610
<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-social-meta.html
Last active Jun 14, 2017
Social Meta tags with Jekyll
View sample-social-meta.html
{% 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 }}"
You can’t perform that action at this time.