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 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
import shutil
import os
from distutils.dir_util import copy_tree
def make_new_project(new_project_name):
"""
start new empty C++ folder + structure
"""
@zeffii
zeffii / qjson.h
Created December 4, 2020 12:32 — forked from earonesty/qjson.h
#ifndef INCLUDED_QJSON_H
#define INCLUDED_QJSON_H
#include <string>
#include <vector>
#include <map>
#include <stdexcept>
#include <memory>
#include <algorithm>
#include <istream>
@zeffii
zeffii / why_not_work.csd
Created October 11, 2020 12:18
the commented code works, but not the loop code.
i_num_notes = lenarray(i_notes)
;aNewVoice pad_voice i_notes[0], i_duration
;aSig += aNewVoice
;aNewVoice2 pad_voice i_notes[1], i_duration
;aSig += aNewVoice2
;aNewVoice2 pad_voice i_notes[2], i_duration
;aSig += aNewVoice2