Skip to content

Instantly share code, notes, and snippets.

View kgbu's full-sized avatar

Kazutaka Ogaki kgbu

View GitHub Profile
@ksasao
ksasao / HTTPSTest.ino
Last active August 29, 2020 05:16
M5Stack HTTPS Client with Azure Functions
#include <M5Stack.h>
#include <WiFiClientSecure.h>
WiFiClientSecure client;
const char* ssid = "your SSID"; // WiFi SSID
const char* password = "your WiFi password"; // WiFi PW
const char* host = "host name (e.g. example.azurewebsites.net)";
const char* path = "url (e.g. /api/EnvMonitor?code=AAA==)";
@voluntas
voluntas / open_momo.rst
Last active September 11, 2025 13:58
OpenMomo プロジェクト
@GOROman
GOROman / WebCam.cs
Last active July 3, 2021 01:22
UnityでWeb Cameraをテクスチャにアサインし、そのテクスチャをPNGでセーブする例
using UnityEngine;
using System.Collections;
using System.IO;
public class WebCam : MonoBehaviour {
public int Width = 1280;
public int Height = 720;
public int FPS = 15;
public Material material;
gem install fpm --no-ri --no-rdoc
# packagesディレクトリ以下をまとめてpackagingする
go build -o YOURAPP yourapp.go
mkdir -p pakcages/usr/local/YOURAPP/{bin,etc}
cp yourapp packages/usr/local/YOUARPP/bin/yourapp
(cd packages; fpm -s dir -t deb -n YOURAPP -v 0.1.0 .)
ls -la packages
  • 大半のgo applicationならdependsはないからfpmはとても楽な選択
@voluntas
voluntas / shiguredo_mqtt_broker_log.rst
Last active December 3, 2017 09:50
時雨堂 MQTT ブローカー Akane 開発ログ

時雨堂 MQTT ブローカー Akane 開発ログ

日時:2017-12-03
作:時雨堂
バージョン:17.6.30
URL:https://shiguredo.jp/

2017 年 6 月 30 日をもって開発/販売を終了しました。

@yanatan16
yanatan16 / Makefile.golang
Created June 18, 2012 22:26
Makefile for Golang projects
# Makefile for a go project
#
# Author: Jon Eisen
# site: joneisen.me
#
# Targets:
# all: Builds the code
# build: Builds the code
# fmt: Formats the source files
# clean: cleans the code
@e000
e000 / donotuse.py
Created June 13, 2011 23:30
How to NEVER use lambdas.
##########################################################
# How to NEVER use Lambdas. An inneficient and yet educa-#
# tonal guide to the proper misuse of the lambda constru-#
# ct in Python 2.x. [DO NOT USE ANY OF THIS EVER] #
# by: e000 (13/6/11) #
##########################################################
## Part 1. Basic LAMBDA Introduction ##
# Well, it's worth diving straight into what lambdas are.
# Lambdas are pretty much anonymous "one line" functions