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
uv init my-new-project | |
uv venv --python 3.12 | |
## To add new packages | |
uv add flask | |
## To remove packages | |
uv remove flask | |
## add or remove packages directly from the pyproject.toml then sync it |
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
function createDomElements(data) { | |
var parentElement = document.getElementById("mainArea"); | |
parentElement.innerHTML = ""; | |
for (var i = 0; i<data.length; i++) { | |
var childElement = document.createElement("div"); | |
var grandChildElement1 = document.createElement("span"); | |
grandChildElement1.innerHTML = data[i].title | |
var grandChildElement2 = document.createElement("span"); |
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
package com.google.mediapipe.apps.hairsegmentationgpu; | |
import android.graphics.SurfaceTexture; | |
import android.os.Bundle; | |
import android.util.Size; | |
import android.view.SurfaceHolder; | |
import android.view.SurfaceView; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.SeekBar; |
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
// imports | |
#include "mediapipe/framework/calculator_framework.h" | |
#include "mediapipe/framework/port/status.h" | |
#include "mediapipe/framework/formats/image_frame.h" | |
#include "mediapipe/framework/port/ret_check.h" | |
#include <vector> | |
/* |