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
--- | |
# Run like: haproxy_drain_backend.yml --extra-vars="webserver=web01" | |
- hosts: haproxys | |
serial: 1 | |
gather_facts: true | |
max_fail_percentage: 0 | |
become: true | |
vars: |
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
<?php | |
// Source: http://stackoverflow.com/a/18707244 | |
//convert the XML result into array | |
$array_data = json_decode(json_encode(simplexml_load_string($data)), true); | |
?> |
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
<?PHP | |
class ThreeD | |
{ | |
static public function Transform2Dto3D(array $points, array $axis, $focalLength, $center_x, $center_y) | |
{ | |
$pointarray = array(); | |
$sx = sin($axis['x']); | |
$cx = cos($axis['x']); |
NewerOlder