Skip to content

Instantly share code, notes, and snippets.

Avatar
🤔
Building castles of abstraction

Mateusz Galazyn carbolymer

🤔
Building castles of abstraction
View GitHub Profile
View gist:3226643
1)
Rank
A8-3500M 161
Radeon HD 6640G2 174
2)
Corei3-2330M 89
Radeon HD 6490M 208
View gist:3208596
[ 160.711]
X.Org X Server 1.12.3
Release Date: 2012-07-09
[ 160.749] X Protocol Version 11, Revision 0
[ 160.762] Build Operating System: Linux 3.4.4-3-ARCH x86_64
[ 160.776] Current Operating System: Linux nucleon 3.4.6-1-ARCH #1 SMP PREEMPT Fri Jul 20 08:21:26 CEST 2012 x86_64
[ 160.776] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=2a41bc68-0c74-4229-ad7b-ccf1be99a9ca ro nomodeset radeon.audio=1
[ 160.804] Build Date: 09 July 2012 03:59:39PM
[ 160.818]
[ 160.832] Current version of pixman: 0.26.2
@carbolymer
carbolymer / TChainProxy.cxx
Created July 30, 2012 17:00
Plik: /home/mgalazyn/workspace/tpi/TChainProxy.cxx
View TChainProxy.cxx
#include "TChainProxy.h"
TChainProxy::TChainProxy() : _type(NONE), _isSiniukowLoaded(false)
{
_types[0] = "particles"; // Therminator
_types[1] = "tf"; // Siniukow
_types[2] = "teposevent"; // EPOS
_chain = new TChain();
@carbolymer
carbolymer / Makefile
Created July 19, 2012 10:54
Makefile with root libraries
View Makefile
DIR_HPP=./inc/
DIR_CPP=./src/
DIR_OBJ=./tmp/
DIR_BIN=./
DIR_TMP=./tmp/
CXXFLAGS=`root-config --cflags` -I$(DIR_HPP) -O3 -g
LFLAGS=`root-config --libs` -lboost_regex -g
OBJS=fit1dcould.o fitshanalyticaaabackshdircovcoulpars.o plotter.o merger.o siniukow2therminator.o
View zadanie10.m
clear;
page_output_immediately(1);
% obliczanie energii lancucha
function E = energy(chain, J, H)
E = -sum(chain)*H;
E += -J*sum(chain.*[chain(end) ; chain(1:end-1)]);
endfunction
% generator LCG
function value = LCGrand()
View zadanie9.m
clear;
function X = generate(a,c,m)
X = zeros(1000,1);
X(1) = 1;
for i = 1:999
X(i+1) = mod(a*X(i)+c,m);
endfor
endfunction
View pythia2.C
int pythia2()
{
int i = 0, index = 0;
TCanvas *canv = 0;
TFile *files[7];
TH1F *multiplicity[4];
TH1F *multiplicity14[4];
@carbolymer
carbolymer / dist.m
Created June 9, 2012 20:41
Larges Lyapunov Exponent from time series
View dist.m
function D = dist(X)
s = length(X(1,:));
n = length(X(:,1));
D = zeros(s,s);
for i=1:s
for j=1:i
if i == j
D(i,j) = 0;
else
D(i,j) = sqrt(sum(power(X(:,i)-X(:,j),2)));
View 1N3716.asy
Version 4
SymbolType CELL
LINE Normal 0 44 32 44
LINE Normal 0 20 32 20
LINE Normal 32 20 16 44
LINE Normal 0 20 16 44
LINE Normal 16 0 16 20
LINE Normal 16 44 16 64
LINE Normal 0 38 0 44
LINE Normal 32 44 32 38
@carbolymer
carbolymer / zadanie5.m
Created April 4, 2012 21:08
Interpolacja
View zadanie5.m
clear;
global n = 50;
x = sort(rand(1,n).*10);
y = rand(1,n).*20-10;
function f = nwtn(x,known_x,a)
global n;
f = 0;
for i=1:n
elem = a(i);