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
| # ----------------------------------------------------------------------- | |
| # FFmpeg Windows Cross-Compilation Dockerfile (Minimal Build for WebCam) | |
| # ----------------------------------------------------------------------- | |
| FROM ubuntu:24.04 AS builder | |
| # build-essential: gcc, make等のビルドツール | |
| # mingw-w64: Windows向けクロスコンパイル環境 | |
| # nasm, yasm: FFmpegのビルドに必要 | |
| # git: FFmpegのソース取得に必要 | |
| # ca-certificates: git clone でのHTTPS通信に必要 |
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
| import time | |
| class FrameRateController: | |
| def __init__(self, target_fps: float, smooth_alpha: float = 0.05): | |
| self.target_fps = target_fps | |
| self.target_frame_duration = 1.0 / target_fps | |
| self.last_frame_time = time.perf_counter() | |
| self.sleep_time = 0.0 | |
| self.smooth_alpha = smooth_alpha |
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
| const functions = require('@google-cloud/functions-framework'); | |
| const compression = require('compression'); | |
| const express = require('express'); | |
| const app = express(); | |
| app.use(compression()); | |
| app.disable('x-powered-by'); | |
| app.all('/', async (req, res) => { | |
| try { |
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
| $rawText = "パスワード" | |
| Add-Type -AssemblyName System.Security | |
| $SALT_LEN = 16 # 128bit | |
| $SALT_BASE64_LEN = 24 | |
| function ConvertTo-EncryptedString { | |
| param( | |
| [string]$text |
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
| // Angular Flex-Layout の代替 | |
| [fxLayout] { | |
| box-sizing: border-box; | |
| display: flex; | |
| } | |
| [fxLayout^='row'] { | |
| flex-direction: row; | |
| } |
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
| # Requires -Version 7.1 | |
| [CmdletBinding()] | |
| param ( | |
| [Parameter(Mandatory)] | |
| [string] | |
| $SrcDir, | |
| [Parameter(Mandatory)] | |
| [string] |
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
| [OutputType("System.Array")] | |
| [CmdletBinding()] | |
| param ( | |
| [Parameter(Mandatory, ValueFromPipeline)] | |
| [psobject]$InputObject, | |
| [Parameter(Mandatory, Position = 0)] | |
| [int]$Size, | |
| [Parameter()] |
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
| import java.nio.ByteBuffer; | |
| import java.nio.file.Files; | |
| import java.nio.file.Paths; | |
| import java.nio.file.StandardOpenOption; | |
| public class CountLines { | |
| private static final int MAX_BUFFER_SIZE = 1024 * 1024; | |
| public static void main(String[] args) throws Exception { | |
| if (args.length < 1) { |
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
| *://udemy.benesse.co.jp/* | |
| *://www.udemy.com/* | |
| *://www.sejuku.net/* | |
| *://www.pasonatech.co.jp/* | |
| *://tech-camp.in/* | |
| *://career.levtech.jp/* | |
| *://techacademy.jp/* |
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
| # beep音を無効化 | |
| Set-PSReadlineOption -BellStyle None | |
| function TextEncodingsArgumentCompleter { | |
| [OutputType([System.Management.Automation.CompletionResult])] | |
| param( | |
| [string] $CommandName, | |
| [string] $ParameterName, | |
| [string] $WordToComplete, | |
| [System.Management.Automation.Language.CommandAst] $CommandAst, |
NewerOlder