Skip to content

Instantly share code, notes, and snippets.

// create 7 HVAC states where weekdays are inactive and weekend is active
AutoHvacState[] states = new AutoHvacState[7];
for (int i = 0; i < 7; i++) {
AutoHvacState state;
if (i < 5)
state = new AutoHvacState(false, i, 0, 0);
else
state = new AutoHvacState(true, i, 7, 30);
states[i] = state;
package com.hm.oem.hmcore
import com.highmobility.crypto.AccessCertificate
import com.highmobility.hmkit.Telematics
import com.highmobility.utils.Bytes
class CoreTest {
// to create access certificate, AccessCertificate constructor should be used
/**
public AccessCertificate(byte[] gainerSerial,
if (project.hasProperty("hmArtifactoryUrl")) {
apply plugin: "maven"
apply plugin: "com.jfrog.artifactory"
apply plugin: 'com.jfrog.bintray'
def artifact = new Properties()
artifact.load(new FileInputStream("$projectDir/deploy.settings"))
// add the sources and doc artifacts
if (project.hasProperty("hmArtifactoryUrl") && project.hasProperty('releaseType') && project.releaseType > 0) {
// doesn't look like can include buildscript.
// https://discuss.gradle.org/t/how-do-i-include-buildscript-block-from-external-gradle-script/7016/2
apply plugin: "maven"
apply plugin: "com.jfrog.artifactory"
apply plugin: 'com.jfrog.bintray'
apply plugin: 'digital.wup.android-maven-publish'
def artifact = new Properties()
INFO_MAKE : [normal]
INFO_MODEL : [normal]
INFO_MODEL_YEAR : [normal]
INFO_FUEL_CAPACITY : [normal]
INFO_FUEL_TYPE : [normal]
INFO_EV_BATTERY_CAPACITY : [normal]
INFO_EV_CONNECTOR_TYPE : [normal]
INFO_FUEL_DOOR_LOCATION : [normal]
INFO_EV_PORT_LOCATION : [normal]
INFO_DRIVER_SEAT : [normal]
Created log file at "/var/folders/4b/fykz7dvx2fj550ml_6t5qkww0000gn/T/Alacritty-55667.log"
[0.000007781s] [INFO ] [alacritty] Welcome to Alacritty
[0.000251494s] [INFO ] [alacritty] Version 0.12.0 (5a72819)
[0.000809099s] [INFO ] [alacritty] Configuration files loaded from:
"/Users/tonis/.config/alacritty/alacritty.yml"
[0.016490370s] [INFO ] [alacritty] winit event: NewEvents(Init)
[0.016563128s] [INFO ] [alacritty] winit event: Resumed
[0.016611135s] [INFO ] [alacritty] Using Apple CGL
[0.070187578s] [INFO ] [alacritty] Window scale factor: 2
[0.122805840s] [INFO ] [alacritty] Running on AMD Radeon Pro 5500M OpenGL Engine
@tonisives
tonisives / test.ts
Last active August 25, 2023 08:30
chroma lag
import { QueryResponse } from "chromadb/dist/main/types.js";
import { config, getEmbeddings } from "./config.js";
import { logMarkdown } from "./terminal.js";
import Logger from "js-logger";
let { client } = config
let collection = await client.getOrCreateCollection({
name: "ah-00000000-7f50-findings",
embeddingFunction: getEmbeddings("7f50")
// plugins {
// id "org.jetbrains.kotlin.jvm" version "1.9.0"
// implementation("io.arrow-kt:arrow-core:1.2.0")
// implementation("io.arrow-kt:arrow-optics:1.2.0")
// ksp("io.arrow-kt:arrow-optics-ksp-plugin:1.2.0")
@tonisives
tonisives / gist:25844567462a5454da0645c7cace65a9
Created December 9, 2023 03:16
hide all comments fold lines
regex:
"hideComments.regex": [
{
"regex": "^(\\s+|)\/\/.*\\n",
"flags": "igm",
},
{
"regex": "\/\\*(.|\\n)+?\\*\/",
"flags": "igm"
}
version: "3.9"
networks:
net:
driver: bridge
services:
server:
image: ghcr.io/chroma-core/chroma:latest
environment:
- IS_PERSISTENT=TRUE