Skip to content

Instantly share code, notes, and snippets.

@Lightnet
Lightnet / gunadapteracces,js
Created August 7, 2019 21:14
gunadapteracces
;(function(){
/* UNBUILD */
var root;
if(typeof window !== "undefined"){ root = window }
if(typeof global !== "undefined"){ root = global }
root = root || {};
var console = root.console || {log: function(){}};
function USE(arg, req){
return req? require(arg) : arg.slice? USE[R(arg)] : function(mod, path){
@Lightnet
Lightnet / client.js
Created July 31, 2019 18:25
Gun 2 Server Instance
// var Gun = require('gun'); // in NodeJS
// var Gun = require('gun/gun'); // in React
//console.log(location.host+"/gun");
//console.log(window.location.href+'gun');
//console.log('http://localhost:8080/gun');
//console.log(window.location.origin+'/gun');
//var gun = Gun(window.location.origin+'gun');
let gunurl = window.location.origin+'/gun';
@Lightnet
Lightnet / gunjstrustsharekeyv2.js
Last active January 28, 2021 09:14
add share key graph node for gunjs for more options
/*
Self contain Sandbox Gun Module:
Created by: Lightnet
Credit: amark ( https://github.com/amark/gun)
License: MIT
@Lightnet
Lightnet / gunjstrustsharekey.js
Last active August 5, 2019 22:49
gunjstrustsharekeyv1.js
/*
Self contain Sandbox Gun Module:
version: 1.0
Created by: Lightnet
Credit: amark ( https://github.com/amark/gun)
License: MIT
<html>
<head>
<title>voxel paint app</title>
<!--
<script src="/socket.io/socket.io.js"></script>
-->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no,user-scalable=no,maximum-scale=1">
<script src="https://aframe.io/releases/0.7.1/aframe.min.js"></script>
@Lightnet
Lightnet / AnimeFaceRandomEmotionsWidget_.gitignore
Created November 28, 2013 04:27
Anime Face Random Emotions.
.gradle
/local.properties
/.idea/workspace.xml
.DS_Store