Skip to content

Instantly share code, notes, and snippets.

@hushin
hushin / private.xml
Last active August 29, 2015 13:56
KeyRemap4MacBookの設定
<?xml version="1.0"?>
<root>
<item>
<name>Option + JIS_YEN to KANA/EISU (toggle)</name>
<identifier>private.alt_and_jisyen_to_kana_eisuu</identifier>
<autogen>
__KeyToKey__
KeyCode::JIS_YEN, ModifierFlag::OPTION_L,
KeyCode::VK_JIS_TOGGLE_EISUU_KANA
</autogen>
#!/bin/sh
cli=/Applications/KeyRemap4MacBook.app/Contents/Applications/KeyRemap4MacBook_cli.app/Contents/MacOS/KeyRemap4MacBook_cli
$cli set remap.fn_fkeys_to_consumer_f7 1
/bin/echo -n .
$cli set remap.jis_controlItocontrolK 1
/bin/echo -n .
$cli set remap.hhkmode 1
/bin/echo -n .
@hushin
hushin / test.jsfl
Created May 6, 2014 14:55
今日のJSFL 20140506
(function(global){
var uri = fl.scriptURI.replace(/[¥/][^¥/]*?$/,"/");
// load Lo-Dash
fl.runScript(uri + "lodash.compat.js");
var trace = fl.trace;
var clear = fl.outputPanel.clear;
function Point(x, y){
this.x = x;
@hushin
hushin / private.xml
Last active August 29, 2015 14:04
Realforce 104UB 用 Karabiner 設定
<?xml version="1.0"?>
<root>
<item>
<name>Option + JIS_YEN to KANA/EISUU (toggle)</name>
<identifier>private.alt_and_jisyen_to_kana_eisuu</identifier>
<autogen>
__KeyToKey__
KeyCode::JIS_YEN, ModifierFlag::OPTION_L,
KeyCode::VK_JIS_TOGGLE_EISUU_KANA
</autogen>
$(".contentBody .item").each(function(key, value) {
var $value = $(value);
var view_count = parseInt($value.find(".view > .value").text().replace(",", ""), 10);
if (view_count < 10000) {
$value.hide();
}
});
@hushin
hushin / mmd.md
Created August 25, 2015 11:37
MMD memo
@hushin
hushin / a.css
Created August 30, 2015 00:42
ニコレポの表示をいい感じにするCSS
.log-user-video-round-number-of-view-counter, .log-user-live-broadcast, .log-user-action-stamp {
display: none;
}
.log-user-mylist-add {
background: #eee;
}
@hushin
hushin / FizzBuzz.jsfl
Created May 6, 2012 14:26
Flash Timeline で FizzBuzz
// --------------------------------------------------------------------------------
// Timeline で FizzBuzz
xjsfl.init(this);
var context = Context.create();
clear();
//trace(context);
//inspect(context.timeline);
for (var i = 0; i < 100; i++) {
context.timeline.insertKeyframe(i);
var keyframe = context.keyframes[i];