Pythonでは virtualenv を使う事でroot権限無しにモジュールのインストールが出来るようになる.目的別に環境を作る事が出来るので,モジュールを試しにインストールする時にも有用.
This file contains hidden or 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
#include <avr/io.h> | |
#include <avr/boot.h> | |
#include <util/delay.h> | |
#include <avr/signature.h> | |
#include <avr/pgmspace.h> | |
#include <stdint.h> | |
#include <stdbool.h> | |
#include <avr/eeprom.h> | |
// #include <usart.h> |
- 一番簡単な方法
R for mac から R-3.x.x.pkg (latest version)
をダウンロードする.
この方法の場合には Xcode や Xquartz をインストールする必要はコンパイルが必要なモジュールを入れない限り無い. モジュールをインストールする場合にはコンパイルが必要な事があるので MacPorts を使う方法の1〜3をやっておくと良い.
This file contains hidden or 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 python | |
__author__ = 'OKAMURA Yasunobu' | |
__license__ = 'GPLv3+' | |
from Bio import Entrez | |
import argparse | |
import re | |
from xml.sax.saxutils import escape |
This file contains hidden or 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
# -*- shell-script -*- | |
# private paths | |
if [ -f $HOME/.zsh.d/private-path.sh ];then | |
source $HOME/.zsh.d/private-path.sh | |
fi | |
# load system configuration | |
if [ -f "/etc/profile" ];then | |
source /etc/profile |
This file contains hidden or 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 | |
DOTFILES=`find "$PWD" -mindepth 1 -maxdepth 1 -name "dot_*"` | |
TIME=`LANG=C date` | |
pushd "$HOME" | |
for i in $DOTFILES;do | |
NEWNAME=`basename "$i" | sed -e "s|^dot_|$HOME/.|"` | |
if [ -L "$NEWNAME" ];then |
This file contains hidden or 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 python | |
import Bio.SeqIO | |
import argparse | |
import re | |
import os.path | |
def cleanup_text(name): | |
""" | |
This file contains hidden or 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/sh | |
# -*- sh -*- | |
#: =cut | |
# | |
#=head1 NAME | |
# | |
#load - Plugin to monitor the memory on a system. | |
# | |
#=head1 AUTHOR |
This file contains hidden or 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/sh | |
#$ -S /bin/sh | |
#$ -cwd | |
if [ "$JOB_ID" ];then # in grid engine | |
tar "$@" | |
else | |
qsub -N "qtar-`basename $PWD`" -l s_vmem=0.5G,mem_req=0.5 $0 "$@" | |
fi |
This file contains hidden or 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 python | |
import argparse | |
import sqlite3 | |
import csv | |
import gzip | |
import bz2 | |
import datetime | |
def prepare_database(conn): |