Skip to content

Instantly share code, notes, and snippets.

# Get-GPUInfo.ps1
<#
.SYNOPSIS
Windows PCに搭載されているGPU (グラフィックスカード) の情報を表示します。
.DESCRIPTION
このスクリプトは、WMI (Windows Management Instrumentation) を使用して、
システム内の各ビデオコントローラー (GPU) の詳細情報を取得し、表示します。
表示される情報には、GPUの名前、VRAM容量、ドライバーバージョンなどが含まれます。
function mergeCompletedTasksToDefaultList() {
//https://tasks.google.com/u/0/tasks/
//https://developers.google.com/workspace/tasks/reference/rest?hl=ja
const taskApi = Tasks; // Google Tasksサービス
const allTaskLists = taskApi.Tasklists.list().items; // 全てのタスクリストを取得
// デフォルトリストを「TODO」リストとして探す
#0.CursorエディタとVS Codeの競合: codeコマンドの削除方法
#https://qiita.com/ponchuchu/items/49d79969b4e2a438d915
# 1. codeコマンドの場所を特定
Write-Host "1. codeコマンドの場所を特定します..."
Get-Command code -All | Format-List Source
# 2. Cursorのcodeコマンドファイルを確認
# [ユーザー名] を実際のWindowsユーザー名に置き換えてください
$cursorBinPath = "$env:LOCALAPPDATA\Programs\cursor\resources\app\bin"
import hou
def create_rotating_rainbow_setup(node_name="rotating_rainbow_geo"):
"""
Houdiniシーンに回転する虹色のエフェクトを生成するノードネットワークを作成します。
Args:
node_name (str): 作成するGeoノードの名前。
"""
# 現在のコンテキスト(通常は/obj)を取得
@bonsai
bonsai / japan-prefectures-roman-hepburn.csv
Created July 21, 2025 18:11 — forked from mugifly/japan-prefectures-roman-hepburn.csv
日本の都道府県名のヘボン式ローマ字リスト (CSV) / The list of Roman alphabet (Hepburn system) of the prefectures in Japan
北海道 ほっかいどう hokkaido
青森県 あおもり aomori
岩手県 いわて iwate
宮城県 みやぎ miyagi
秋田県 あきた akita
山形県 やまがた yamagata
福島県 ふくしま fukushima
茨城県 いばらき ibaraki
栃木県 とちぎ tochigi
群馬県 ぐんま gumma
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
public class HelloWorldImageGenerator {
public static void main(String[] args) {
// 画像のサイズを設定
int width = 400;
@bonsai
bonsai / colaboratory.ipynb
Created May 1, 2021 14:30
Colaboratory へようこそ
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
//『 FN-M16P Embedded MP3 Audio Module 』(DFPlayer Mini)のテスト。
//start(pin8)で再生start、next(pin9)で次の曲、stop(pin10)で停止
//このスケッチでは2曲目でBREAKしてstartSWの待機状態になります(^^;)
#include <SoftwareSerial.h> //arudinoに元から入っているライブラリです。
#include <DFPlayer_Mini_Mp3.h> //dfrobotのサイトからDLしたライブラリに収録されてます。
#define start 8 // 置き換え(start→ ”8”)
#define next 9 // 置き換え(next→ ”9”)
#define stop 10 // 置き換え(stop→ ”10”)
<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/" xmlns:os="http://a9.com/-/spec/opensearch/1.1/">
<os:ShortName>define[g]</os:ShortName>
<os:InputEncoding>UTF-8</os:InputEncoding>
<os:Image width="16" height="16">data:image/x-icon;base64,R0lGODlhEAAQAOMAAMzMzAAAAGZmzGZm/5mZzJlmzMzM/2aZzJmZ/5lm/wAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAAAALAAAAAAQABAAAAQ4MMhJhRU0SyuHnkSBTeMXcJJhBgQRHMi6yVkhCwMiiCv62qbSSQacrTyT4ieRdMkGhwCSdhJSVxEAOw==</os:Image>
<os:Url type="application/x-suggestions+json" method="GET" template="http://suggestqueries.google.com/complete/search?output=firefox&amp;client=firefox&amp;hl=ja&amp;qu={searchTerms}">
</os:Url><os:Url type="text/html" method="GET" template="http://www.google.co.jp/search?q=define%3A{searchTerms}">
</os:Url>
</SearchPlugin>
<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/" xmlns:os="http://a9.com/-/spec/opensearch/1.1/">
<os:ShortName>gist[g]</os:ShortName>
<os:InputEncoding>UTF-8</os:InputEncoding>
<os:Image width="16" height="16">data:image/x-icon;base64,R0lGODlhEAAQAOMAAAAAABgYtRgYrRgYlBBSMcaEMQhKKTFaKcZ7Mb17MRBKKYxzKQAAAAAAAAAAAAAAACH5BAEAAAAALAAAAAAQABAAAARGEMhAq7y36iBwphjXhaAnnKR3DUOqAqyrxt8Lt18w05fAYawBQeULBguGA9E4MCASB4XtYnAuDsopoJqASrVVBMKglVSrEQA7</os:Image>
<os:Url type="text/html" method="GET" template="http://www.google.co.jp/search?hl=ja&domains=gist.github.com&sitesearch=gist.github.com&q={searchTerms}">
</os:Url>
</SearchPlugin>