Companies snips


Papers / snips / links


Hot QCD White Paper 2014/2015
Jurgen on LHC
HF check refs there:
- Djordjevic Azfar etc etc
Interesting web:

apache http snips


RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^resources/^(.*)$ resources/$1 [L]
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^resources/$ $1 [L]
RewriteCond %{REQUEST_URI} !^/resources

RewriteRule ^/resources $1 [L]

Snips for highcharts


vertical lines and rectangles: http://jsfiddle.net/zYXar/
//option to the xAxis
plotLines = [{
color: 'blue', // Color value
//dashStyle: 'solid', // Style of the plot line. Default to solid
value: 12, // Value of where the line will appear
width: '2' // Width of the line
}];
super nice theme:
colors - rgba:

Snips for js


var currentdate = new Date(); 
var datetime = "Last Sync: " + currentdate.getDate() + "/"
                + (currentdate.getMonth()+1)  + "/" 
                + currentdate.getFullYear() + " @ "  
                + currentdate.getHours() + ":"  
                + currentdate.getMinutes() + ":" 
                + currentdate.getSeconds();

Sync ajax call with callback success' function:
function serverNow(){
var value = $.ajax({
dataType: 'json',
url: 'query/time',
async: false,
success : modifyLabel
}).responseText;
return value;
}
function modifyLabel(data) {
document.getElementById("time").innerHTML = 'Server time is: ' + data
};
var nowJSON = serverNow()
callbacks etc:
padding strings: