Skip to content

Instantly share code, notes, and snippets.

View munepi's full-sized avatar

Munehiro Yamamoto munepi

View GitHub Profile
@somebox
somebox / convert_trac.rb
Created October 10, 2010 20:31
Convert Trac Wiki to Markdown
#!/usr/bin/env ruby
# Convert Trac DB Wiki pages to Markdown source files
# This script is based on http://github.com/seven1m/trac_wiki_to_github which
# converted all pages from a Trac DB to GitHub Wiki format (as Textile).
#
# I made two changes:
# - uses MarkDown format instead
# - uses the sqllite3-ruby gem which does not need Ruby 1.9
@theconektd
theconektd / github.css
Created April 30, 2012 02:11
Github Markdown CSS - for Markdown Editor Preview
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px; }
body > *:first-child {
@zr-tex8r
zr-tex8r / pxtatescale.sty
Last active January 21, 2017 12:39 — forked from anonymous/pxtatescale.sty
例のscaleboxなアレ
% pxtatescale.sty
\NeedsTeXFormat{pLaTeX2e}
\ProvidesPackage{pxtatescale}[2013/03/25 v0.2]
\def\pxqtg@pkgname{pxtatescale}
\@ifpackageloaded{graphics}{}{%else
\PackageError\pxqtg@pkgname{Package 'graphics' not loaded}\@ehc}
\begingroup
\def\pxqtg@try@patch#1#2#3{%
\def\pxqtg@temp{#2}\ifx#1\pxqtg@temp
\gdef#1{#3}%
@kozo2
kozo2 / kansaidebian-72-debian-and-ubuntu.md
Last active March 23, 2021 05:18
第72回関西Debian勉強会「DebianとUbuntuの違いを知ろう」

「DebianとUbuntuの違いを知ろう」

この話の趣旨

「Linuxはとりあえず人気のあるUbuntuを使っている」という方は多いのでは 無いでしょうか。
この話はDebianとUbuntuの違いを挙げ、どちらがみなさんに適しているか考え てみていただくことを目的としています。

supportされるarchitecture

#!/bin/bash
# This program is licensed under the terms of the MIT License.
#
# Copyright (c) 2014-2021 Munehiro Yamamoto <[email protected]>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@gbuesing
gbuesing / ml-ruby.md
Last active February 28, 2024 15:13
Resources for Machine Learning in Ruby

UPDATE a fork of this gist has been used as a starting point for a community-maintained "awesome" list: machine-learning-with-ruby Please look here for the most up-to-date info!

Resources for Machine Learning in Ruby

Gems

@doraTeX
doraTeX / upjcode-test.tex
Last active April 28, 2016 15:05
upTeX で文字コードを調べる upjcode パッケージ http://doratex.hatenablog.jp/entry/20150218/1424257261
\documentclass[uplatex]{jsarticle}
\usepackage[margin=1.5cm]{geometry}
\pagestyle{empty}
\usepackage{otf} %% BMP外文字を出力したいので
\usepackage{upjcode}
%%% \kutenTable{区}{点}
%%% 与えられた JIS X 0208 の区点位置に関する文字情報の表を作成する。
\def\kutenTable#1#2{\texttt{%
\begin{tabular}{|l|l|} \hline
@munepi
munepi / _update-libo.bash
Last active February 10, 2024 05:02
Command line installer/updater of LibreOffice+Japanese language pack on Mac OS X
#!/bin/bash -x
set -euxo pipefail
##cd "$(dirname "$0")/"
LibO=${LibO:-24.2.0}
LibO_major=$(echo $LibO | awk -F. '{ OFS=FS; print $1 }')
LibO_minor=$(echo $LibO | awk -F. '{ OFS=FS; print $2 }')
LibO_rev=$(echo $LibO | awk -F. '{ OFS=FS; print $3 }')
__hdiutil="hdiutil attach -nobrowse"
@zr-tex8r
zr-tex8r / bxamstext.sty
Last active June 23, 2019 02:39
LaTeX: ヤバくない \text の実装
%% bxamstext.sty
%% package declaration
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{bxamstext}[2015/12/19 v0.2]
%% preparation
\def\bxtt@pkgname{bxamstext}
%% load packages
@zr-tex8r
zr-tex8r / bxposinline.sty
Created January 23, 2016 01:47
LaTeX: to get the current position in line
% bxposinline.sty
%% declaration
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{bxposinline}[2016/01/23 v0.2]
\def\bxqpi@pkgname{bxposinline}
%% package
\RequirePackage{zref-savepos}