Skip to content

Instantly share code, notes, and snippets.

@Lightnet
Lightnet / AnimeFaceRandomEmotionsWidget_.gitignore
Created November 28, 2013 04:27
Anime Face Random Emotions.
.gradle
/local.properties
/.idea/workspace.xml
.DS_Store
<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 / 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
@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 / 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 / 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 / gunjstrustsharekey.js
Last active January 28, 2021 09:14
gunjstrustsharekeyv3
/*
Self contain Sandbox Gun Module chain for auth sea.js:
Created by: Lightnet
License: MIT
Version: 3.0
Last Update:2019.08.17
Credit: amark ( https://github.com/amark/gun)
Status(Work in progress!):
@Lightnet
Lightnet / clientprototype.js
Last active September 26, 2019 06:00
gunjstrustsharekey.js
//===============================================
// CLEAR GUN DATABASE
localStorage.clear();
//(function() {
//===============================================
// INIT GUN DATABASE
let gunurl = window.location.origin+'/gun';
//console.log(gunurl);
var gun = Gun(gunurl);
gun.on('hi', peer => {//peer connect
//===============================================
// CLEAR GUN DATABASE
localStorage.clear();
//(function() {
//===============================================
// INIT GUN DATABASE
let gunurl = window.location.origin+'/gun';
//console.log(gunurl);
var gun = Gun(gunurl);
gun.on('hi', peer => {//peer connect
@Lightnet
Lightnet / blendercopyarmture.py
Last active April 13, 2020 19:34
blender armature copy bones to armature bone
import bpy
#source_rig = 'MBlab_sk'
#dest_rigs = ['Armature']
############
bone_data = {}
selectobjname = None
def edit_rig(rigname):
bpy.ops.object.mode_set(mode='OBJECT')
bpy.ops.object.select_all(action='DESELECT')