summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHorus32014-12-01 22:12:50 +0100
committerHorus32014-12-01 22:12:50 +0100
commit5238c8e35b7f84cbada81214151f61921d41a8ba (patch)
treed83695a8b93500b78ae5e8d8489bc314a7392819
parent21e75ab969099baf43ccb275fa8b7307f1389c62 (diff)
downloaddotfiles-5238c8e35b7f84cbada81214151f61921d41a8ba.tar.gz
Fixed time stamp.
-rwxr-xr-xbin/quer.py10
-rw-r--r--php/franzi.php2
2 files changed, 10 insertions, 2 deletions
diff --git a/bin/quer.py b/bin/quer.py
index 3e37276..5fe0dd0 100755
--- a/bin/quer.py
+++ b/bin/quer.py
@@ -3,10 +3,18 @@
# echo "Das ist ein String" | ./query.py
import fileinput
+import sys
quer = 0
+args = sys.argv
-for line in fileinput.input():
+if len(args) == 0:
+ inputs = sys.argv
+else:
+ inputs = fileinput.input()
+
+#for line in fileinput.input():
+for line in inputs:
l = list(line)
for char in l:
quer = quer+ord(char)
diff --git a/php/franzi.php b/php/franzi.php
index 72ea3eb..fb95c2d 100644
--- a/php/franzi.php
+++ b/php/franzi.php
@@ -1,6 +1,6 @@
<?php
-$time=1414933200-3600;
+$time=1414929600;
$now=time();