Skip to content

Instantly share code, notes, and snippets.

🍍

Artur apokusin

🍍
Block or report user

Report or block apokusin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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
@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 / 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 }}"
@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-default-layout.html
Created Dec 12, 2013
A sample default layout file for the Bolt Jekyll Blog
View sample-default-layout.html
<!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 / index.html
Created Aug 16, 2013
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"
View index.html
<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">
You can’t perform that action at this time.