Skip to content

Instantly share code, notes, and snippets.

View lindwurm's full-sized avatar
🦊
I may be slow to respond.

hota lindwurm

🦊
I may be slow to respond.
View GitHub Profile
@lindwurm
lindwurm / genwebfonts.py
Last active September 15, 2018 13:02 — forked from taskie/genwebfonts.py
RobotoのU+EE01が欲しいだけなんです
#!/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:
@lindwurm
lindwurm / mashiro.sh
Last active May 5, 2016 22:40 — forked from otofune/readme.md
新版を https://github.com/lindwurm/madoka で公開しています。ご利用ください。
#!/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
# 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]
########################################
@lindwurm
lindwurm / nowplaying_from_gpm.js
Last active November 27, 2015 18:19 — forked from takanakahiko/nowplaing_from_gpm.js
Web版Google Play MusicでもいつものフォーマットでNowPlayingするブックマークレット
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,"&");
@lindwurm
lindwurm / koruri.py
Last active December 17, 2015 21:20 — forked from mandel59/koruri.py
Generate Script fo Koruri/VlKoruri.
#!/usr/bin/env fontforge -lang=py -script
# -*- coding: utf-8 -*-
import fontforge
from datetime import date
# Open Sans のあるディレクトリのパス
opensans_path = "./Open_Sans"
# M+ のあるディレクトリのパス
# ~/.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