Skip to content

Instantly share code, notes, and snippets.

@cat-in-136
cat-in-136 / COCOA_Counter.ino
Last active September 20, 2023 01:14
COCOA Counter for M5Stack 〜新型コロナウイルス接触確認アプリが周囲に何個あるか数えてみるを M5Stack に移植してみた〜
// based on https://qiita.com/coppercele/items/fef9eacee05b752ed982#m5stickc%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3
#define ENABLE_M5STACK_UPDATER
#include <Arduino.h>
#include <M5Stack.h>
#ifdef ENABLE_M5STACK_UPDATER
#include <M5StackUpdater.h>
#endif
#include <BLEDevice.h>
@hisasann
hisasann / VolumeController.cs
Last active October 22, 2017 05:31
windows上でボリュームを変更するコード
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CoreAudioApi;
namespace DeviceManager.Volume
{
class VolumeController
@cat-in-136
cat-in-136 / background.js
Last active May 21, 2017 04:25
iis-sensor : show a page notification if served by Microsoft-IIS server
"use strict";
var IIS_SERVER_LIST = new Set();
browser.webRequest.onHeadersReceived.addListener((e) => {
for (let header of e.responseHeaders) {
if ("server" === header.name.toLowerCase()) {
if (header.value.startsWith("Microsoft-IIS/")) {
let url = new URL(e.url);
IIS_SERVER_LIST.add(url.host);
@voluntas
voluntas / webrtc.rst
Last active January 23, 2024 06:57
WebRTC の未来