This file contains 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
#!/bin/ksh | |
LOGFILE=script.log | |
function process_input { | |
local ret=$1 | |
if [[ "$ret" == "~"* ]]; then | |
echo 1>&2 "Введите 'y' если под ~ подразумевается $HOME" | |
read confirm | |
fi |
This file contains 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/ksh | |
IFS="`printf ''`" | |
USAGE="usage: symlink.sh <file>" | |
get_metadata() { | |
perl -se 'use File::stat; $file=lstat($filename); if (defined $file) { print $file->ctime . " " . $file->ino . "\n"; } ' -- -filename="$1" | |
} | |
readlink() { | |
perl -se 'use File::Spec; print File::Spec->rel2abs( readlink($file) )' -- -file="$1" | |
} |
This file contains 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/ksh | |
if [ ! $# -eq 1 ] | |
then | |
echo "Wrong input" | |
exit 1 | |
fi | |
USER="$1" |
This file contains 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
BIN=lab4 | |
CC=gcc | |
OBJ=lab4.o | |
all: $(BIN) | |
$(BIN): $(OBJ) | |
%.o: %.c |
This file contains 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
#include <iostream> | |
#include <algorithm> | |
#include <vector> | |
int main() { | |
unsigned int entryCount; | |
cin >> entryCount; | |
if (entryCount == 0) |
This file contains 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
#include <iostream> | |
#include <algorithm> | |
#include <vector> | |
int main() { | |
unsigned int entryCount; | |
cin >> entryCount; | |
if (entryCount == 0) |
This file contains 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
<div> | |
<ui:insert name="X"> | |
<p:inputText id="xIT" value="#{Point.x}" required="true" converterMessage="Coordinate X is not double in range [-3..3]" validator="XValidator"> | |
<span>X: </span> | |
<f:ajax event="blur" render="xMessage"/> | |
<f:ajax event="blur" render="xMessages"/> | |
</p:inputText> | |
<h:message id="xMessage" for="xIT"/> | |
<h:messages id="xMessages" for="xIT"/> | |
</ui:insert> |
This file contains 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
TU5 TABLE M1,0,20,25; | |
FACILITY_1 STORAGE 1; | |
FACILITY_2 STORAGE 1; | |
GENERATE (Exponential(1,0,2)) | |
TRANSFER .5,,FACILITY_2_IN | |
SEIZE FACILITY_1 | |
ADVANCE (Exponential(1,0,10)) |
This file contains 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
$(document).ready(function(){ | |
$('.menuitem-pic').hover(function() { | |
picname = $(this).attr('src'); | |
picname = picname.substring(0, picname.length - 4); | |
$(this).attr('src', picname + "_active.png"); | |
}, | |
function() { | |
$(this).attr('src', picname + ".png"); | |
}); | |
}); |
This file contains 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
PERF: 79/1000 15008 | |
PERF: 76/1000 22540 | |
PERF: 81/1000 41960 | |
PERF: 71/1001 14192 | |
PERF: 89/1000 15554 | |
PERF: 84/1000 25123 | |
PERF: 75/1000 32038 | |
PERF: 78/1000 23069 | |
PERF: 91/1000 21276 | |
PERF: 78/1000 15087 |
OlderNewer