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 itertools | |
from time import sleep | |
# pip install obsws-python | |
import obsws_python as obs | |
OBS_PASSWORD = '<OBS-Password>' | |
TARGET_SOURCE_NAME = '<ソースに表示されているなまえ>' | |
obscl = obs.ReqClient(host='localhost', port=4455, password=OBS_PASSWORD) |
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 pydrive2.drive import GoogleDrive | |
from pydrive2.auth import GoogleAuth | |
#https://docs.iterative.ai/PyDrive2/filemanagement/#upload-file-to-a-specific-folder | |
def login_with_service_account(): | |
""" | |
Google Drive service with a service account. | |
note: for the service account to work, you need to share the folder or | |
files with the service account email. |
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 pathlib import Path | |
print(Path(__file__).as_uri()) |
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 dataclasses import dataclass | |
@dataclass(frozen=True) | |
class Params: | |
user_name: str | |
age: int | |
weight: float | |
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 open3d as o3d | |
def grid_line(size=2): | |
x = np.arange(-size, size + 1) | |
y = np.array((-size, size)) | |
x_1 = np.repeat(x, 2) | |
y_1 = np.tile(y, size * 2 + 1) | |
z = np.zeros_like(x_1) | |
x_line = np.vstack((x_1, y_1, z)).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
Param($searchPath) | |
if (!$searchPath) { | |
Write-Warning "Pass Search Directory Path" | |
exit | |
} | |
Get-ChildItem $searchPath | |
if (![bool] (Get-Command ffmpeg -ErrorAction SilentlyContinue)) { |
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 'dart:collection'; | |
main(){ | |
// var base =DateTime(2019,2); | |
// var cnt =0; | |
// for (var d in MonthRange(DateTime(base.year,base.month-6),base)) { | |
// print(d); | |
// cnt++; | |
// } | |
// print("Count :$cnt"); |
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
const stream = process.stdout; | |
let consoleWidth = undefined; | |
function delay(ms: number) { | |
return new Promise(resolve => setTimeout(() => resolve(), ms)) | |
} | |
function sinBuffer(buf: Buffer, memory: boolean[][], row: number, column: number) { | |
const bytes = 3; |
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
const Installer = function(root) { | |
let promptEvent; | |
const install = function(e) { | |
if(promptEvent) { | |
promptEvent.prompt(); | |
promptEvent.userChoice | |
.then(function(choiceResult) { | |
// The user actioned the prompt (good or bad). | |
// good is handled in |
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; | |
using System.Text; | |
using Unity.EditorCoroutines.Editor; | |
using UnityEditor; | |
using UnityEditor.Callbacks; | |
using UnityEngine; | |
using UnityEngine.Networking; | |
namespace BuildProcess |
NewerOlder