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
#!/bin/bash | |
echo "/usr/local/share/dotnet/sdk/$1" | |
sudo rm -rf "/usr/local/share/dotnet/sdk/$1" | |
sudo rm -rf "/usr/local/share/dotnet/shared/Microsoft.NETCore.App/$1" | |
sudo rm -rf "/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App/$1" | |
sudo rm -rf "/usr/local/share/dotnet/host/fxr/$1" |
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
using System; | |
namespace UniRx.InternalUtil | |
{ | |
// ImmutableList is sometimes useful, use for public. | |
public class ImmutableList<T> | |
{ | |
public static readonly ImmutableList<T> Empty = new ImmutableList<T>(); | |
T[] data; |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace VariousSort | |
{ | |
static class SortLinq | |
{ | |
public static IEnumerable<T> MergeSort<T>(this IEnumerable<T> source) where T : IComparable<T> | |
{ |
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
import numpy as np | |
import cupy as cp | |
def _non_maximum_suppression_cpu(bbox, thresh, score=None, limit=None): | |
bbox = cp.asnumpy(bbox) | |
if len(bbox) == 0: | |
return np.zeros((0,), dtype=np.int32) | |
if score is not None: |
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
from datetime import datetime | |
from PIL import Image, ImagePalette | |
import numpy as np | |
import cv2 | |
import os | |
def get_palette(class_num): | |
""" Returns the color palette for visualizing the segmentation mask. | |
Args: |
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
{ | |
"$schema": "vscode://schemas/color-theme", | |
"name": "Dark Default Colors", | |
"colors": { | |
"editor.background": "#1E1E1E", | |
"editor.foreground": "#D4D4D4", | |
"editor.inactiveSelectionBackground": "#3A3D41", | |
"editorIndentGuide.background": "#404040", | |
"editorIndentGuide.activeBackground": "#707070", | |
"editor.selectionHighlightBackground": "#ADD6FF26", |
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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>netcoreapp2.1</TargetFramework> | |
</PropertyGroup> | |
<ItemGroup> | |
<Reference Include="ProjectName"> | |
<HintPath>filpath\to\dll\ProjectName.dll</HintPath> |
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
#pragma warning disable 0414 | |
using System; | |
using System.IO; | |
using System.Runtime.InteropServices; | |
using UnityEngine; | |
using UnityEngine.UI; | |
namespace VRM | |
{ | |
public class VRMRuntimeLoader : MonoBehaviour |
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
// Brief Sample of using OpenCV dnn module in real time with device capture, video and image. | |
// VIDEO DEMO: https://www.youtube.com/watch?v=NHtRlndE2cg | |
#include<opencv2\core\ocl.hpp> | |
#include <opencv2/dnn.hpp> | |
#include <opencv2/dnn/shape_utils.hpp> | |
#include <opencv2/imgproc.hpp> | |
#include <opencv2/highgui.hpp> | |
#include <fstream> | |
#include <iostream> |
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
void setup() { | |
size(1820, 407); | |
background(255, 255, 255); | |
PImage img = loadImage("icon.jpg"); | |
//まずは特になにもしたい状態で描画 | |
image(img, 0, 0); | |
//バイラテラルフィルタを適応する。 | |
PImage dstImg = new PImage(img.width, img.height, RGB); | |
bilateralFilter(img, dstImg, 50, 20); |