Antalya: Difference between revisions

From Antalya
Jump to: navigation, search
No edit summary
No edit summary
Line 25: Line 25:
   <syntaxhighlight lang="bash">
   <syntaxhighlight lang="bash">
#!/bin/bash
#!/bin/bash
for i in *.jpg
for i in *.jpg do
do
   echo $i
   echo $i
done
done

Revision as of 09:18, 14 November 2020

Antalya.jpg

Welcome to Antalya

This wiki is for experimenting with styles and elements of Mediawiki with the Tweeki style to be used at Integrated Systems Laboratory of ETH Zurich.

Tests

Tabs

How to process each file in a directory

#! /bin/tcsh
foreach i (*.jpg)
  echo $i
end
#!/bin/bash
for i in *.jpg do
  echo $i
done


Syntax Highlight

#! /usr/sepp/bin/perl -w 
# v0.2 - <kgf@ee.ethz.ch> - Mon Nov 30 16:57:53 CET 2009

use strict;

#usage ./create_pwl.pl 101010101111 > a.pwl

### PARAMETERS TO CHANGE 
my $RISE = 100e-12;

## READ INPUT 
my $bits= shift(@ARGV) or die "usage ./create_pwl.pl bitstream > file \n";
if ($bits !~ m/^[01.]+$/){ die "bitpattern <$bits> should only contain 1s or 0s and also dots\n"}
$bits=~s/\.//g;

##FIRST POINT IS 0
printf("%10e %4.2f\n",$T,$VLOW);

## DO WE HAVE A DELAY ?? 
if ($START gt $T){
  $T = $START;
  printf("%10e %4.2f\n",$T,$VLOW);

}

Accordion

Here will be pages on photography

Tips and tricks for Unix tools

Carousel


Grids

See cute otter
Otter.jpg

And some text here to explain stuff

Title 2
Manul.jpg

Redpanda.jpg It could be much more simpler


And some text here to explain stuff