Skip to content

Instantly share code, notes, and snippets.

@klauer
klauer / issue_collector.html
Created January 28, 2021 01:31 — forked from kevinvalk/issue_collector.html
Can be used to integrate JIRA issue collector as a iframe form in a page where javascript is not allowed. Call like https://cdn.rawgit.com/kevinvalk/ae09e21a522c378b2ceb419cf09a36a7/raw/a57cb1cb788fa6c141893dd1fdcf185d541c22af/issue_collector.html?url=<JIRA URL>#<ISSUE COLLECTOR ID>.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="x-ua-compatible" content="IE=edge"/>
<script type="text/javascript">
function getUrlParameter(name) {
name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]');
var regex = new RegExp('[\\?&]' + name + '=([^&#]*)');
var results = regex.exec(location.search);
return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' '));
@klauer
klauer / PyQt5_OpenGl_TextureFromNumpy.py
Created May 16, 2018 04:11 — forked from pwuertz/PyQt5_OpenGl_TextureFromNumpy.py
PyQt5 Example: Create OpenGL texture from numpy array via mapped pixel buffer
from OpenGL import GL
from PyQt5 import QtWidgets, QtCore, QtGui, QtOpenGL
from OpenGL.GL.ARB.texture_rg import GL_R32F
import numpy as np
import ctypes
import time
w, h = 400, 400
class TestWidget(QtOpenGL.QGLWidget):
@klauer
klauer / notes.md
Last active May 9, 2016 13:53 — forked from danielballan/deployment-plan.md
Upgrade checklist, May 2016
  1. Create 'DAMA Software' logbook in beamline Olog.
  2. Run conda list -n collection > /tmp/conda-list-before-upgrade.txt and include it in an Olog entry as an attachment.
  3. Install packages:
    • event_model >= 1.0.2.
    • bluesky==0.5.0
    • databroker==0.4.1
    • metadatastore==0.4.2
    • ophyd==0.4.2rc1
    • doct==1.0.2
  • historydict==1.0.1