Skip to content

Instantly share code, notes, and snippets.

View katsuyoshi's full-sized avatar

Katsuyoshi Ito katsuyoshi

  • ITO SOFT DESIGN Inc.
  • Akita, Japan
View GitHub Profile
@PGMY
PGMY / iOSLib.md
Last active December 11, 2017 06:26
iOSで使えるライブラリなリポジトリまとめ
@jadeatucker
jadeatucker / HOWTODMG.md
Last active November 2, 2024 15:02
How to create a "DMG Installer" for Mac OS X

Creating a "DMG installer" for OS X

A DMG Installer is convenient way to provide end-users a simple way to install an application bundle. They are basically a folder with a shortcut to the Applications directory but they can be customized with icons, backgrounds, and layout properties. A DMG file (.dmg) is a Mac OS X Disk Image file and it is used to package files or folders providing compression, encryption, and read-only to the package.

##Creating the DMG file #Disk Utility

@rgcottrell
rgcottrell / gist:5b876d9c5eea4c9e411c
Created September 21, 2014 17:38
An FM Synthesizer in Swift using AVAudioEngine
import AVFoundation
import Foundation
// The maximum number of audio buffers in flight. Setting to two allows one
// buffer to be played while the next is being written.
private let kInFlightAudioBuffers: Int = 2
// The number of audio samples per buffer. A lower value reduces latency for
// changes but requires more processing but increases the risk of being unable
// to fill the buffers in time. A setting of 1024 represents about 23ms of
@kakutani
kakutani / ruby-jp-for-rubyistist.md
Last active September 28, 2022 02:04
Rubyist-istのためのruby-jpチャンネルガイド

Rubyist-istのためのruby-jpチャンネルガイド

ruby-jpには大量にチャンネルがあります。 rubyist-istの観点から少し整理してみました。

Rubyistの集まりに関するチャンネル

  • [#regional_rb][0]: 地域のRubyist同士の集まり(ミートアップ)に関する話題が中心
  • [#rubykaigi][1]: RubyKaigiの話題
  • [#rubyworld-conference][2]: 毎年11月に松江で開催されるRubyWorld Conferenceの話題
@ksasao
ksasao / ContactTracingAppFinder.ino
Last active December 7, 2020 18:33
接触確認アプリが有効になっているかを調べるアプリです。数十センチ程度まで近づくと素早く点滅します。M5 Atom 用です。https://twitter.com/ksasao/status/1274385507565178885 参照。Apache 2.0ライセンスです。
#include <M5Atom.h>
#include <BLEDevice.h>
// Contact Tracing Bluetooth Specification (Apple/Google)
// https://blog.google/documents/58/Contact_Tracing_-_Bluetooth_Specification_v1.1_RYGZbKW.pdf
const char* uuid = "0000fd6f-0000-1000-8000-00805f9b34fb";
bool found = false;
class MyAdvertisedDeviceCallbacks: public BLEAdvertisedDeviceCallbacks {
void onResult(BLEAdvertisedDevice advertisedDevice) {
@tomoto
tomoto / M5Stack_Atom_LED_Example.cpp
Created July 10, 2020 09:52
M5Stack Atom Matrix LED example (without M5Atom library that causes flicker)
#include <FastLED.h>
const int NUM_LEDS = 25;
const int LED_PIN = 27;
static CRGB leds[NUM_LEDS];
CRGB correct(CRGB c) {
// fix RGB order :(
return CRGB(c.g, c.r, c.b);
}