Skip to content

Instantly share code, notes, and snippets.

Avatar

Anna Woodard annawoodard

View GitHub Profile
@annawoodard
annawoodard / beeminder.py
Last active Jun 2, 2017 — forked from matz-e/beeminder.py
Send beeminder word count delta, not cumulative
View beeminder.py
#!/usr/local/bin/python3
import re
import requests
import shlex
import subprocess
# login to beeminder and visit https://www.beeminder.com/api/v1/auth_token.json
auth_token = 'token'
username = 'username'
goal = 'thesis'
View beeminder.py
#!/usr/local/bin/python3
import requests
import shlex
import subprocess
# login to beeminder and visit https://www.beeminder.com/api/v1/auth_token.json
auth_token = 'token'
username = 'username'
goal = 'thesis'
View postfit.py
from collections import defaultdict
import os
import re
import numpy as np
import ROOT
ROOT.gROOT.SetBatch(True)
from rootpy.plotting import Hist, HistStack, Legend, Canvas
from rootpy.plotting.style import get_style, set_style
from rootpy.plotting.utils import draw
View model.py
import os
import re
import numpy as np
from numpy.polynomial import Polynomial
import ROOT
from HiggsAnalysis.CombinedLimit.PhysicsModel import PhysicsModel
from HiggsAnalysis.CombinedLimit.SMHiggsBuilder import SMHiggsBuilder
View crabserver_config.txt
{
"private": {
"delegate-dn": [
"/DC=ch/DC=cern/OU=computers/CN=markv.cern.ch|/DC=ch/DC=cern/OU=Organic Units/OU=Users/CN=awoodard/CN=719477/CN=Anna Elizabeth Woodard/CN=proxy"
],
"backend-urls" : {
"cacheSSL" : "https://cmsweb-testbed.cern.ch/crabcache",
"baseURL" : "https://cmsweb-testbed.cern.ch/crabcache",
"htcondorSchedds" : {
"crab3-5@vocms059.cern.ch" : {
@annawoodard
annawoodard / merge.pl
Created Feb 26, 2015
LHE file merger
View merge.pl
#!/usr/bin/perl -w
################################################################################
# merge.pl
# Richard Corke (richard.corke@thep.lu.se)
#
# Changed structure to not read entire files into memory
#
# Based on merge.pl v1.2 by Michel Herquet (UCL-CP3)
# DESCRIPTION : script to merge to LHE events files
You can’t perform that action at this time.