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
sql stavki v bazi | |
-stored procedures -add new procedure | |
alter procedure dbo.blogvrnil(@A int, @B nvarchar(255), @c datetime) | |
AS | |
begin | |
insert into blog (naziv,opis,id) values (@A, @B,@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 <cstdlib> | |
#include <ctime> | |
using namespace std; | |
int stElementov = 0; | |
int vrednosti = 0; | |
void napolniPolje(int polje[], int stElementov, int vrednosti){ |
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
//php klic servisa | |
$client = new SoapClient(null, array('location' => "http://localhost/vaja2/service.php",'uri' => "http://test-uri/")); | |
$output = $client->getSeznam($niz); | |
echo $output; |
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
SqlCommand command = new SqlCommand("isci", con); | |
command.CommandType = CommandType.StoredProcedure; | |
command.Parameters.Add("@iskalnivzorec", SqlDbType.NVarChar); | |
command.Parameters["@iskalnivzorec"].Value = iskalni_vzorec; |
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
//klic .net servica | |
$client = new SoapClient("http://localhost:54149/Service.asmx?wsdl"); | |
$args=new stdClass(); | |
$args->iskalni_vzorec=$niz; | |
$result = $client->getSeznamDatotek($args); | |
echo $result->getSeznamDatotekResult; |
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
<?php | |
function Sestej($a, $b){ | |
return $a+$b; | |
} | |
$server = new SoapServer(null,array('uri' => "urn://tyler/res")); | |
$server->addFunction('Sestej'); | |
$server->handle(); |
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
/* execute multi query */ | |
if (mysqli_multi_query($link, $query)) { | |
do { | |
/* store first result set */ | |
if ($result = mysqli_store_result($link)) { | |
while ($row = mysqli_fetch_row($result)) { | |
printf("%s\n", $row[0]); | |
} | |
mysqli_free_result($result); | |
} |
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/bash | |
function procentiOcena(){ | |
if [[ $1 < 100 && $1 > 90 ]]; then | |
echo 10 | |
elif [[ $1 < 90 && $1 > 80 ]]; then | |
echo 9 | |
elif [[ $1 < 80 && $1 > 70 ]]; then | |
echo 8 | |
elif [[ $1 < 70 && $1 > 60 ]]; then |
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/bash | |
mapa=$(pwd) #trenuten direktori | |
for i in $mapa/* #za vsak file v tem direktoriju | |
do | |
if [ -f $i ] #preverimo če je navadn file (da ni mapa) | |
then | |
informacija=$(lsof $i) #z lsof preverimo kateri proces uporablja to datoteko | |
if [[ -n $informacija ]]; then #če je -n (not null mislim da...) potem vidimo da je v izvajanju | |
echo "Datoteka je v izvajanju: "$i #izpišemo | |
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
bits 32 | |
global main | |
extern printf | |
section .bss | |
manjse resb 100 | |
len resb 1 | |
section .data | |
izpis db "Vpiši besedo: ", 0 |
OlderNewer