Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
# -*- coding: utf8 -*-
import codecs
from StringIO import StringIO
#
# Index
#
dts = [
'<dt><a>Categories</a>:</dt>',
@takenspc
takenspc / chromium.googlesource.com.js
Last active October 8, 2015 23:58
Hatena Bookmark Title
(function () {
'use strict';
var title = [];
var parts = location.pathname.split('/');
title.push(parts[1] + '/' + parts[2]);
title.push(' - ');
title.push(parts[4].substring(0, 10));
title.push(' — ');
var message = document.querySelector('.u-pre').textContent;
title.push(message.split('\n')[0]);
@takenspc
takenspc / index.js
Created June 7, 2015 13:37
SymlinkFinder
"use strict";
let fs = require("fs");
let path = require("path");
let util = require("util");
function SymlinkFinder() {
}
SymlinkFinder.prototype = {
queue : [],

Buffer

In Buffer

The Buffer class is a global, making it very rare that one would need to ever require('buffer').

Console

process

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>valueAsDate</title>
</head>
<body>
<div><label>input[type="time"]<input type="time" id="time"></label></div>
<script>
(function() {
@takenspc
takenspc / display_speech_output.diff
Last active December 19, 2015 10:49
AccessFu: Display speech output
diff --git a/accessible/src/jsat/AccessFu.css b/accessible/src/jsat/AccessFu.css
--- a/accessible/src/jsat/AccessFu.css
+++ b/accessible/src/jsat/AccessFu.css
@@ -47,8 +47,23 @@
-moz-transition: opacity 0.2s linear;
}
#announce-box * {
text-align: center;
display: table-cell;

アクセシビリティキャンプ東京 #6のテーマ

このメモではアクセシビリティキャンプ東京 #6 のテーマを考えます。 アクセシビリティキャンプ東京 #6は2013年6月ごろ開催される予定です。 予定の詳細はキャンプのページを確認してください。

これを書いてる人

@Takenspc

@takenspc
takenspc / gist:5147544
Created March 12, 2013 22:08
Incomplete Patch: expose fallback content in object element to assistive technologies. For the copyright and license information, see http://trac.webkit.org/browser/trunk/Source/WebKit/LICENSE
Index: Source/WebCore/accessibility/AccessibilityRenderObject.h
===================================================================
--- Source/WebCore/accessibility/AccessibilityRenderObject.h (revision 144974)
+++ Source/WebCore/accessibility/AccessibilityRenderObject.h (working copy)
@@ -259,6 +259,7 @@
void addTextFieldChildren();
void addImageMapChildren();
void addCanvasChildren();
+ void addObjectChildren();
void addAttachmentChildren();