Skip to content

Instantly share code, notes, and snippets.

@iori-yja
iori-yja / gist:11133149
Last active August 29, 2015 14:00
サンスクリット語ノート

サンスクリット語ノート

#第二回::発音

母音

  • ai, au, ā, ār, アルファベットに落とすと二つの文字にみえるがこれでひとつの長母音 ka と kai はべつで、kaの次にkaiがくるわけではない
  • e, oは必ず長母音
@iori-yja
iori-yja / first.S
Created March 28, 2014 20:44
first.S code from LILO
#if 0
; first.S - LILO first stage boot loader with LBA32 support */
Copyright 1992-1998 Werner Almesberger.
Copyright 1999-2001 John Coffman.
All rights reserved.
Licensed under the terms contained in the file 'COPYING' in the
source directory.
#endif
@iori-yja
iori-yja / gist:9271860
Created February 28, 2014 14:19
Build cross compiler with newlib.
export PREFIX=/usr/local/$TARGET
export TARGET=arm-none-eabi-newlib
# build binutils
wget http://ftp.gnu.org/gnu/binutils/binutils-2.24.tar.bz2
tar xf binutils-2.24.tar.bz2
mkdir b-binutils
cd b-binutils
../binutils-2.24/configure --prefix=$PREFIX --program-prefix=arm-none-eabi- --target=arm-eabi --enable-lto --enable-interwork --enable-multilib
make -j5
nohup yes >/dev/null 2>&- <&- &
@iori-yja
iori-yja / swrvr_clib.v.diff
Last active December 29, 2015 15:49
a patch file of swrvr_clib.v for S1 core (it will be needed when you specify S1 core edition). I refered to this document -> http://goo.gl/SLmMLB (PDF: Italian)
910a911,933
>
> module dffr (din, clk, rst, q, se, si, so);
> //synopsys template
> parameter SIZE = 1;input [SIZE-1:0] din ; // data in
> input clk ; // clk or scan clk
> input rst ; // reset
> output [SIZE-1:0] q ; // output
> input se ; // scan-enable
> input [SIZE-1:0] si ; // scan-input
@iori-yja
iori-yja / sleep.c
Created July 23, 2013 11:06
Arduino/AVR sleep function kicked by Pin Change Interrupt(GPIO interrupt).
#include <avr/sleep.h>
void setup()
{
pinMode(6, INPUT);
pinMode(13, OUTPUT);
Serial.begin(9600);
digitalWrite(13, HIGH);
}
@iori-yja
iori-yja / alarm.sh
Created May 26, 2013 17:03
学校に遅刻しないための one liner.
amixer sset Master unmute 100%;sleep $((` date -d $wake +%s `-`date +%s`));while 1;do; mplayer $MUSIC; sleep 300;done
bind r source-file ~/.tmux.conf
set-option -g prefix C-c
unbind-key C-b
bind-key C-c send-prefix
set-window-option -g mode-keys vi
#set-option -g default-terminal screen-256color
set-option -g default-terminal rxvt
#set-option -g status-fg colour4
@iori-yja
iori-yja / gist:5410050
Created April 18, 2013 04:09
論理回路基礎実験
動作確認: Thu Apr 18 13:09:35 JST 2013
LATEX = platex --interaction=nonstopmode --kanji=utf8
DVIPDFM = dvipdfmx
DVIPSFLAGS = -t jisb5 -P pdf
DVIPDFMFLAGS = -p jisb5
TEXDEPS = word.cls word.clo default-style.sty
word.cls : ../../texfiles/word.cls
cp $< $@