This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: | |
var te=document.getElementById("player-song-title"); | |
var t=te.innerHTML; | |
t=t.replace(/& /g,"&"); | |
var ae=document.getElementById("player-artist"); | |
var a=ae.innerHTML; | |
a=a.replace(/& /g,"&"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env fontforge -lang=py -script | |
# -*- coding: utf-8 -*- | |
import fontforge | |
from datetime import date | |
# Open Sans のあるディレクトリのパス | |
opensans_path = "./Open_Sans" | |
# M+ のあるディレクトリのパス |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
# don't put duplicate lines in the history. See bash(1) for more options | |
# ... or force ignoredups and ignorespace | |
HISTCONTROL=ignoredups:ignorespace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# zshrc | |
# License : MIT | |
# http://mollifier.mit-license.org/ | |
# | |
# special thanks: | |
# [https://gist.github.com/mollifier/4979906/43d1c77344dd59fa119ca5b75e7a54e01e668710] | |
# [https://gist.github.com/lindwurm/12bde09c66987a7341ac/19a139d77e0d07f8421a44cdf7d4553703f0b9d7] | |
# [http://aircastle.hatenablog.com/entry/20080428/1209313162] | |
######################################## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# YOUR_ACCESS_TOKEN には https://www.pushbullet.com/#settings/account から取得したトークンを使用 | |
PUSHBULLET_TOKEN=YOUR_ACCESS_TOKEN | |
# 実行時の引数が正しいかチェック。5個です | |
if [ $# -ne 5 ]; then | |
echo "指定された引数は$#個です。" 1>&2 | |
echo "仕様: $CMDNAME [ビルドディレクトリ] [ターゲット] [ツイート可否] [sync可否] [make clean可否]" 1>&2 | |
echo "ツイート、sync、make cleanの可否は1(有効)か0(無効)で選択してください。" 1>&2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env fontforge -lang=py -script | |
# -*- coding: utf-8 -*- | |
import fontforge | |
import sys | |
import os | |
def _select_codepoint(codepoint, selection, more=True): | |
more_str = 'more' if more else 'less' | |
if isinstance(codepoint, tuple) and len(codepoint) == 2: |