Skip to content

Instantly share code, notes, and snippets.

@adavidzh
adavidzh / mylittledaq.py
Created February 10, 2018 04:00
My little zmq DAQ
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""A client-server for simple DAQ operations.
The goal is offload the event data as soon as possible from the acquisition machine so that it can focus on talking to the hardware.
This code was developed with the concrete case of:
- a Raspberry Pi performing the detector readout via GPIO (the server) and
- the event data being procesed in a powerful computer (the client)
Flow control is performed over a synchronous REQquest-REPly connection and has three verbs:
@adavidzh
adavidzh / module.json
Last active August 20, 2017 13:08
Module for Minimalist for Everyhing that adds MathJax to feedly.com
{
"version": "0.7.0",
"preferences": {
"isEnabled": true
},
"modules": [
{
"name": "Load MathJax on feedly.com",
"author": "Andre David <andre.david@gmail.com>",
"includes": "*feedly.com*",
@adavidzh
adavidzh / diphoton_exp.py
Created September 12, 2016 15:44
Experimental diphoton public sources and their INSPIRE IDs
sources = {
('Dec15','ATLAS'):'1410174',
('Dec15','CMS'):'1409807',
('Moriond16','ATLAS'):'1434415',
('Moriond16','CMS'):'1429937',
('LHCP16','ATLAS'):'1469066',
('LHCP16','CMS'):'1469073',
('ICHEP16-CONF-NOTE','ATLAS'):'1480039',
('ICHEP16-PAPER','CMS'):'1485702',
}