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
{ | |
"attribution": "Maps © Stamen\nData © OpenStreetMap contributors", | |
"extension": ".png", | |
"format": "slippy", | |
"name": "Stamen Toner", | |
"source": "maps.stamen.com", | |
"url": "http://tile.stamen.com/toner/{z}/{x}/{y}.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
{ | |
"attribution": "© OpenStreetMap contributors\nhttp://www.openstreetmap.org/copyright", | |
"extension": ".png", | |
"format": "slippy", | |
"name": "Kelkkapisteet", | |
"source": "kelkkareitit.fi", | |
"type": "overlay", | |
"url": "http://tiles.kelkkareitit.fi/kelkkapoi/{z}/{x}/{y}.png", | |
"z": 30 | |
} |
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
{ | |
"attribution": "© OpenStreetMap contributors", | |
"extension": ".png", | |
"format": "slippy", | |
"name": "OpenPTMap", | |
"source": "openptmap.org", | |
"type": "overlay", | |
"url": "http://openptmap.org/tiles/{z}/{x}/{y}.png", | |
"z": 20 | |
} |
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/env python | |
import gtk | |
import pango | |
def on_text_view_expose_event(text_view, event): | |
text_buffer = text_view.get_buffer() | |
bounds = text_buffer.get_bounds() | |
text = text_buffer.get_text(*bounds) | |
nlines = text.count("\n") + 1 | |
layout = pango.Layout(text_view.get_pango_context()) | |
layout.set_markup("\n".join([str(x + 1) for x in range(nlines)])) |
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/env python | |
import aeidon | |
project = aeidon.Project() | |
project.open_main("test.srt") | |
for i in range(len(project.subtitles) - 1): | |
end = project.subtitles[i].end_seconds | |
next_start = project.subtitles[i+1].start_seconds | |
if end > next_start: | |
print (i + 1, | |
project.calc.seconds_to_time(end), |
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 pyotherside | |
import threading | |
import time | |
def run(): | |
while True: | |
pyotherside.send("test-errors") | |
time.sleep(3) | |
thread = threading.Thread(target=run) |
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
diff -rub gnome-do-0.95.3.orig/Do.Interface.Linux.AnimationBase/src/Do.Interface/Do.Interface.AnimationBase/BezelDrawingArea.cs gnome-do-0.95.3/Do.Interface.Linux.AnimationBase/src/Do.Interface/Do.Interface.AnimationBase/BezelDrawingArea.cs | |
--- gnome-do-0.95.3.orig/Do.Interface.Linux.AnimationBase/src/Do.Interface/Do.Interface.AnimationBase/BezelDrawingArea.cs 2013-12-28 05:51:22.827272000 +0200 | |
+++ gnome-do-0.95.3/Do.Interface.Linux.AnimationBase/src/Do.Interface/Do.Interface.AnimationBase/BezelDrawingArea.cs 2017-01-07 06:25:03.992928851 +0200 | |
@@ -182,7 +182,7 @@ | |
Gdk.Rectangle drawing_area; | |
Surface surface; | |
- double text_box_scale, window_fade = 1, window_scale=1; | |
+ double text_box_scale, window_fade = 1, window_scale=2; | |
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/env python3 | |
import aeidon, sys, time | |
if len(sys.argv) < 2: | |
print("Usage: {} SUBTITLE_FILE...".format(__file__)) | |
raise SystemExit(1) | |
for fname in sys.argv[1:]: | |
print("{}:".format(fname)) | |
project = aeidon.Project() | |
project.open_main(fname, "utf_8") | |
before = len(project.subtitles) |
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
{ | |
"attribution": "Peruskartta © Maanmittauslaitos", | |
"extension": ".png", | |
"format": "slippy", | |
"name": "Kapsi MML peruskartta @1x", | |
"scale": 0.5, | |
"smooth": true, | |
"source": "kartat.kapsi.fi", | |
"url": "http://tiles.kartat.kapsi.fi/peruskartta/{z}/{x}/{y}.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
Rectangle { | |
id: circle | |
color: "red" | |
opacity: 0.2 | |
radius: width/2 | |
z: 10000 | |
} | |
// onPositionChanged: |
OlderNewer