This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bl_info = { | |
"name": "Simple My Tools b28x", | |
"author":"Lightnet", | |
"version":(0,0,1), | |
"blender": (2,82,0), | |
"location": "Object", | |
"category": "Object", | |
"warning": "", | |
"wiki_url": "", | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#================================================ | |
# CMAKE BUILD | |
# WINDOW BUILD CURRENTLY | |
#================================================ | |
cmake_minimum_required(VERSION 3.20) # FetchContent is available in 3.11+ | |
message("CMAKE_BUILD_TYPE >>> " ${CMAKE_BUILD_TYPE}) | |
#convert checks for deubug / release | |
string(TOLOWER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE) | |
if(CMAKE_BUILD_TYPE STREQUAL "debug") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#================================================ | |
# CMAKE BUILD | |
# WINDOW BUILD CURRENTLY | |
#================================================ | |
cmake_minimum_required(VERSION 3.20) # FetchContent is available in 3.11+ | |
#message("CMAKE_BUILD_TYPE >>> " ${CMAKE_BUILD_TYPE}) | |
#convert checks for debug / release | |
if(CMAKE_BUILD_TYPE) | |
string(TOLOWER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE) | |
endif() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// base on this links | |
// https://gist.github.com/webdesserts/5632955 | |
// need this for "gulp default" to run command line | |
// @babel/register | |
import { src, dest, watch, parallel, series } from "gulp"; | |
import {spawn} from "child_process"; | |
import config from'./config'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://www.tutorialguruji.com/javascript/reusing-database-connections-with-azure-functions-using-javascript/amp/ | |
// https://pretagteam.com/question/reusing-database-connections-with-azure-functions-using-javascript | |
class DBTest{ | |
constructor(){ | |
this.data="test"; | |
} | |
setText(params) { | |
this.data=params; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//https://atomizedobjects.com/blog/javascript/develop-2d-javascript-games-html5-react/ | |
import { useEffect } from 'react'; | |
export default function useEvent(event, handler) { | |
useEffect(() => { | |
// initiate the event handler | |
window.addEventListener(event, handler); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createContext, useContext, useMemo, useState } from "react"; | |
// create content variable for store data | |
export const ForumContext = createContext(); | |
// check Provider root level top | |
export function useForum(){ | |
const context = useContext(ForumContext); | |
if (!context) { | |
throw new Error(`useForum must be used within a UserContext`) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//listen to event context | |
import React,{ useEffect, useState } from "react"; | |
import { useEvent } from "./EventProvider.js"; | |
export default function EventLog(){ | |
const [log, setLog] = useState(""); | |
const {event} = useEvent(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useEffect, useState } from "react"; | |
export default function AceEditor(props){ | |
const [Ace, SetAce] = useState(null); | |
useEffect( async()=>{ | |
if (typeof window !== 'undefined') {//server ssr | |
const ReactAce = await import("react-ace"); //load in order | |
//await import("ace-builds/src-noconflict/mode-java"); //load in order |