RCW(Runtime Callable Wrapper)が大量に生成されます。
すると
C# workbook.Close();
の内部で後片付けが発生し、
RCW(Runtime Callable Wrapper)が大量に生成されます。
すると
C# workbook.Close();
の内部で後片付けが発生し、
| import { DynamicLibrary } from 'node:ffi'; | |
| // DLLのロード | |
| const user32 = new DynamicLibrary('user32.dll'); | |
| // 関数の定義とシンボルの取得 | |
| // MessageBoxW(HWND hWnd, LPCWSTR lpText, LPCWSTR lpCaption, UINT uType) | |
| const MessageBoxW = user32.getFunction('MessageBoxW', { | |
| parameters: ['pointer', 'buffer', 'buffer', 'u32'], | |
| result: 'i32' |
| const puppeteer = require('puppeteer'); | |
| const fs = require('fs/promises'); | |
| const path = require('path'); | |
| /** | |
| * Sanitizes a string to be used as a valid filename. | |
| * @param {string} title The string to sanitize. | |
| * @returns {string} A sanitized string safe for use as a filename. | |
| */ | |
| function sanitizeFilename(title) { |
| MRuby::Gem::Specification.new('mruby-webcam') do |spec| | |
| spec.license = 'MIT' | |
| spec.authors = 'Junichi Kajiwara' | |
| if build.kind_of?(MRuby::CrossBuild) | |
| if %w(x86_64-w64-mingw32 i686-w64-mingw32).include?(build.host_target) | |
| spec.cxx.flags << "-I/usr/#{build.host_target}/include" | |
| spec.linker.flags_before_libraries << "/usr/#{build.host_target}/lib/libopencv_objdetect310.a" | |
| spec.linker.flags_before_libraries << "/usr/#{build.host_target}/lib/libopencv_highgui310.a" | |
| spec.linker.flags_before_libraries << "/usr/#{build.host_target}/lib/libopencv_videoio310.a" | |
| spec.linker.flags_before_libraries << "/usr/#{build.host_target}/lib/libopencv_imgcodecs310.a" |
| /** | |
| * This example creates an ffi.Callback from the "Math.abs()" JavaScript function | |
| * then creates a ffi.ForeignFunction from that callback function pointer. | |
| * | |
| * The result is basically the same as calling "Math.abs()" directly, haha! | |
| * | |
| * This example should basically just run forever, in an endless loop. | |
| * This file is a "pummel test" of sorts for: | |
| * https://github.com/rbranson/node-ffi/issues/74 |
| //kjunichi | |
| #include <WiFiS3.h> | |
| #include <Arduino_LED_Matrix.h> | |
| #include <UrlEncode.h> | |
| #include <URLCode.h> | |
| #include <ArduinoJson.h> | |
| #include <MDNS_Generic.h> | |
| #include "arduino_secrets.h" | |
| #include "anim.h" |
| const { createCanvas, Image, registerFont } = require('canvas') | |
| const { serve } = require(`@hono/node-server`) | |
| const { Hono } = require('hono') | |
| const app = new Hono() | |
| app.get('/', (c) => { | |
| return c.text('Hello Hono!') | |
| }) |
| sun | mon | tue | wed | thu | fri | sat |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| [6] | [] | |||||
| 13 | [] | |||||
| 20 | ||||||
| 27 | 30 |