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
while(checkDate.weekday()==5 or checkDate.weekday()==6 or checkDate in self.holidays): | |
checkDate=checkDate+datetime.timedelta(days=1) | |
fuse=fuse+1 | |
if(fuse>10): | |
self.wfile.write("Error, fuse broken") | |
return |
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
public class Ham { | |
static int[][] matrix = null; | |
static int dist = 2; | |
public static void main(String[] args) { | |
String sentence = "accbaccbcacadd"; | |
String pattern = "acbc"; | |
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
''' | |
Created on 9.11.2009 | |
@author: meskod | |
''' | |
def dashToArray(interval): | |
array=[] | |
if("-" in interval): | |
fromtill = interval.split("-") |
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
Building JAVA sources in /data/1273_6, group 6. | |
Build succeeded. | |
------------------------------------------------------------------------------- | |
Evaluating data instance 'example01', time limit: 3 sec., memory limit: 16384 kB | |
Description: 'Patologicky pripad (zdvojena pravidelna linearni sekvence)' | |
Finished, system time: 0.010 sec, user time: 0.070 sec. | |
Result on 'example01': CORRECT SOLUTION. | |
------------------------------------------------------------------------------- | |
Evaluating data instance 'example02', time limit: 3 sec., memory limit: 16384 kB |
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
Vazeny pane, | |
vysledky Vaseho vstupniho testu PAL naznacuji, ze Vase programovaci schopnosti nejsou | |
pravdepodobne na takove urovni, ktera umoznuje zdarne absolvovani tohoto predmetu. | |
Navrhuji Vam, abyste zvazil, zda samostatne programovani uloh PAL nebude nad Vase sily. | |
Pripominam, ze odevzdavane ulohy vyhodnocuje automat, jehoz tolerance vuci nepresnostem v kodu | |
je nulova, cimz se VELMI lisi od nas cvicicich, kteri se snazime mnohe chyby prehlizet, | |
jak jsme to ostatne delali i ve vstupnim testu. |
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
$list = get-childitem . | |
foreach ($file in $list){ | |
echo $file.lastwritetime.tostring("yyyy-MM-dd") | |
Add-Content -Path $file.lastwritetime.tostring("yyyy-MM-dd") -Value (get-content $file) | |
} | |
$big = get-item 2009-08* | sort-object -property name | |
$total = 0; | |
foreach ($file in $big){ | |
$count = [regex]::Matches([IO.File]::ReadAllText($file), '0768T','IgnoreCase').count; |
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
import ftplib | |
import sys | |
import os | |
import re | |
ftpServer = '10.88.160.83' | |
ftpUser = 'xxx' | |
ftpPass = 'xxx' | |
def reportThis(filename, filecontent, ftppath="/"): |
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
import ftplib | |
import sys | |
import os | |
ftpServer = '10.88. ' | |
ftpUser = ' ' | |
ftpPass = ' ' | |
#ftpPath = 'FileFlowStatus/' | |
ftpPath = '/' |
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
import ftplib | |
import sys | |
import os | |
ftpServer = 'xxx' | |
ftpUser = 'xx' | |
ftpPass = 'xx' | |
#ftpPath = 'FileFlowStatus/' | |
ftpPath = '/' |
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
import os | |
import time | |
import datetime | |
import fnmatch | |
monitoringDir = "c:\\dizzi\\prj\\fix\\logs\\" | |
lasttime=0 | |
lastname="" | |
checktime=5 |