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
| <?php | |
| $a = 4; | |
| $b = 3; | |
| $c = 5; | |
| // a*a + b*b - c*c | |
| // cosC = --------------- | |
| // 2*a*b | |
| function calculateAngle($c,$a,$b){ | |
| $angleInRadians=acos((pow($a,2) + pow($b,2) - pow($c,2)) / (2 * $a * $b)); |
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
| #!/bin/bash | |
| mkdir -p /vagrant/dcm | |
| cd /vagrant/dcm/ | |
| wget -O dcm4chee-2.17.3.zip 'http://downloads.sourceforge.net/project/dcm4che/dcm4chee/2.17.3/dcm4chee-2.17.3-mysql.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fdcm4che%2Ffiles%2Fdcm4 chee%2F2.17.3%2F&ts=1378999040&use_mirror=ufpr' & | |
| wget -O dcm4che-2.0.23.zip 'http://downloads.sourceforge.net/project/dcm4che/dcm4che2/2.0.23/dcm4che-2.0.23-bin.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fdcm4che%2Ffiles%2Fdcm4che2 %2F2.0.23%2F&ts=1378999971&use_mirror=ufpr' & | |
| wget -O jboss-4.2.3.zip 'http://downloads.sourceforge.net/project/jboss/JBoss/JBoss-4.2.3.GA/jboss-4.2.3.GA-jdk6.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fjboss%2Ffiles%2FJBoss%2FJ Boss-4.2.3.GA%2F&ts=1378999423&use_mirror=ufpr' & | |
| # wget -O dcmtk-3.6.0.zip 'ftp://dicom.offis.de/pub/dicom/offis/software/dcmtk/dcmtk360/dcmtk-3.6.0.zip' & | |
| wget -O oviyam-1.war 'https://dl.dropboxusercontent.com/u/28191834/proradis-config/programas/oviyam-1.war' & | |
| wget -O oviyam2.war 'https://dl.dropboxu |
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
| #!/bin/bash | |
| set -e | |
| function usage() | |
| { | |
| echo "Usage: $0 -u <Postgres_Username> -p <Password>" | |
| } | |
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
| #!/bin/bash | |
| # Orthanc - A Lightweight, RESTful DICOM Store | |
| # Copyright (C) 2012-2015 Sebastien Jodogne, Medical Physics | |
| # Department, University Hospital of Liege, Belgium | |
| # | |
| # This program is free software: you can redistribute it and/or | |
| # modify it under the terms of the GNU Affero General Public License | |
| # as published by the Free Software Foundation, either version 3 of | |
| # the License, or (at your option) any later version. |
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
| <?php | |
| function array_chunk_min($list,$minSize){ | |
| $cnt = count($list); | |
| if($cnt <= $minSize){ | |
| return [$list]; | |
| } | |
| $lastChunkSize = $cnt%$minSize; | |
| if($lastChunkSize > 0){ | |
| $chunks = array_chunk(array_slice($list, 0, $cnt-$lastChunkSize),$minSize); |
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
| <?php | |
| namespace Wader; | |
| final class Mbstring { | |
| /** | |
| * upcase first char in string | |
| * @param string $str | |
| * @return string | |
| */ |
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
| $OtherCleanPathsArr = | |
| "C:\Temp\*", | |
| "C:\Windows\Temp\*" | |
| #системные пути для очистки | |
| $InProfilesCleanPathsArr = | |
| "\AppData\Local\Temp\*", | |
| "\AppData\Local\*.auc", | |
| "\AppData\Local\Microsoft\Terminal Server Client\Cache\*", | |
| "\AppData\Local\Microsoft\Windows\Temporary Internet Files\*", |
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
| apt-get update | |
| apt-get upgrade | |
| apt-get install python-software-properties | |
| add-apt-repository -y ppa:ondrej/php | |
| add-apt-repository -y ppa:ondrej/apache2 | |
| add-apt-repository -y ppa:ondrej/mysql-5.5 | |
| apt-get update | |
| apt-get purge php mysql | |
| apt-get install -y apache2 mysql-server-5.5 libapache2-mod-php7.0 php \ | |
| php7.0-mysql php7.0-curl php7.0-json php7.0-bz2 php7.0-xml php7.0-ldap |
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
| #!/bin/sh | |
| sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 | |
| echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list | |
| sudo apt-get update | |
| sudo apt-get install -y mongodb-org |
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
| curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer |