Skip to content

Instantly share code, notes, and snippets.

@voluntas
voluntas / mqtt.rst
Last active February 15, 2025 04:35
MQTT とはなんだったのか

MQTT とはなんだったのか

更新:2017-05-09
作者:@voluntas
バージョン:3.14
URL:http://voluntas.github.io/

MQTT をググって調べた人向け

@nobonobo
nobonobo / install.sh
Last active December 6, 2015 03:17
Goで子供向けピアノを作ってみた。iOS/Android/Desktopで動くよ!
go get -u golang.org/x/mobile/cmd/...
go get -u github.com/nobonobo/gomobileapp
gomobileapp init
go get -d github.com/nobonobo/nobopiano
# for iOS
gomobileapp build -target ios github.com/nobonobo/nobopiano
# 実機にnobopiano.appをインストール
# for Android
require = function a(b, c, d) {
function e(g, h) {
if (!c[g]) {
if (!b[g]) {
var i = "function" == typeof require && require;
if (!h && i) return i(g, !0);
if (f) return f(g, !0);
var j = new Error("Cannot find module '" + g + "'");
throw j.code = "MODULE_NOT_FOUND", j
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@w00fz
w00fz / sphp.sh
Last active November 28, 2024 12:37
PHP switcher
#!/bin/bash
# Check if command was ran as root.
if [[ $(id -u) -eq 0 ]]; then
echo "The command \"sphp\" should not be executed as root or via sudo directly."
echo "When a service requires root access, you will be prompted for a password as needed."
exit 1
fi
# Usage
# Go parameters
GOCMD=go
GOBUILD=$(GOCMD) build
GOCLEAN=$(GOCMD) clean
GOTEST=$(GOCMD) test
GOGET=$(GOCMD) get
BINARY_NAME=mybinary
BINARY_UNIX=$(BINARY_NAME)_unix
package main
import (
"bytes"
"fmt"
"net"
"runtime"
"sync"
"sync/atomic"
"time"
@JimLiu
JimLiu / How AI Could Empower Any Business | Andrew Ng | TED.ass
Created September 11, 2023 06:53
How AI Could Empower Any Business | Andrew Ng | TED
[Script Info]
Title: How AI Could Empower Any Business | Andrew Ng | TED
ScriptType: v4.00+
WrapStyle: 0
Collisions: Reverse
PlayResX: 384
PlayResY: 288
Timer: 100.0000
ScaledBorderAndShadow: no