Skip to content

Instantly share code, notes, and snippets.

View staroselskii's full-sized avatar

Georgii Staroselskii staroselskii

  • Saint-Petersburg
View GitHub Profile
#!/bin/ksh
LOGFILE=script.log
function process_input {
local ret=$1
if [[ "$ret" == "~"* ]]; then
echo 1>&2 "Введите 'y' если под ~ подразумевается $HOME"
read confirm
fi
#!/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"
}
#!/usr/bin/ksh
if [ ! $# -eq 1 ]
then
echo "Wrong input"
exit 1
fi
USER="$1"
BIN=lab4
CC=gcc
OBJ=lab4.o
all: $(BIN)
$(BIN): $(OBJ)
%.o: %.c
#include <iostream>
#include <algorithm>
#include <vector>
int main() {
unsigned int entryCount;
cin >> entryCount;
if (entryCount == 0)
#include <iostream>
#include <algorithm>
#include <vector>
int main() {
unsigned int entryCount;
cin >> entryCount;
if (entryCount == 0)
<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>
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))
$(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");
});
});
@staroselskii
staroselskii / arduperf-1.log
Last active August 29, 2015 14:14
First PERF log. All libraries are on.
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