Skip to content

Instantly share code, notes, and snippets.

@takasek
takasek / file0.m
Last active September 25, 2016 12:57
ソフトウェアキーボードのinputAccessoryViewは、高さが可変だと辛い ref: http://qiita.com/takasek/items/db385a12cbc323e87832
@interface TSInputAccessoryView()
{
CGSize _keyboardSize;
BOOL _isKeyboardShown;
}
@end
@implementation TSInputAccessoryView
- (id)init
@takasek
takasek / wf_text_counter.js
Last active November 4, 2019 15:02
Text counter for WorkFlowy
// もはや動いていなかったので削除
// 修正していただい版をご利用ください
// https://gist.github.com/jnory/b39cd65508fbaa2fa39ebed932ca47a7
@takasek
takasek / wf_browsing_width_fitter.js
Last active August 29, 2015 14:27
[Deprecated] WorkFlowyでブラウザの横幅が足りない時に起こる問題を解決する
$('<style type="text/css">').appendTo('head').get(0).sheet.insertRule('.selected>.name>#controls>#controlsLeft { left: 100px; top: 45px; }', 0);
$("#header").css("min-width", "0px");
$("#logo").hide();
$("#helpButton").hide();
$(".showCompletedButton").html($(".showCompletedButton").html().replace("Completed:","✓").replace("Hidden","😪").replace("Visible","😳")).css("width", "auto");
// 以下余白
// Complete:Visible/Hidden 自体が要らないのであれば、5行目を
// $(".showCompletedButton").hide();
// に差し替えると消えます。
@takasek
takasek / wf_completed_button_simplifier.user.js
Last active August 29, 2015 14:28
WorkFlowyのCompletedボタンをシンプルにする
// ==UserScript==
// @name wf_completed_button_simplifier.user.js
// @namespace https://gist.github.com/takasek/42ce96dfa332f4f60dcd
// @description WorkFlowyのCompletedボタンをシンプルにする
// @include https://workflowy.com/*
// @version 2
// @grant none
// ==/UserScript==
$(".showCompletedButton").html($(".showCompletedButton").html().replace("Completed:","✓").replace("Hidden","😪").replace("Visible","😳")).css("width", "auto");
@takasek
takasek / wf_browsing_width_fitter.css
Created August 24, 2015 04:10
WorkFlowy - 幅800px未満のブラウザ対応用パッチCSS for Stylish
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("workflowy.com") {
.selected>.name>#controls>#controlsLeft {
left: 100px;
top: 45px;
}
#header {
min-width: 0px;
@takasek
takasek / wf_share_topic_url.user.js
Last active August 28, 2015 13:29
WorkFlowyのShare機能に、トピックのURLをコピペできるテキストボックスを追加
// ==UserScript==
// @name wf_share_topic_url.user.js
// @namespace https://gist.github.com/takasek/203518a2fe0da71f7189
// @description WorkFlowyのShare機能に、トピックのURLをコピペできるテキストボックスを追加
// @include https://workflowy.com/*
// @version 3
// @grant none
// ==/UserScript==
(function() {
@takasek
takasek / wf_contexual_topic_url.user.js
Last active August 28, 2015 13:28
WorkFlowyのコンテキストメニューに、トピックのURLをコピペできるテキストボックスを追加
// ==UserScript==
// @name wf_contexual_topic_url.user.js
// @namespace https://gist.github.com/takasek/03d77898bbef686ed189
// @description WorkFlowyのコンテキストメニューに、トピックのURLをコピペできるテキストボックスを追加
// @include https://workflowy.com/*
// @version 2
// @grant none
// ==/UserScript==
(function() {
@takasek
takasek / wf_japanese_shortcuts.user.js
Created November 28, 2015 04:39
WorkFlowyのキーボードショートカット日本語化
// ==UserScript==
// @name wf_japanese_shortcuts.user.js
// @namespace https://gist.github.com/takasek/
// @description WorkFlowyのキーボードショートカット日本語化
// @include https://workflowy.com/*
// @version 1
// @grant none
// ==/UserScript==
(function() {
@takasek
takasek / CodePiece.swift
Created January 20, 2016 10:53
CodePieceからCodeつきツイートしてみるテスト #__swift__ #CodePiece
print("hello world!")
@takasek
takasek / CodePiece.swift
Created January 20, 2016 12:08
Then的なことをpureなclosureで書いたりもしてたけど(cf. gist)、Thenいいなー、すごくいいなー #__swift__ #CodePiece
let view = {
let v = UIView()
v.backgroundColor = UIColor.redColor()
v.layer.cornerRadius = 2
v.layer.borderWidth = 1
return v
}()