Skip to content

Instantly share code, notes, and snippets.

@hushin
hushin / a.fish
Created January 6, 2019 03:21
fish でデフォルト引数っぽいの
# https://stackoverflow.com/questions/45726573/
function myfunc -a num
set -q num[1] || set num 10
echo 'myfunc' $num
end
// ==UserScript==
// @name ニコレポを見やすくするやつ
// @namespace https://twitter.com/hush_in
// @version 0.1
// @description ニコレポを見やすくするやつ
// @author hush_in
// @match https://www.nicovideo.jp/my/top
// @grant none
// ==/UserScript==
{
@hushin
hushin / tweetdeck.css
Last active September 23, 2018 00:06
.column:nth-child(1) {
width: 600px;
}
.column:nth-child(1) .item-box:not(:hover) .tweet-footer {
display: none;
}
.column:nth-child(1) .js-stream-item-content {
padding: 3px;

Letterspace から markdown file への移行メモ

  • iCloud の Letterspace にテキストファイルがあるので、ファイル名を変えたい
    • iCloud 使ってないとき、 ~/Library/Containers/com.x10studio.LetterspaceMac/Data/Documents/Home にファイルがある
    • 適当なフォルダにコピーして作業
  • 予めファイル名の空白をハイフンに置換しておく
    • find . -name "* *" -print0 | xargs -0 rename 's/ /-/g'
  • 更新日をファイル名につける
    • ls -l --time-style='+%Y-%m-%d' | grep -v total | awk '{ printf("%s %s-%s\n", $7, $6, $7) }' | xargs -n 2 mv
  • 参考 大量のファイルをシェルのコマンドで一括リネームする | Developers.IO
@hushin
hushin / memo.md
Created December 27, 2017 06:48
AndroidでBluetoothキーボード使うときのメモ
ffmpeg -i $@ -f mp4 -vcodec libx264 -b:v 4000k -an -r 30 ${@%.*}.mp4
afplay "/System/Library/Sounds/Hero.aiff"
set noautofocus
set cncpcompletion
set smoothscroll
let scrollstep = 150
let fullpagescrollpercent = 100
let locale = "jp"
let barposition = "bottom"
let hintcharacters = "hjklasdfgyuiowertnm"
let blacklists = ["https://mail.google.com/*","https://www.google.com/calendar/*","https://www.amazon.co.jp/gp/video/*","https://feedly.com/*","https://i.doit.im/*"]
let previousmatchpattern = "((?!last)((P|p)rev(ious)?|newer|back|«|less|<|‹|←| )+)"
@hushin
hushin / _smooziee2.js
Created November 23, 2016 01:05
https://github.com/philc/vimium/blob/master/content_scripts/scroller.coffee を参考に _smooziee.js をもうちょっとスムーズにスクロールするようにした
//
// _smooziee.js
//
// LICENSE: {{{
// Copyright (c) 2009 snaka<snaka.gml@gmail.com>
//
// distributable under the terms of an MIT-style license.
// http://www.opensource.jp/licenses/mit-license.html
// }}}
//

Re:ゼロから始めるFusion生活

https://atnd.org/events/78754

  • あとで資料公開されるらしい
  • AECGオフ主催の人

Fusionとは

  • 無料で有償版の9割使える