langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
4
Task/Hostname/NetRexx/hostname.netrexx
Normal file
4
Task/Hostname/NetRexx/hostname.netrexx
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
/* NetRexx */
|
||||
options replace format comments java crossref savelog symbols binary
|
||||
|
||||
say InetAddress.getLocalHost.getHostName
|
||||
1
Task/Hostname/NewLISP/hostname.newlisp
Normal file
1
Task/Hostname/NewLISP/hostname.newlisp
Normal file
|
|
@ -0,0 +1 @@
|
|||
(! "hostname")
|
||||
1
Task/Hostname/OCaml/hostname.ocaml
Normal file
1
Task/Hostname/OCaml/hostname.ocaml
Normal file
|
|
@ -0,0 +1 @@
|
|||
Unix.gethostname()
|
||||
9
Task/Hostname/Objeck/hostname.objeck
Normal file
9
Task/Hostname/Objeck/hostname.objeck
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
use Net;
|
||||
|
||||
bundle Default {
|
||||
class Hello {
|
||||
function : Main(args : String[]) ~ Nil {
|
||||
TCPSocket->HostName()->PrintLine();
|
||||
}
|
||||
}
|
||||
}
|
||||
1
Task/Hostname/Objective-C/hostname-1.m
Normal file
1
Task/Hostname/Objective-C/hostname-1.m
Normal file
|
|
@ -0,0 +1 @@
|
|||
NSLog(@"%@", [[NSProcessInfo processInfo] hostName]);
|
||||
1
Task/Hostname/Objective-C/hostname-2.m
Normal file
1
Task/Hostname/Objective-C/hostname-2.m
Normal file
|
|
@ -0,0 +1 @@
|
|||
2010-09-16 16:20:00.000 Playground[1319:a0f] sierra117.local // Hostname is sierra117.local.
|
||||
1
Task/Hostname/Octave/hostname.octave
Normal file
1
Task/Hostname/Octave/hostname.octave
Normal file
|
|
@ -0,0 +1 @@
|
|||
uname().nodename
|
||||
1
Task/Hostname/Oz/hostname.oz
Normal file
1
Task/Hostname/Oz/hostname.oz
Normal file
|
|
@ -0,0 +1 @@
|
|||
{System.showInfo {OS.getHostByName 'localhost'}.name}
|
||||
4
Task/Hostname/PL-SQL/hostname.sql
Normal file
4
Task/Hostname/PL-SQL/hostname.sql
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
SET serveroutput on
|
||||
BEGIN
|
||||
DBMS_OUTPUT.PUT_LINE(UTL_INADDR.GET_HOST_NAME);
|
||||
END;
|
||||
8
Task/Hostname/Pascal/hostname.pascal
Normal file
8
Task/Hostname/Pascal/hostname.pascal
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
Program HostName;
|
||||
|
||||
uses
|
||||
unix;
|
||||
|
||||
begin
|
||||
writeln('The name of this computer is: ', GetHostName);
|
||||
end.
|
||||
1
Task/Hostname/Perl-6/hostname.pl6
Normal file
1
Task/Hostname/Perl-6/hostname.pl6
Normal file
|
|
@ -0,0 +1 @@
|
|||
my $host = qx[hostname];
|
||||
5
Task/Hostname/Pike/hostname.pike
Normal file
5
Task/Hostname/Pike/hostname.pike
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import System;
|
||||
|
||||
int main(){
|
||||
write(gethostname() + "\n");
|
||||
}
|
||||
1
Task/Hostname/Pop11/hostname.pop11
Normal file
1
Task/Hostname/Pop11/hostname.pop11
Normal file
|
|
@ -0,0 +1 @@
|
|||
lvars host = sys_host_name();
|
||||
1
Task/Hostname/PowerBASIC/hostname-1.powerbasic
Normal file
1
Task/Hostname/PowerBASIC/hostname-1.powerbasic
Normal file
|
|
@ -0,0 +1 @@
|
|||
HOST NAME TO hostname$
|
||||
1
Task/Hostname/PowerBASIC/hostname-2.powerbasic
Normal file
1
Task/Hostname/PowerBASIC/hostname-2.powerbasic
Normal file
|
|
@ -0,0 +1 @@
|
|||
HOST NAME ipAddress& TO hostname$
|
||||
1
Task/Hostname/PowerShell/hostname-1.psh
Normal file
1
Task/Hostname/PowerShell/hostname-1.psh
Normal file
|
|
@ -0,0 +1 @@
|
|||
$Env:COMPUTERNAME
|
||||
1
Task/Hostname/PowerShell/hostname-2.psh
Normal file
1
Task/Hostname/PowerShell/hostname-2.psh
Normal file
|
|
@ -0,0 +1 @@
|
|||
[Net.Dns]::GetHostName()
|
||||
2
Task/Hostname/PureBasic/hostname.purebasic
Normal file
2
Task/Hostname/PureBasic/hostname.purebasic
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
InitNetwork()
|
||||
answer$=Hostname()
|
||||
1
Task/Hostname/REBOL/hostname.rebol
Normal file
1
Task/Hostname/REBOL/hostname.rebol
Normal file
|
|
@ -0,0 +1 @@
|
|||
print system/network/host
|
||||
3
Task/Hostname/Run-BASIC/hostname.run
Normal file
3
Task/Hostname/Run-BASIC/hostname.run
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
print Platform$ ' OS where Run BASIC is being hosted
|
||||
print UserInfo$ ' Information about the user's web browser
|
||||
print UserAddress$ ' IP address of the user
|
||||
2
Task/Hostname/SNOBOL4/hostname.sno
Normal file
2
Task/Hostname/SNOBOL4/hostname.sno
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
output = host(4,"HOSTNAME")
|
||||
end
|
||||
7
Task/Hostname/Seed7/hostname.seed7
Normal file
7
Task/Hostname/Seed7/hostname.seed7
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
$ include "seed7_05.s7i";
|
||||
include "socket.s7i";
|
||||
|
||||
const proc: main is func
|
||||
begin
|
||||
writeln(getHostname);
|
||||
end func;
|
||||
1
Task/Hostname/Slate/hostname.slate
Normal file
1
Task/Hostname/Slate/hostname.slate
Normal file
|
|
@ -0,0 +1 @@
|
|||
Platform current nodeName
|
||||
1
Task/Hostname/Standard-ML/hostname.ml
Normal file
1
Task/Hostname/Standard-ML/hostname.ml
Normal file
|
|
@ -0,0 +1 @@
|
|||
NetHostDB.getHostName ()
|
||||
2
Task/Hostname/TUSCRIPT/hostname.tuscript
Normal file
2
Task/Hostname/TUSCRIPT/hostname.tuscript
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$$ MODE TUSCRIPT
|
||||
host=HOST ()
|
||||
4
Task/Hostname/Toka/hostname.toka
Normal file
4
Task/Hostname/Toka/hostname.toka
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
2 import gethostname
|
||||
1024 chars is-array foo
|
||||
foo 1024 gethostname
|
||||
foo type
|
||||
1
Task/Hostname/UNIX-Shell/hostname-1.sh
Normal file
1
Task/Hostname/UNIX-Shell/hostname-1.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
hostname
|
||||
1
Task/Hostname/UNIX-Shell/hostname-2.sh
Normal file
1
Task/Hostname/UNIX-Shell/hostname-2.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
uname -n
|
||||
3
Task/Hostname/Ursala/hostname-1.ursala
Normal file
3
Task/Hostname/Ursala/hostname-1.ursala
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#import cli
|
||||
|
||||
hostname = ~&hmh+ (ask bash)/<>+ <'hostname'>!
|
||||
3
Task/Hostname/Ursala/hostname-2.ursala
Normal file
3
Task/Hostname/Ursala/hostname-2.ursala
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#import flo
|
||||
|
||||
creative_accounting = (hostname== 'kremvax')?(sqrt,sqr)
|
||||
Loading…
Add table
Add a link
Reference in a new issue