This file contains 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{tikzpicture} | |
% Place nodes | |
\node [cloud] (estat) {Estat}; | |
\node [block] (entrada) [below left=0.5cm and 2.3cm of estat] {\makecell[c]{Canvi en:\\Tancaments, $n$,\\$d$, $R$, $p$, Material\\o Resolució}}; | |
\node [block, below of=estat, node distance=1.9cm] (entradavalida) {\mcode{entradavalida}}; | |
\node [block, below of=estat, node distance=8.8cm] (extreuparametres) {\mcode{extreuparametres}}; | |
\node [block, below of=entrada, node distance=2cm] (actualitza) {\mcode{actualitza}}; | |
\node [block] (boto) [below right=2.25cm and 2.3cm of estat] {Canvi en el botó tria}; | |
\node [decision, below of=boto] (dec_boto) {què s'està mostrant?}; | |
\node [decision, left of=dec_boto, node distance=9.8cm] (dec_entrada) {què s'està mostrant?}; |
This file contains 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
#pragma mode( separator(.,;) integer(h32) ) | |
//Perfils de temperatura θ(x) | |
EXPORT θ_AI(x, h, P, S, lambda, θ0) | |
//Aleta infinita | |
BEGIN | |
LOCAL m := sqrt(h*P/(lambda*S)); | |
RETURN(θ0*exp(-m*x)); | |
END; |
This file contains 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
#cas | |
FuitaInst(x, y, z, M, u, He, t, est):= | |
BEGIN | |
LOCAL a := 0; | |
LOCAL b := 0; | |
LOCAL c := 0; | |
LOCAL d := 0; | |
CASE | |
IF est == "A" THEN | |
a := 0.527; |
This file contains 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
#cas | |
Dispersio(x, y, z, Q, u, He, est):= | |
BEGIN | |
LOCAL a := 0; | |
LOCAL b := 0; | |
LOCAL c := 0; | |
LOCAL d := 0; | |
CASE | |
IF est == "A" THEN | |
a := 0.527; |
This file contains 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
#cas | |
TENS(imps, incs, vect, seed) := | |
BEGIN | |
LOCAL tamany := rowDim(vect); | |
LOCAL eqs := []; | |
LOCAL eq; | |
LOCAL llavor := []; | |
FOR n FROM 1 TO tamany DO | |
eq := imps(n)*incs = vect(n); | |
eqs := append(eqs, eq); |
This file contains 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
/* Created by andreu on 16/10/2017 */ | |
var ramona = "La Ramona es la más gorda de las mozas de mi pueblo Ramona, te quiero. Tiene un globo por cabeza y no se le ve el pescuezo. Ramona, te quiero. Sus piernas son dos columnas su trasero es un pandero. Ramona, te quiero. Le han hecho una cama con cuatro vigas de hierro, y cuando se acuesta tiembla el suelo de mi pueblo. Le han hecho una silla en casa del cerrajero, con catorce patas pa que resista su cuerpo. La Ramona es barrigona, su cuerpo da miedo verlo. Ramona, te quiero. La Ramona es pechugona, tie dos cantaros por pechos. Ramona, te quiero. Los brazos de la Ramona son más anchos que mi cuerpo. Ramona, te quiero. Le han hecho un retrato en casa del retratero, como era tan gorda solo ha salío medio cuerpo. Se ha comprado un vestido colorao de terciopelo hecho de volantes con cien capas de torero. ¡A bailar mi Ramona, pechugona! La Ramona se ha fugao con el hijo del cartero. Ramona, te quiero. Como no cabía en un tren se la lleva en un velero. Ramona, te |
This file contains 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
from random import gauss | |
class Matriu: | |
def __init__(self, files, columnes): | |
self.f = files | |
self.c = columnes | |
self.matriu = [None] * files | |
for i in range(0, files): | |
self.matriu[i] = [0] * columnes |
This file contains 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
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters | |
def start(bot, update): | |
update.message.reply_text('This bot reverses every message you send') | |
def help(bot, update): | |
update.message.reply_text('Need help? Fuck yourself') |
This file contains 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
function DELTAHOURS(date1, date2) { | |
//Takes two strings in the format "January 1, 1970 at 00:00AM" and returns the time delta in hours | |
var starthour = new Date(); | |
var endhour = new Date(); | |
//Month | |
switch (date1.slice(0, date1.indexOf(" "))){ | |
case "January": | |
starthour.setMonth(0); |
This file contains 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
function [ bankrolls ] = ruleta(bankrollI, stakeI,apostes) | |
%bankrollI: diners amb els que comences a jugar | |
%stakeI: valor de l'aposta mínima | |
%apostes: número d'apostes a fer | |
close all | |
bankrolls = [bankrollI]; | |
stake = stakeI; | |
for i = 1:apostes | |
bankrollI = bankrollI - stake; | |
bankrolls = [bankrolls bankrollI]; |
NewerOlder