Skip to content

Instantly share code, notes, and snippets.

@bellbind
bellbind / how-to-start-android-project.md
Created January 26, 2011 08:40
[doc][android] How to use Android SDK on Windows with cygwin
@bellbind
bellbind / 00readme.md
Last active September 7, 2023 16:55
[helia] serving contents from browser to browser with nodejs helia as a bootstrap target

0. Setup

Clone this repo:

$ git clone https://gist.github.com/23ad8d6e3a1509335253ff074fcd3cb6.git helia-b2b-sharing
$ cd helia-b2b-sharing/

Generate npm-browser.js npm package bundle:

@bellbind
bellbind / 00readme.md
Last active September 7, 2023 11:22
[helia] halt access cid served on browser from nodejs

0. Setup

Clone this repo:

$ git clone https://gist.github.com/5565c22255ae87a3c8e9948b467ee894.git helia-b2l-buggy
$ cd helia-b2l-buggy/

Generate npm-browser.js npm package bundle:

@bellbind
bellbind / 00readme.md
Last active September 4, 2023 11:46
[helia] direct connect case of 2 helia nodes between browser and nodejs

0. Setup

Clone this repo:

$ git clone https://gist.github.com/28021e2ff6c99251746a1a46d1a62f68.git helia-b2l-direct
$ cd helia-b2l-buggy/

Generate npm-browser.js npm package bundle:

@bellbind
bellbind / clock.html
Last active August 22, 2023 12:30
[SVG][JavaScript] SVG Analog Clock
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="user-scalable=no" />
<link rel="icon" href="././clock.svg" />
<link rel="manifest" href="./manifest.json" />
<title>SVG Clock</title>
<style>
html {height: 100%;}
@bellbind
bellbind / imgs.txt
Last active August 20, 2023 04:15
[threejs][android]panorama with gyro sensor(with deviceorientation event)
from flickr search "spherical panorama" with CCL
- camp.jpg: https://www.flickr.com/photos/onecm/8738030320
- chruch.jpg: https://www.flickr.com/photos/linkahwai/4787682866
- ruin.jpg: https://www.flickr.com/photos/onecm/9503927685
- snow.jpg: https://www.flickr.com/photos/alexschreyer/8457868515
- susukino.jpg: https://www.flickr.com/photos/vitroids/3903978334
- underbridge.jpg: https://www.flickr.com/photos/onecm/11610797676
This file has been truncated, but you can view the full file.
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
}) : x)(function(x) {
if (typeof require !== "undefined")
@bellbind
bellbind / dep-bootstrap.js
Last active July 19, 2023 03:30
[helia] connect browser to server on localhost with archived webRTCStar
export * from "@libp2p/bootstrap";
@bellbind
bellbind / avcapture.m
Last active June 19, 2023 01:21
[objective-c][macosx]capturing image from webcam
// capture image from webcam(e.g. face time)
// for OSX 10.9 (use AVFoundation API instead of deprecated QTKit)
// clang -fobjc-arc -Wall -Wextra -pedantic avcapture.m
// -framework Cocoa -framework AVFoundation -framework CoreMedia
// -framework QuartzCore -o avcapture
#import <AVFoundation/AVFoundation.h>
#import <AppKit/AppKit.h>
@interface Capture : NSObject <AVCaptureVideoDataOutputSampleBufferDelegate>
@bellbind
bellbind / multi-nodes-cdn.html
Last active June 18, 2023 13:46
[helia][browser] Simple example of using Helia IPFS node on browser
<!doctype html>
<html>
<head>
<link rel="icon" href="data:image/x-icon," />
<script type="module" src="./multi-nodes-cdn.js"></script>
</head>
<body>
Open JavaScript console to check running logs
</body>
</html>