70%
05.03.2013
list from an existing one. The line
squares = (x*x for x in [1..10] by 2)
iterates through numbers 1 to 10 in steps of 2 (by 2
), squares (x*x
) each of the numbers 1, 3, 5, 7, 9, and stores
70%
21.08.2012
transaction check
---> Package fontconfig.i686 0:2.8.0-3.el6 will be installed
---> Package freetype.i686 0:2.3.11-6.el6_2.9 will be installed
---> Package gamin.i686 0:0.1.10-9.el6 will be installed
70%
30.01.2020
of code.
Listing 1
Time to Execute
import time
start_time = time.time()
# Code to check follows
a, b = 1,2
c = a + b
# Code to check ends
end_time = time.time()
time_taken = (end_time- start
70%
08.06.2021
Py code, but just in case you have not, this quick example creates an “empty” 2D array of size nx
by ny
:
import numpy as np
nx = 10
ny = 10
a = np.empty((nx,ny))
type(a)
Array a
is of data type numpy
70%
23.07.2012
.13.134.52):
Not shown: 994 filtered ports
PORT STATE SERVICE VERSION
22/tcp open ssh OpenSSH 4.3 (protocol 2.0)
25/tcp closed smtp
53/tcp open domain ISC BIND 9.3
70%
02.08.2022
.
The primary changes made to the benchmarks of the latest version 3.4.2 of the NPB are:
added class F to the existing S, W, A, B, C, D, E
added dynamic memory allocation
added MPI and Open
69%
10.04.2015
.7 Python 2.7 web
15 python-3.3 Python 3.3 web
16 ruby-1.8 Ruby 1.8 web
17 ruby-1.9
69%
20.10.2016
), has to be specified. Here is a simple example of the declaration:
INTEGER, TARGET :: a(3), b(6), c(9)
INTEGER, DIMENSION(:), POINTER :: pt2
Another quick example of multidimension arrays
69%
02.10.2012
addresses to connect /etc/hosts.allow
, the file would simply look like this:
sshd: 10.10.10.10, 1.2.3.4, 21.21.21.21
TCP Wrappers works nicely, even if you change the standard SSH port (it’s usually TCP
69%
06.10.2019
DC1N2:
38 image: cassandra:3.10
39 command: bash -c 'if [ -z "$$(ls -A /var/lib/cassandra/)" ] ; then sleep 60; fi && /docker-entrypoint.sh cassandra -f'
40 networks:
41