Skip to content

Instantly share code, notes, and snippets.

André David adavidzh

Block or report user

Report or block adavidzh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@adavidzh
adavidzh / mylittledaq.py
Created Feb 10, 2018
My little zmq DAQ
View mylittledaq.py
#!/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 / diphoton_exp.py
Created Sep 12, 2016
Experimental diphoton public sources and their INSPIRE IDs
View diphoton_exp.py
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',
}
@adavidzh
adavidzh / module.json
Last active Aug 20, 2017
Module for Minimalist for Everyhing that adds MathJax to feedly.com
View module.json
{
"version": "0.7.0",
"preferences": {
"isEnabled": true
},
"modules": [
{
"name": "Load MathJax on feedly.com",
"author": "Andre David <andre.david@gmail.com>",
"includes": "*feedly.com*",
You can’t perform that action at this time.