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
import json | |
from transformers import AutoTokenizer, AutoModelForCausalLM | |
import torch | |
from rdflib import Graph, URIRef, Literal | |
from rdflib.namespace import RDF, RDFS | |
# Llama3 모델 및 토크나이저 로드 | |
model_name = "meta-llama/Llama-3-7b-hf" | |
tokenizer = AutoTokenizer.from_pretrained(model_name) | |
model = AutoModelForCausalLM.from_pretrained(model_name) |
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
import numpy as np | |
from scipy.interpolate import interp1d | |
from geopy.distance import geodesic | |
# 좌표 정의 | |
coordinates = [ | |
(37.527426, 126.931572, 0), # Departure | |
(37.552743, 126.897240, 300), # Waypoint1 | |
(37.579413, 126.842308, 300), # Waypoint2 | |
(37.561725, 126.801109, 0) # Arrival |
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
#include <gst/gst.h> | |
#ifdef __APPLE__ | |
#include <TargetConditionals.h> | |
#endif | |
typedef struct CustomData { | |
GstElement *pipeline; | |
GMainLoop *main_loop; | |
} CustomData; |
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
\documentclass[a4paper]{article} | |
% XeTeX 관련 ================================================================= | |
% xltxtra Package가 fontspec을 부를 때 no-math 옵션을 주어 수식엔 영향을 주지 않게 함. | |
\PassOptionsToPackage{no-math}{fontspec} | |
\usepackage{xltxtra} | |
% Western과 CJK에 다른 글꼴을 사용하기 위한 패키지 | |
\usepackage{xeCJK} |
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
meson build \ | |
-Dpython=disabled \ | |
-Dvaapi=enabled \ | |
-Ddevtools=disabled \ | |
-Dges=disabled \ | |
-Dgst-examples=disabled \ | |
-Dtests=disabled \ | |
-Dintrospection=disabled \ | |
-Ddoc=disabled \ | |
-Dgtk_doc=disabled |
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
/** | |
* Copyright 2021 SK Telecom Co., Ltd. | |
* Author: Jeongseok Kim <jeongseok.kim@sk.com> | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |
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
#include "config.h" | |
#include <gst/gst.h> | |
#include <glib-unix.h> | |
static GstPadProbeReturn | |
_link_klv_cb (GstPad * pad, GstPadProbeInfo * info, gpointer user_data) | |
{ | |
GstElement *pipeline = user_data; | |
GstElement *sinkbin = NULL; |
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
#include "config.h" | |
#include <gst/gst.h> | |
#include <glib-unix.h> | |
#include <gst/app/gstappsrc.h> | |
static const guint8 klv_data[] = { | |
0x06, 0x0e, 0x2b, 0x34, 0x02, 0x0b, 0x01, 0x01, | |
0x0e, 0x01, 0x03, 0x01, 0x01, 0x00, 0x00, 0x00, | |
0x2a, 0x02, 0x08, 0x00, 0x05, 0x61, 0x0b, 0x43, |
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
gpg --pinentry-mode=loopback --passphrase "PASSWORD" --sign file.txt |
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
Adding H8L PPA | |
$ sudo add-apt-repository ppa:hwangsaeul/stable | |
$ sudo apt-get update | |
Installing Gaeul | |
$ sudo apt-get install gaeul2-source-agent | |
Adding gaeul user to video group |
NewerOlder