vitrual box snips
Install yosemite: http://sqar.blogspot.de/2014/10/installing-yosemite-in-virtualbox.html
Snips command line
Check what is dropbox doing:
Snips for Latex / TexShop etc
On TexShop tricks:
Emacs snips
indentation (xml, html):
Command line snips
Find only files:
linux ubuntu handy snips
Latex snips
Templates: http://www.latextemplates.com
Share Latex: https://www.sharelatex.com
Stack exchange:
Page styles:
Snips for bootstrap
<nav class="navbar navbar-inverse navbar-fixed-bottom" role="navigation">
Check this for nice looks:
Check the credits: https://wrapbootstrap.com/theme/inspinia-responsive-admin-theme-WB0R5L90S
Navbar css example:
Bootstrap snips
Few good tricks:
This is a good example:
Bootstrap expo:
Paralax:
Page color/themes
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]
github snips
- clone with ssh
git clone git@github.com:matplo/pyarxiv.git
- check ssh:
ssh -vT git@github.com
what worked here is:
$ git remote -v
$ git remote set-url origin git@github.com:matplo/pyarxiv.git
Snips for highcharts
vertical lines and rectangles: http://jsfiddle.net/zYXar/
grid on the plot: http://jsfiddle.net/shehovn/SxjAD/1/
add and remove lines and bands: http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/members/axis-addplotband/
//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:
Programing snips
MAMP
ROOT and JS?
Brew formulas
Swift:
Sublime Text extensions:
Sublime text modif configuration:
pyroot examples:
root divide canvas: