Skip to content

Instantly share code, notes, and snippets.

View kustraslawomir's full-sized avatar
🏠
Working from home

Sławomir Kustra kustraslawomir

🏠
Working from home
View GitHub Profile
2026-02-17 13:56:30.777 27835-30863 DeviceManager medicus.android.admin E [bms] device: hangings id: 289 command: fold value:100 description: Zasłony IP: 10.10.1.40:502 address: 15 slot: 2849
2026-02-17 13:56:33.982 27835-30866 DeviceManager medicus.android.admin E [bms] device: hangings id: 111 command: fold value:100 description: Zasłony IP: 10.10.1.40:502 address: 4 slot: 2849
2026-02-17 13:56:37.187 27835-30880 DeviceManager medicus.android.admin E [bms] device: hangings id: 170 command: fold value:100 description: Zasłony IP: 10.10.1.40:502 address: 9 slot: 2849
2026-02-17 13:56:40.392 27835-30894 DeviceManager medicus.android.admin E [bms] device: thermostat id: 288 command: on value:230 description: Termostat - do sterowania temperaturą IP: 10.10.1.40:502 address: 15 slot: 2822
2026-02-17 13:56:43.597 27835-30897 DeviceManager medicus.android.admin E [bms] device: light_rang
2026-02-17 13:55:21.791 27835-29501 DeviceManager medicus.android.admin E [bms] device: hangings id: 289 command: unfold value:80 description: Zasłony IP: 10.10.1.40:502 address: 15 slot: 2849
2026-02-17 13:55:24.994 27835-30576 DeviceManager medicus.android.admin E [bms] device: hangings id: 111 command: unfold value:80 description: Zasłony IP: 10.10.1.40:502 address: 4 slot: 2849
2026-02-17 13:55:28.195 27835-30605 DeviceManager medicus.android.admin E [bms] device: hangings id: 170 command: unfold value:80 description: Zasłony IP: 10.10.1.40:502 address: 9 slot: 2849
2026-02-17 13:55:31.404 27835-30627 DeviceManager medicus.android.admin E [bms] device: thermostat id: 288 command: on value:215 description: Termostat - do sterowania temperaturą IP: 10.10.1.40:502 address: 15 slot: 2822
2026-02-17 13:55:34.610 27835-30642 DeviceManager medicus.android.admin E [bms] device: light_r
@SuppressLint("Range")
public ArrayList<EquipmentModel> getRoomEquipmentByType(String whereQuery, String roomId) {
ArrayList<EquipmentModel> equipmentList = new ArrayList<>();
SQLiteDatabase readableDatabase = getDatabase().getReadableDatabase();
String query = "SELECT * FROM " + RoomEquipmentTable.TABLE_NAME +
" WHERE " + RoomEquipmentTable.ROOM_ID + " = '" + roomId + "' AND " + whereQuery +
" ORDER BY " + RoomEquipmentTable.PRIORITY + " DESC";
try (Cursor cursor = readableDatabase.rawQuery(query, null)) {
package com.ultron.ar.presentation.argameplay
import android.Manifest
import android.os.Bundle
import android.view.View
import android.widget.TextView
import com.domain.model.jobdetails.JobDetailsDomain
import com.domain.model.route.Type
import com.domain.usecase.games.SubmitAnswerUseCase
import com.google.ar.core.Config
private fun initializeDetector(modelFile: File, labels: List<String>) {
val detector = TensorObjectDetector.create(
interpreter = Interpreter(modelFile),
labels = labels)
cameraView.addFrameProcessor { frame ->
when (frame.dataClass) {
ByteArray::class.java -> {
val bitmap = BitmapUtils.getBitmapFromFrame(
frame = frame,
{
"posts": [
{
"id": 1,
"title": "Post 1"
},
{
"id": 2,
"title": "Post 2"
},
{
"id":1,
"name":"Leanne Graham",
"username":"Bret",
"email":"Sincere@april.biz",
"address":{
"street":"Kulas Light",
"suite":"Apt. 556",
"city":"Gwenborough",
"zipcode":"92998-3874",