This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| BEGIN { | |
| avg = 0.0 | |
| sigma = 0.0 | |
| } | |
| { | |
| v = $1 | |
| avg = (avg*(NR - 1) + v) / NR | |
| sigma = (sigma*(NR - 1) + v*v) / NR | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| s = { | |
| id = "9B3C1961-C7B7-4C03-AD92-D4AE6440655B", | |
| internalName = "00-Pentax-k50", | |
| title = "00-Pentax-k50", | |
| type = "Develop", | |
| value = { | |
| settings = { | |
| AutoLateralCA = 1, | |
| ChromaticAberrationB = 0, | |
| ChromaticAberrationR = 0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.Arrays; | |
| public class Bitmap { | |
| private final byte[] _bitmap; | |
| public Bitmap(int size) { | |
| _bitmap = new byte[size]; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set key off | |
| set yrange [0:1] | |
| set xrange [:24] | |
| set ylabel "Efficiency (cpu/wall time)" | |
| set xlabel "execution time (hour)" | |
| set xtics rotate | |
| #set xdata time | |
| set multiplot layout 1,2 rowsfirst title "CMS job efficiency by access protocol" | |
| stats 'w07' using 3 nooutput |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| """ | |
| A small utility to create a file of specified size: | |
| $ mkfile 100g | |
| """ | |
| import sys | |
| import time | |
| import os |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # hexdump.py | |
| '''A program which dumps the content of a file in HEX format like: | |
| $ ./hexdump.py hexdump.py | |
| 00000 23 21 2f 75 73 72 2f 62 69 6e 2f 65 6e 76 20 70 ...usr.bin.env.p | |
| 00010 79 74 68 6f 6e 0a 0a 69 6d 70 6f 72 74 20 6d 6d ython..import.mm | |
| 00020 61 70 0a 69 6d 70 6f 72 74 20 63 6f 6e 74 65 78 ap.import.contex | |
| 00030 74 6c 69 62 0a 69 6d 70 6f 72 74 20 73 79 73 0a tlib.import.sys. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import re | |
| import string | |
| import math | |
| IN = 'COLLISON1.txt' | |
| DELIMER = '\xb3' | |
| KeV_in_Mev=1000 | |
| data_line_re = re.compile(".+\d+\.E\+0.*") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import re | |
| import string | |
| import math | |
| from Tkinter import Tk | |
| from Tkinter import * | |
| from tkFileDialog import askopenfilename, asksaveasfilename | |
| import cStringIO | |
| IN = 'COLLISON1.txt' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import sys | |
| import struct | |
| import binascii | |
| def hexToByte(h): | |
| bytes = [] | |
| h = ''.join( h.split(" ") ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ----- | |
| -- Sync into dCache with dccp | |
| -- usage: | |
| -- lsyncd -nodaemon ldccp.lua | |
| -- | |
| dcap = { | |
| maxProcesses = 32, | |
| delay = 1, | |
| action = function(inlet) |
OlderNewer