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
public static int numPaths (int[][] mat, int x1, int y1, int x2, int y2) { | |
return numPaths(mat, x1, y1, x2, y2, 0); | |
} | |
private static int numPaths(int[][] mat, int x1, int y1, int x2, int y2, int counter) { | |
int tmp; | |
if (x1 < 0 || x2 < 0 || y1 < 0 || y2 < 0) { | |
return 0; | |
} else if (x1 >= mat.length || x2 >= mat.length || y1 >= mat.length || y2 >= mat.length) { |
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
public double calcPerimeter() { | |
double peri = 0; | |
if (head.getNext() == null) { | |
return peri; | |
} else if (head.getNext().getNext() == null) { | |
return head.getPoint().distance(head.getNext().getPoint()); | |
} | |
PointNode iterable = head; |
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
public function getPaymentUrl($orderId) { | |
$DEFAULT_SUM = 10; | |
$this->load->library('Tranzila'); | |
$tranzila = new Tranzila(); | |
$tranzilaHost = 'secure5.tranzila.com'; | |
$tranzilaPath = '/cgi-bin/tranzila71dt.cgi'; | |
$tranzilaParams = [ | |
'sum' => $DEFAULT_SUM, |
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
/** | |
* Segment2 represents a line (parallel to the x-axis) using a center point and length. | |
* | |
* @author Eyal Cohen | |
* @version 1.0.0 | |
*/ | |
public class Segment2 { | |
private Point _poCenter; | |
private double _length; | |
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
public class PointTester2 { | |
public static void main(String[] args) { | |
System.out.println("********** Test Q1 Point - Start **********"); | |
System.out.println("testing first constructor and getters:"); | |
Point p0 = new Point(-2,-3); | |
if (p0.getX() != 0 || p0.getY() != 0){ | |
System.out.println("\t ERROR - default constructor and getters,expected (0.0, 0.0) actual= (" + p0.getX() + ", " + p0.getY() +")"); | |
} else |
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
public void move(double dx, double dy) { | |
double x = getX(); | |
double y = getY(); | |
x = x + dx; | |
y = y + dy; | |
if (x > DEFAULT_VALUE && y > DEFAULT_VALUE) { | |
_alpha = calcAlpha(x, y); | |
_radius = calcRadius(x, y); |
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
public boolean pointOnSegment(Point p) { | |
if (p.isRight(_poLeft) && p.isLeft(_poRight)) { | |
return true; | |
} | |
return false; | |
} | |
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
$handshakeParams = [ | |
'sum' => $DEFAULT_SUM, // (currently is 10) | |
'TranzilaPW' => test2387, | |
'supplier' => F4BJ75, | |
'op' => 1, | |
]; | |
// The request url for handsake: https://secure5.tranzila.com/cgi-bin/tranzila71dt.cgi?sum=10&TranzilaPW=F4BJ75&supplier=test2387&op=1 | |
$iframeParam = [ |
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
public double overlap(Segment1 other) { | |
return _poRight.getX() - other.getPoLeft().getX(); | |
} |
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
{"version":1,"resource":"file:///Users/eyalcohen/dev/groundcover/frontend/src/themes/colors.ts","entries":[{"id":"frAi.ts","timestamp":1728205979747},{"id":"kmaR.ts","timestamp":1732567824510},{"id":"hoCV.ts","timestamp":1732833215393}]} |