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
{ "metadata": { "name": "Legge_per_parabola" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "La lungezza della curva $y(x)$ pu\u00f2 essere calcolata come\n", "\n", "$$ \\ell = \\int_{x_a}^{x_b}\\sqrt{1+\\left(\\frac{dy}{dx}\\right)^2}dx$$\n", "\n", "per la nostra parabola $y(x) = \\frac{x^2}{2b}$, $\\frac{dy}{dx} = \\frac{x}{b}$" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "L'intergale indefinito \u00e8 ([Vedi qui][1]):\n", "\n", "$$ \\int\\sqrt{1+\\frac{x^2}{b^2}}dx = \\frac{x}{2}\\sqrt{1+\\frac{x^2}{b^2}} + \\frac{b}{2} arcsinh\\frac{x}{b} + C$$\n", "\n", "\n", "[1]: http://www.wolframalpha.com/input/?i=intergrate+sqrt%281%2B%28x*x%29%2F%28b*b%29%29+dx" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Modulo della velocita $v$ \u00e8 sempre costante. \n", "Quindi $\\ell(t) = v\\cdot t$" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Sciegliamo condtizioni iniziali cosi: \n", "\n", "$$x(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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
.link { | |
fill: none; | |
stroke: #666; | |
stroke-width: 1.5px; | |
} |
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
http://glslsandbox.com/e#32520.0 | |
#### Voronoi: | |
http://glslsandbox.com/e#526.0 | |
http://glslsandbox.com/e#552.1 | |
http://glslsandbox.com/e#31987.0 | |
#### Simple 3D | |
http://glslsandbox.com/e#55.0 | |
http://glslsandbox.com/e#125.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
# Flush | |
iptables -F | |
# Accept ssh | |
iptables -A INPUT -p tcp -m tcp --dport 22 -j ACCEPT | |
# Accept outgoing connections | |
iptables -I INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT | |
# Accept lo interface | |
iptables -A INPUT -i lo -j ACCEPT |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
.node circle { fill: #fff; stroke: steelblue; stroke-width: 1.5px; } | |
.link { fill: none; stroke: #ccc; stroke-width: 1.5px; } | |
</style> | |
<body> | |
<input id="toparse" type='text' style="width:500px" value="42 * (111+10) / (7+4)"/> | |
<script src="http://d3js.org/d3.v3.min.js"></script> |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
.node circle { fill: #fff; stroke: steelblue; stroke-width: 1.5px; } | |
.link { fill: none; stroke: #ccc; stroke-width: 1.5px; } | |
</style> | |
<body> | |
<input id="toparse" type='text' style="width:500px" value="42 * (111+10) / (7+4)"/> | |
<script src="http://d3js.org/d3.v3.min.js"></script> |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
.link { stroke: #999; } | |
</style> | |
<body> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<script> | |
function formatNode() |
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
# Instance Boot Source : SLC6 Server | |
# don't forget to create and select a key pair | |
################## First we'll create a partition on the ephemeral storage | |
ssh root@name-of-instance | |
fdisk /dev/vda | |
u # switch to other untis | |
n # new partition | |
p # primary |
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 StringIO | |
from fabric.api import * | |
env.hosts = [""] | |
krbconf = StringIO.StringIO(""" | |
[libdefaults] | |
default_realm = CERN.CH | |
ticket_lifetime = 24h | |
renew_lifetime = 7d |
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
wget http://www.erlang.org/download/otp_src_17.5.tar.gz | |
wget https://www.rabbitmq.com/releases/rabbitmq-server/v3.5.1/rabbitmq-server-generic-unix-3.5.1.tar.gz | |
tar xvvf otp_src_17.5.tar.gz | |
cd otp_src_17.5 | |
./configure --prefix=$PWD/../erlang | |
make && make install | |
cd - |