Поиск по:hea-www.harvard.edu -
Поискать по всем серверам
На этой странице приведены все страницы сервера hea-www.harvard.edu ,которые мы индексируем. Показаны документы 6961 - 6980 из 7508.
Упорядочить по:
URL
|
дате изменения
6961. http://hea-www.harvard.edu/~dburke/perl-slang/examples/bind_rename
use Inline 'SLang' => Config => BIND_NS => [ "Global", "foo=bar" ]; use Inline 'SLang' => <<'EOS1'; define fn_in_global(x) { "in global"; } implements( "foo" ); define fn_in_foo(x) { "in foo"; } EOS1 printf "I am %s\n", bar::fn_in_foo("dummyval"); printf "I am %s\n", fn_in_global("dummyval");
[
Сохраненная копия
]
Ссылки http://hea-www.harvard.edu/~dburke/perl-slang/examples/bind_rename -- 1.3 Кб -- 09.01.2005
Похожие документы
Похожие документы
6962. http://hea-www.harvard.edu/~dburke/perl-slang/examples/bind_many
use Inline 'SLang' => Config => BIND_NS => [ "Global", "foo" ]; use Inline 'SLang' => <<'EOS1'; define fn_in_global(x) { "in global"; } implements( "foo" ); define fn_in_foo(x) { "in foo"; } EOS1 printf "I am %s\n", foo::fn_in_foo("dummyval"); printf "I am %s\n", fn_in_global("dummyval");
[
Сохраненная копия
]
Ссылки http://hea-www.harvard.edu/~dburke/perl-slang/examples/bind_many -- 1.3 Кб -- 09.01.2005
Похожие документы
Похожие документы
6963. http://hea-www.harvard.edu/~dburke/perl-slang/examples/bind_intrin_main
use Inline 'SLang' => Config => BIND_SLFUNCS => ["typeof"]; use Inline 'SLang' => "define get_typeof(x) { typeof(x); }"; # both print # The S-Lang type of 'foo' is String_Type printf "The S-Lang type of 'foo' is %s\n", get_typeof("foo"); printf "The S-Lang type of 'foo' is %s\n", typeof("foo");
[
Сохраненная копия
]
Ссылки http://hea-www.harvard.edu/~dburke/perl-slang/examples/bind_intrin_main -- 1.3 Кб -- 09.01.2005
Похожие документы
Похожие документы
6964. http://hea-www.harvard.edu/~dburke/perl-slang/examples/bind_intrin_foo
use Inline 'SLang' => Config => BIND_NS => "Global=foo", BIND_SLFUNCS => ["typeof"]; use Inline 'SLang' => " "; # This prints # The S-Lang type of 'foo' is String_Type printf "The S-Lang type of 'foo' is %s\n", foo::typeof("foo");
[
Сохраненная копия
]
Ссылки http://hea-www.harvard.edu/~dburke/perl-slang/examples/bind_intrin_foo -- 1.2 Кб -- 09.01.2005
Похожие документы
Похожие документы
6965. http://hea-www.harvard.edu/~dburke/perl-slang/examples/bind_foo
use Inline 'SLang' => Config => BIND_NS => ["foo"]; use Inline 'SLang' => <<'EOS1'; define fn_in_global(x) { "in global"; } implements( "foo" ); define fn_in_foo(x) { "in foo"; } EOS1 printf "I am %s\n", foo::fn_in_foo("dummyval"); # the following will not work since fn_in_global() is in the # Global namespace which was not listed in the BIND_NS option # printf "I am %s\n", fn_in_global("dummyval");
[
Сохраненная копия
]
Ссылки http://hea-www.harvard.edu/~dburke/perl-slang/examples/bind_foo -- 1.4 Кб -- 09.01.2005
Похожие документы
Похожие документы
6966. http://hea-www.harvard.edu/~dburke/perl-slang/examples/bind_all
use Inline 'SLang' => Config => BIND_NS => "All"; use Inline 'SLang' => <<'EOS1'; define fn_in_global(x) { "in global"; } implements( "foo" ); define fn_in_foo(x) { "in foo"; } EOS1 printf "I am %s\n", foo::fn_in_foo("dummyval"); printf "I am %s\n", fn_in_global("dummyval");
[
Сохраненная копия
]
Ссылки http://hea-www.harvard.edu/~dburke/perl-slang/examples/bind_all -- 1.3 Кб -- 09.01.2005
Похожие документы
Похожие документы
6967. http://hea-www.harvard.edu/~dburke/perl-slang/examples/assoc
... join( "", map { "\t$_ => $$href{$_}\n"; } keys %$href ); __END__ __SLang__ define print_in_slang (assoc) { message( "SLang thinks you sent it an assoc. array with:" ); foreach ( assoc ) using ( "keys", "values" ) { variable k, v; ( k, v ) = (); vmessage( " key %s = %S", k, v ); } } define get_from_slang() { variable x = Assoc_Type [String_Type]; x["a key"] = "a value"; x["another key"] = "another value"; return x; } ...
[
Сохраненная копия
]
Ссылки http://hea-www.harvard.edu/~dburke/perl-slang/examples/assoc -- 1.6 Кб -- 09.01.2005
Похожие документы
Похожие документы
6968. http://hea-www.harvard.edu/~dburke/perl-slang/examples/arrays
use Inline 'SLang'; # you can send arrays to S-Lang print_in_slang( [ 1, 2, 4 ] ); # and get them back from S-Lang $aref = get_from_slang(); print "The array contains: " . ... n"; __END__ __SLang__ define print_in_slang (arr) { variable adims, ndim, atype; ( adims, ndim, atype ) = array_info(arr); vmessage( "Array has type=%S with %d dims", atype, ndim ); foreach ( arr ) { variable val = (); vmessage( " Value = %s", string(val) ); } } define get_from_slang() { return ["a string","another one","3"]; } ...
[
Сохраненная копия
]
Ссылки http://hea-www.harvard.edu/~dburke/perl-slang/examples/arrays -- 1.5 Кб -- 09.01.2005
Похожие документы
Похожие документы
6969. http://hea-www.harvard.edu/~dburke/perl-slang/examples/array_help
use Inline 'SLang' => Config => EXPORT => [ 'sl_array', 'Integer_Type' ]; use Inline 'SLang'; my $aref = [ 1, 3, 2 ]; foo( $aref ); foo( sl_array( $aref, "Int_Type" ) ); foo( sl_array( $aref, [3] ) ); foo( sl_array( $aref, [3], Integer_Type() ) ); __END__ __SLang__ define foo(x) { vmessage("Array has type: %S", _typeof(x) ); }
[
Сохраненная копия
]
Ссылки http://hea-www.harvard.edu/~dburke/perl-slang/examples/array_help -- 1.3 Кб -- 09.01.2005
Похожие документы
Похожие документы
6970. http://hea-www.harvard.edu/~dburke/perl-slang/examples/array_conversion
use strict; use Inline 'SLang' => Config => EXPORT => [ 'sl_array2perl' ]; use Inline 'SLang'; # use array references for all S-Lang arrays sl_array2perl(0); my $a0 = get_array(); print "Array returned as an " . ref($a0) . n"; print " dim size = " . ... n"; my ( $dims, $ndim, $atype ) = $a1->array_info(); print " dim size = $$dims[0]\n"; print " type = $atype\n"; # use a piddle (assumes Inline::SLang::sl_have_pdl() == 1) sl_array2perl(2); my $a2 = get_array(); print "Array returned as an " . ...
[
Сохраненная копия
]
Ссылки http://hea-www.harvard.edu/~dburke/perl-slang/examples/array_conversion -- 1.8 Кб -- 09.01.2005
Похожие документы
Похожие документы
6971. http://hea-www.harvard.edu/~dburke/perl-slang/region_example
Since no code is specified on the 'use Inline' line we look for # the __SLang__ block at the end of the file # use strict; use Inline 'SLang'; # regParse() in S-Lang returns a S-Lang variable with a type of Reg_Type. ... object\n"; print "and whose area is " . ... n"; does_slang_agree($reg); __END__ __SLang__ % Anything after the __SLang__ marker is S-Lang code % load in the region routines require("region"); % and define a somewhat pointless routine define does_slang_agree(in) { if ( typeof(in) != ...
[
Сохраненная копия
]
Ссылки http://hea-www.harvard.edu/~dburke/perl-slang/region_example -- 1.9 Кб -- 09.01.2005
Похожие документы
Похожие документы
6972. http://hea-www.harvard.edu/~dburke/perl-slang/caldb_example
use Inline 'SLang' = 'require( caldb );'; # Set up the CALDB query my $ infile = / data /dburke2/ data /Chandra/CIAO/code/perl-slang/evt2_3.fits ; my $ cal = calCreateInfo ($ infile ); calSetExpression( $ cal , cti_corr.eq.yes ); calSetData( $ cal , FEF_PHA ); # See what's in the $ cal structure print The contents of the $ cal object are:\n ; calPrintInfo($ ...
[
Сохраненная копия
]
Ссылки http://hea-www.harvard.edu/~dburke/perl-slang/caldb_example -- 1.5 Кб -- 09.01.2005
Похожие документы
Похожие документы
6973. http://hea-www.harvard.edu/~bradw/cv/papers/HXDSwindow.pdf
REVIEW OF SCIENTIFIC INSTRUMENTS VOLUME 75, NUMBER 10 OCTOBER 2004 High-resolution crystal spectrometer for the 10 ґ 60 е extreme ultraviolet region P. Beiersdorfer Lawrence Livermore National Laboratory, Livermore, California 94550 G. V. Browna ) University of Maryland, College Park, Maryland ... -Smithsonian Center for Astrophysics, Cambridge, Massachusetts 02138 (Presented on 20 April 2004; published 6 October 2004) A vacuum crystal spectrometer with nominal ... Instrum., ...
[
Текст
]
Ссылки http://hea-www.harvard.edu/~bradw/cv/papers/HXDSwindow.pdf -- 110.6 Кб -- 03.12.2004
Похожие документы
Похожие документы
6974. http://hea-www.harvard.edu/~fine/POV/src/kohler_faucet.demos.pov
default { finish { ambient 0.4 } } camera { up 0, 1, 0 right 1, 0, 0 location 15,5,-23 look_at 2.5,4,0 angle 20 } #include colors.inc # declare whitepaint = texture { pigment { color rgb 1,1,1 } finish { diffuse 0.8 specular 0.2 } } # declare redpaint = texture { pigment { color rgb 1,0,0 } finish { diffuse 0.8 specular 0.2 } } # declare greenpaint = ...
[
Сохраненная копия
]
Ссылки http://hea-www.harvard.edu/~fine/POV/src/kohler_faucet.demos.pov -- 3.2 Кб -- 01.12.2004
Похожие документы
Похожие документы
6975. http://hea-www.harvard.edu/~fine/POV/src/hand_shower.demos.pov
default { finish { ambient 0.4 } } camera { up 0, 1, 0 right 1, 0, 0 location -26,9, 100 look_at 0,8,0 angle 20 //location - 100 ,9,10 //look_at 0,20.6,3 //angle 4 } #include colors.inc # declare whitepaint = texture { pigment { color rgb 1,1,1 } finish { diffuse 0.8 specular 0.2 } } # declare bluepaint = texture { pigment { color rgb 0,0,1 } ...
[
Сохраненная копия
]
Ссылки http://hea-www.harvard.edu/~fine/POV/src/hand_shower.demos.pov -- 3.3 Кб -- 01.12.2004
Похожие документы
Похожие документы
6976. http://hea-www.harvard.edu/~fine/POV/src/hotel_rack.demos.pov
default { finish { ambient 0.4 } } camera { up 0, 1, 0 right 1, 0, 0 location -6,13,84 look_at 13,0,0 angle 20 } #include colors.inc # declare whitepaint = texture { pigment { color rgb 1,1,1 } finish { diffuse 0.8 specular 0.2 } } # declare redpaint = texture { pigment { color rgb 1,0,0 } finish { diffuse 0.8 specular 0.2 } } # declare ...
[
Сохраненная копия
]
Ссылки http://hea-www.harvard.edu/~fine/POV/src/hotel_rack.demos.pov -- 3.1 Кб -- 01.12.2004
Похожие документы
Похожие документы
6977. http://hea-www.harvard.edu/~fine/POV/src/tub_handrail.demos.pov
default { finish { ambient 0.4 } } camera { up 0, 1, 0 right 1, 0, 0 location -6,19,75 look_at 12,0,0 angle 20 } #include colors.inc # declare whitepaint = texture { pigment { color rgb 1,1,1 } finish { diffuse 0.8 specular 0.2 } } # declare redpaint = texture { pigment { color rgb 1,0,0 } finish { diffuse 0.8 specular 0.2 } } # declare ...
[
Сохраненная копия
]
Ссылки http://hea-www.harvard.edu/~fine/POV/src/tub_handrail.demos.pov -- 3.1 Кб -- 01.12.2004
Похожие документы
Похожие документы
6978. http://hea-www.harvard.edu/~fine/POV/src/dual_towel_rod.demos.pov
default { finish { ambient 0.4 } } camera { up 0, 1, 0 right 1, 0, 0 location -16,13,70 look_at 12,0,0 angle 20 } #include colors.inc # declare whitepaint = texture { pigment { color rgb 1,1,1 } finish { diffuse 0.8 specular 0.2 } } # declare redpaint = texture { pigment { color rgb 1,0,0 } finish { diffuse 0.8 specular 0.2 } } # declare ...
[
Сохраненная копия
]
Ссылки http://hea-www.harvard.edu/~fine/POV/src/dual_towel_rod.demos.pov -- 3.2 Кб -- 01.12.2004
Похожие документы
Похожие документы
6979. http://hea-www.harvard.edu/~fine/POV/src/tub_filler.demos.pov
default { finish { ambient 0.4 } } camera { up 0, 1, 0 right 1, 0, 0 location -10,-4,20 look_at 1.3,0,0 angle 15 } #include colors.inc # declare whitepaint = texture { pigment { color rgb 1,1,1 } finish { diffuse 0.8 specular 0.2 } } # declare redpaint = texture { pigment { color rgb 1,0,0 } finish { diffuse 0.8 specular 0.2 } } # declare ...
[
Сохраненная копия
]
Ссылки http://hea-www.harvard.edu/~fine/POV/src/tub_filler.demos.pov -- 3.1 Кб -- 01.12.2004
Похожие документы
Похожие документы
6980. http://hea-www.harvard.edu/~fine/POV/src/shower_curtain_rod.demos.pov
default { finish { ambient 0.4 } } camera { up 0, 1, 0 right 1, 0, 0 location -10,-4,20 look_at 1,2.3,0 angle 20 } #include colors.inc # declare whitepaint = texture { pigment { color rgb 1,1,1 } finish { diffuse 0.8 specular 0.2 } } # declare redpaint = texture { pigment { color rgb 1,0,0 } finish { diffuse 0.8 specular 0.2 } } # declare ...
[
Сохраненная копия
]
Ссылки http://hea-www.harvard.edu/~fine/POV/src/shower_curtain_rod.demos.pov -- 3.2 Кб -- 01.12.2004
Похожие документы
Похожие документы