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
class GstPlayer(object): | |
sub_area = 0 | |
middle_area = 0 | |
nAccumFrames = 0 | |
def __init__(self, videowidget): | |
self.playing = False | |
self.vw = videowidget | |
self.vw.player = self |
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 ij.IJ; | |
import ij.ImagePlus; | |
import ij.ImageStack; | |
import ij.plugin.filter.PlugInFilter; | |
import ij.process.ImageProcessor; | |
public class JoshD_Deinterlace implements PlugInFilter { | |
protected ImagePlus image; |
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 sys | |
# needed for casting PyCObject to void pointer | |
from ctypes import pythonapi, c_void_p, py_object | |
from PySide.QtCore import * | |
from PySide.QtGui import * | |
import gobject | |
import pygst |
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 os | |
import atexit | |
import sys | |
import subprocess | |
gisbase = os.environ['GISBASE'] = '/usr/lib/grass64' | |
gisdbase = os.path.join(os.environ['HOME'], 'grassdata') | |
location = 'fairfax' |
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 | |
# Update: A newer version can be found in the OSM SVN: | |
# http://trac.openstreetmap.org/browser/applications/utils/osm-extract/polygons/ogr2poly.py | |
# This converts OGR supported files (Shapefile, GPX, etc.) to the polygon | |
# filter file format [1] supported by Osmosis and other tools. It also | |
# includes buffering and simplifying. This allows point or line features | |
# to be used when creating POLY files, but in this case buffering must | |
# be used. |
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
// ==UserScript== | |
// @match https://ataaps.csd.disa.mil/* | |
// @description Allows arrow keys to move between cells on the ATAAPS labor screen, shows leave information when hovering over link, and other enhancements. | |
// @name ATAAPS Interface Enhancements | |
// ==/UserScript== | |
function addJQuery(callback) { | |
var script = document.createElement("script"); | |
script.setAttribute("src", "//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"); | |
script.addEventListener('load', function() { |
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
# MapProxy configuration file for caching Virginia Base Mapping Program (VBMP) orthoimagery to be used in OpenStreetMap editors | |
# Tile service (compatible with OSM/etc.) | |
# first tile: http://localhost:8080/tiles/osm/webmercator/0/0/0.png | |
services: | |
demo: | |
tms: | |
use_grid_names: true | |
# origin for /tiles service | |
origin: 'nw' |
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 sys | |
import time | |
def _prepend_env_path(name, value): | |
os.environ[name] = os.pathsep.join(value + | |
os.environ.get(name, "").split(os.pathsep)) | |
CONFIGURED_GSTREAMER_PATH = r'C:\gstreamer\1.17\x86_64' | |
_prepend_env_path("PATH", [os.path.join(CONFIGURED_GSTREAMER_PATH, 'bin')]) | |
sys.path.insert(0, os.path.join(CONFIGURED_GSTREAMER_PATH, 'lib', 'python3.7', 'site-packages')) |