あまり深く理解してないので識者のツッコミ大歓迎
取り敢えず最低限だけ
# 補完を有効にする| // HSVに変換して肌色っぽい領域を抽出する | |
| // 顔認識結果は全く使わない | |
| void detect(void) | |
| { | |
| IplImage *image_src; // 元画像 カラーモデルはBGR | |
| IplImage *image_src_hsv; // 元画像をHSV表色系に変換したもの | |
| IplImage *image_only_hadairo; // 肌色領域だけを抽出したマスク画像 | |
| IplImage *image_dst; // 何らかのフィルタの結果を入れる予定だけど、今は元画像のまま | |
| char* file_name = "images/purikura.jpg"; | |
| if((image_src = loadImage(file_name, CV_LOAD_IMAGE_ANYCOLOR)) == NULL){ |
| # abort if already under tmux | |
| [[ -n $TMUX_PANE ]] && return | |
| # zsh-specific includes | |
| zmodload -i zsh/datetime | |
| zmodload -i zsh/stat | |
| # place to store the chart | |
| RAINBARF_OUT=~/.rainbarf.out | |
| # update period, in seconds |
| // 処理対象の文字列 | |
| var str = "Hello, JavaScript!"; | |
| // 通常のfor文で行う | |
| for (var i = 0; i < str.length; i++) { | |
| console.log(str[i]); | |
| } | |
| // 一応動くけど、まぁやめた方が良い | |
| for (var i in str) { |
alternatively use: http://geoff.greer.fm/lscolors/
The value of this variable describes what color to use for which attribute when colors are enabled with CLICOLOR. This string is a concatenation of pairs of the format fb, where f is the foreground color and b is the background color.
The color designators are as follows:
a black
| module.exports = (grunt) -> | |
| # configuration | |
| grunt.initConfig | |
| # grunt sass | |
| sass: | |
| compile: | |
| options: | |
| style: 'expanded' |
| /* | |
| v2: Matt Rix pointed out there's an undocumented ONGeneratedCSProjectFiles() callback | |
| https://gist.github.com/MattRix/0bf8de88e16e8b494dbb | |
| v1: Still available in the gist history if you want a FileSystemWatcher solution! | |
| THE PROBLEM: | |
| - Unity constantly rewrites its .sln files whenever you rename/add/remove scripts |
| import Foundation | |
| import Combine | |
| public func async<T>(_ body: @escaping (Yield<T>) throws -> ()) -> Async<T> { | |
| Async(body: body) | |
| } | |
| public func await<P>(_ publisher: P) throws -> P.Output where P: Publisher { | |
| try publisher.await() | |
| } |
| #!/usr/bin/env swift | |
| // Desktop backdrop - lyrics overlay, video wallpaper, and more | |
| // Uses the same lyrics cache as now-playing | |
| // NOTE: Must run with swift interpreter (not swiftc) for MediaRemote access | |
| import AppKit | |
| import AVFoundation | |
| import Observation | |
| import SQLite3 |
定額サブスクリプションによる AI の利用はあまり持続性がないとされ、法人向けには選択肢が減っていっている。 その中で Google Gemini の最新のモデルである Gemini 3.5 Flash を定額利用できる選択肢が密かに生まれていたので共有する。
On June 18, 2026, Gemini CLI and Gemini Code Assist IDE extensions will stop serving requests for Google AI Pro and Ultra, as well as those using it free of charge using Gemini Code Assist for individuals.