Skip to content

Instantly share code, notes, and snippets.

View y-marui's full-sized avatar

Yukihiro y-marui

View GitHub Profile
@aurora
aurora / gist:793108
Created January 24, 2011 11:29
applescript: rename selected itunes tracks
--
-- renames selected tracks
--
-- from:
-- artist: "Various Artists"
-- name: "name-of-artist - name-of-track"
--
-- to:
-- artist: "name-of-artist"
-- album artist: "Various Artists"
@kozy4324
kozy4324 / launchd_memo.md
Last active March 11, 2024 03:56
launchd, launchctlについて(導入編)

launchd, launchctl

man

$ man launchd
$ man launchctl
$ man launchd.plist

$ man plutil

@aphlysia
aphlysia / stfuawsc_itg_advent2014_4_conda.md
Last active June 16, 2023 01:05
conda で python の環境つくり

これは stfuawsc_itg Advent Calendar 2014 4日目の記事です。

プログラミングをしていると、いろいろなバージョンの環境を行ったり来たりしたくなることがあります。たとえば言語処理は python 2 へ nltk を入れてやりたい。シミュレーションは python 3 へ numpy 入れてやりたいとか。
そういうふうに言語やモジュールのバージョンをいろいろ組合せた環境を気軽に切り替えられると便利です。
実際そういうことを可能にするツールはたくさんあります。virtualenv, pyenv など。
ここで紹介する conda というツールもその1つです。
virtualenv などでは、モジュールを入れるときは通常の python の流儀でインストールするのですが、インストールがうまくいかないというのはよくあることです。conda ではあらかじめビルドされたものを入れるので、楽です。もちろん conda に用意されていないモジュールもありますが、そういうのは pip 等通常の方法で入れて共存できます。

ではさっそく conda で python の環境を作る方法です。

@goatandsheep
goatandsheep / Texify-Mathjax.js
Last active March 6, 2023 07:57
[Deprecated] A Tampermonkey / Greasemonkey script that turns LaTeX code on page into mathematical symbols using MathJax
// ==UserScript==
// @name TeXify the World MathJax
// @namespace
// @version 1.0
// @description Enables MathJax to process LaTeX on all websites. Based off SOUP (Stack Overflow Unofficial Patch) and http://www.math.ucla.edu/~robjohn/math/mathjax.html.
// @include *
// @copyright
// ==/UserScript==
/*
var mathjaxVersion = "http://cdn.mathjax.org";
@mamemomonga
mamemomonga / OSX-TerminalApps.md
Last active May 9, 2019 06:11
OSXにいれておくべきものメモ ターミナル編

macOSにいれておくべきものメモ ターミナル編

基本設定

vim, curl, git, zsh とかはEl Capitanに入っているのを使う。

Xcode

$ xcode-select --install
@uchcode
uchcode / Create-standalone-Mac-OS-X-applications-with-Python.md
Last active February 8, 2023 05:05
PythonでスタンドアロンのMac OS Xアプリケーションを作成する

PythonでスタンドアロンのMac OS Xアプリケーションを作成する

Pythonのプログラムを配布可能なアプリケーションを作成する方法について扱います。

Pythonプログラムの実行方式

コンピュータが理解できるのは突き詰めると、0と1だけです。そのため、プログラムを実行するには「プログラミング言語で書かれたテキストのプログラム」を0と1に変換する必要があります。そのやり方には2つあり、ひとつはコンパイラを使うもので、もうひとつはインタプリタを使うものです。

以下に両者の違いについて記載します。

@adujardin
adujardin / bitbucket-pipelines.yml
Created September 8, 2017 16:55
Bitbucket pipeline file for latex document (including bibtex and upload to dropbox)
# SETTING UP :
# Generate an application token for your dropbox account and set it as environment variable named "DROPBOX_TOKEN"
# - https://blogs.dropbox.com/developers/2014/05/generate-an-access-token-for-your-own-account/
# - https://confluence.atlassian.com/bitbucket/environment-variables-794502608.html
# Edit TEX_FILE (see below) according to the main tex file name
image: fermiumlabs/latex-docker:latest
pipelines:
custom: # Manually only