Skip to content

Instantly share code, notes, and snippets.

View zeffii's full-sized avatar

Dealga McArdle zeffii

View GitHub Profile
@zeffii
zeffii / NodeTree
Created May 20, 2021 15:52
Sverchok.0.6.0.0 | Blender.2.93.0Beta | NodeTree | 2021.05.20 | 17:52 | license: CC BY-SA
{
"export_version": "0.10",
"framed_nodes": {},
"groups": {},
"nodes": {
"Circle": {
"bl_idname": "SvCircleNode",
"color": [
0.0,
0.5,
# This file is part of project Sverchok. It's copyrighted by the contributors
# recorded in the version control history of the file, available from
# its original location https://github.com/nortikin/sverchok/commit/master
#
# SPDX-License-Identifier: GPL3
# License-Filename: LICENSE
import bpy
from bpy.props import FloatProperty, EnumProperty, BoolProperty, StringProperty
from mathutils import Vector
@zeffii
zeffii / pygments_replacement_blender.py
Last active May 2, 2021 07:46
makes one text object and changes the characters individually with respect to their material
import bpy
import numpy as np
#
text_in = bpy.data.texts["Text"].as_string()
def get_obj_and_fontcurve(context, name):
collection = context.scene.collection
curves = bpy.data.curves
objects = bpy.data.objects
@zeffii
zeffii / NodeTree
Created April 14, 2021 14:55
Sverchok.0.6.0.0 | Blender.2.93.0Alpha | NodeTree | 2021.04.14 | 16:55
{
"export_version": "0.10",
"framed_nodes": {},
"groups": {},
"nodes": {
"Objects in Lite": {
"bl_idname": "SvObjInLite",
"color": [
0.0,
0.5,
@zeffii
zeffii / NodeTree
Created April 14, 2021 14:55
Sverchok.0.6.0.0 | Blender.2.93.0Alpha | NodeTree | 2021.04.14 | 16:55
{
"export_version": "0.10",
"framed_nodes": {},
"groups": {},
"nodes": {
"Objects in Lite": {
"bl_idname": "SvObjInLite",
"color": [
0.0,
0.5,
@zeffii
zeffii / NodeTree
Created April 14, 2021 13:52
Sverchok.0.6.0.0 | Blender.2.93.0Alpha | NodeTree | 2021.04.14 | 15:52
{
"export_version": "0.10",
"framed_nodes": {},
"groups": {},
"nodes": {
"Objects in Lite": {
"bl_idname": "SvObjInLite",
"color": [
0.0,
0.5,
@zeffii
zeffii / NodeTree
Created April 14, 2021 13:40
Sverchok.0.6.0.0 | Blender.2.93.0Alpha | NodeTree | 2021.04.14 | 15:40
{
"export_version": "0.10",
"framed_nodes": {},
"groups": {},
"nodes": {
"Objects in Lite": {
"bl_idname": "SvObjInLite",
"color": [
0.0,
0.5,
@zeffii
zeffii / time_fix.cpp
Created January 5, 2021 15:55
cpp time solutions
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <string>
#include <sstream>
#include <iostream>
#include <time.h>
#include <ctime>
#include <vector>
#include <fstream>
#include <iomanip>
@zeffii
zeffii / count_lines_of_code_git.sh
Created December 23, 2020 16:08 — forked from dantheman213/count_lines_of_code_git.sh
Count how many lines of code are in git repo
git ls-files | xargs wc -l
@zeffii
zeffii / parse_consolas.cpp
Created December 4, 2020 21:18
C++ consolas.fnt parser
#include <SDL2/SDL.h>
// #include <SDL2/SDL_image.h>
#include <iostream>
#include <vector>
#include <string>
#include <fstream>
#include <stdio.h>
#include <regex>
struct Glyph