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
Anchor ID: 2 (0b0000000000000010), Distnace: 9.27562 (0b01000001000101000110100011101101) | |
Anchor ID: 7 (0b0000000000000111), Distnace: 1.0838 (0b00111111100010101011100111100000) | |
Anchor ID: 3 (0b0000000000000011), Distnace: 14.0988 (0b01000001011000011001010001111011) | |
Anchor ID: 0 (0b0000000000000000), Distnace: 0 (0b00000000000000000000000000000000) | |
Anchor ID: 0 (0b0000000000000000), Distnace: 0 (0b00000000000000000000000000000000) | |
Anchor ID: 0 (0b0000000000000000), Distnace: 0 (0b00000000000000000000000000000000) | |
Anchor ID: 0 (0b0000000000000000), Distnace: 0 (0b00000000000000000000000000000000) | |
Estimated position | |
9.60373 | |
5.27346 |
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
{ | |
"x-axis": 0, | |
"y-axis": 5.473637 | |
}{ | |
"x-axis": 0, | |
"y-axis": 5.473637 | |
}{ | |
"x-axis": 0, | |
"y-axis": 5.480532 | |
}{ |
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
package main | |
import ( | |
"log" | |
"net" | |
"fmt" | |
) | |
func main() { | |
hostName := "localhost" |
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
public class Model { | |
public Model(float x, float y) { | |
this.x = x; | |
this.y = y; | |
} | |
public float x; | |
public float getX() { |
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
package com.camera.selfie.dual.effects; | |
import java.util.ArrayList; | |
public class Circle { | |
public float xOne, yOne, distanceOne; | |
public float xTwo, yTwo, distanceTwo; | |
public Circle(float xOne, float yOne, float distanceOne, float xTwo, float yTwo, float distanceTwo) { | |
this.xOne = xOne; |
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
#include <iostream> | |
#include <list> | |
#include <string> | |
#include <algorithm> | |
struct Anchor | |
{ | |
int id; | |
std::string name; |
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
type Circle struct { | |
X float64 | |
Y float64 | |
R float64 | |
} | |
func CalculateDistance(x1, y1, r1, x2, y2, r2 float64) float64 { | |
circleOne := Circle{x1, y1, r1} | |
circleTwo := Circle{x2, y2, r2} |
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
public static String encodeTobase64(Bitmap image) { | |
Bitmap immagex = image; | |
ByteArrayOutputStream baos = new ByteArrayOutputStream(); | |
immagex.compress(Bitmap.CompressFormat.PNG, 90, baos); | |
byte[] b = baos.toByteArray(); | |
String imageEncoded = Base64.encodeToString(b, Base64.DEFAULT); | |
return imageEncoded; | |
} | |
public static Bitmap decodeBase64(String input) { |
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
package main | |
import ( | |
"fmt" | |
) | |
//created a function with two paramenter with size and channel | |
func fibonacci(n int, c chan int) { | |
x, y := 1, 1 | |
for i := 0; i < n; i++ { |
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
package main | |
import "fmt" | |
func main() { | |
//initialised the channel | |
channelName := make(chan string, 2) | |
//sends a string value to the channel | |
channelName <- "Himanshu" | |
//sends a second string value to the channel |