Skip to content

Instantly share code, notes, and snippets.

View eschanet's full-sized avatar

Eric Schanet eschanet

View GitHub Profile
@eschanet
eschanet / citrix_ctrl_alt_win.json
Created October 13, 2021 06:25 — forked from jdleslie/citrix_ctrl_alt_win.json
Map Apple modifiers (Ctrl, Option, Command) to Windows modifiers (Ctrl, Win, Alt) in Citrix Workspace using Karabiner Elements, with working Alt+Tab and Windows key shortcuts
{
"title": "Citrix Receiver/Workspace modifiers for Ctrl, Alt, Windows order",
"rules": [
{
"description": "In Citrix, add fn modifier to tab so it is forwarded",
"manipulators": [
{
"from": {
"key_code": "tab",
"modifiers": { "optional": [ "any" ] }
@eschanet
eschanet / toy_patch.json
Last active February 2, 2021 17:55
Simple patch example for pyhf toy example
[{
"op": "replace",
"path": "/channels/0/samples/0/data",
"value": [10.0,6.0]
}]
@eschanet
eschanet / toy_example.json
Created February 2, 2021 17:50
Simple JSON likelihood toy example
{
"channels": [{
"name": "singlechannel",
"samples": [{
"name": "sig",
"data": [12.0, 11.0],
"modifiers": [{ "name": "mu", "data": null, "type": "normfactor" }]
},
{
"name": "bkg",
@eschanet
eschanet / clean_code.md
Created August 24, 2020 19:33 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules