Skip to content

Instantly share code, notes, and snippets.

View jiraiyame's full-sized avatar
🎯
Focusing

jiraiyame

🎯
Focusing
View GitHub Profile
@jiraiyame
jiraiyame / gallery.js
Created June 5, 2017 05:47
responsive layout powered by flickr's justified layout
@jiraiyame
jiraiyame / form.js
Created June 5, 2017 02:30
form validation component
import { event, Emitter, classes, query, validation, lang } from 'lib';
let _uid = 0;
class Form extends Emitter {
constructor(options) {
super();
if (!(this instanceof Form)) {
return new Form(options);
@jiraiyame
jiraiyame / twitter.emoji.js
Created April 11, 2014 02:26
emoji icon from twitter.
var SCOPE_PICTOGRAPHS = [127744, 128359];
var SCOPE_PICTOGRAPHS_EXTRA = [128507, 128511];
var SCOPE_EMOTICONS = [128512, 128591];
var SCOPE_TRANSPORT = [128640, 128709];
function emojiconsString(title, scope, size) {
var html = [title ? '<h2>' + title + '</h2>' : ''];
size = size || [72, 72];
html.push('<ul>');
for (var i = scope[0], end = scope[1]; i <= end; i++)