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
=if(isblank(A1)=TRUE,"",if(ISNUMBER(A1),TEXT( int(A1/10000),"000")&"-"&text(mod(A1,10000),"0000"),left(A1,3)&"-"&right(A1,4))) |
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 ruby | |
# encoding: utf-8 | |
bmp_file = open(ARGV[0]) | |
# Windowsの場合はバイナリファイルを扱う場合binmodeにしないと途中からデータがズレる | |
bmp_file.binmode | |
temp = bmp_file.read(2) # Check file type | |
if temp != 'BM' | |
puts 'Not BMP file' | |
exit |
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
CadsoftのEagleでは、ユーザープログラム(User Language Program,ULP)内で#requireディレクティブを使うことにより、ULPの動作するEagleのバージョンを制限することができます。 | |
EagleのバージョンごとにULPの動作を変えたいときなどにバージョン番号が必要となるため、取得する方法を載せておきます。 | |
定数EAGLE_VERSION、EAGLE_RELEASE、EAGLE_SIGNATUREを参照して文字列を作り、ダイアログボックスに表示します。 | |
Eagleが提供している組み込み定数の詳細はulpマニュアル(ulp640_en.pdf.pdf)の67ページ以降(Builtin Constantsの章)を参照してください。 |
NewerOlder