Skip to content

Instantly share code, notes, and snippets.

@illua1
illua1 / .cpp
Created June 3, 2023 10:47
some noise
/** \file
* \ingroup bli
* \brief A class wrapper to represent flag as boolean reference.
*/
namespace blender {
template<typename T = int/* Type of a flag number. */>
class FlagViuwer {
private:
@illua1
illua1 / gist:ebd36093f457b4531c7594127cc3f980
Last active November 30, 2022 15:11
it was a long time ago and it didn't exist
func main(){
var GetCollege DataBase;
timeForLoad := 0;
StartText = GetStartComand();
var input string;
for(true){
if( timeForLoad < len(StartText) ){
input = StartText[timeForLoad];
package main
import (
"fmt"
)
type (
typeID int
Math interface {
String() string
@illua1
illua1 / Book.go
Created April 2, 2022 14:51
generics test
package main
import "fmt"
type Page[T any] struct {
body []T
after *Page[T]
fill bool
index int
}
@illua1
illua1 / .go
Last active January 9, 2022 16:47
package main
// https://go.dev/play/p/kOKhCHfhkXS
import (
"fmt"
"strconv"
)
type Char struct {
Body string
Type bool
@illua1
illua1 / .go
Last active January 3, 2022 20:36
Formula action trigger pipeline
package main
//https://go.dev/play/p/wOSDRMN5qc-
import (
"fmt"
"strconv"
)
/*
@illua1
illua1 / .py
Last active November 11, 2021 09:46
import bpy
import mathutils
import math
def Lerp(A, B, x) :
return A+(B-A)*x
def VectorLerp(A,B,x) :
ret = mathutils.Vector((0,0,0))
for i in range(len(A)) :
ret[i] = Lerp(A[i], B[i], x)
@illua1
illua1 / VectorMAthTest.go
Last active October 23, 2021 22:26
my brain...
package main
//https://play.golang.org/p/l5uXV8899Vo
import "fmt"
const(
x int = iota
y
z
)
var(
package main
import(
"fmt"
)
type Command [4]uint16
type (
VmInt int