Skip to content

Instantly share code, notes, and snippets.

View zeffii's full-sized avatar

Dealga McArdle zeffii

View GitHub Profile
@nortikin
nortikin / bra
Created September 10, 2020 16:45
Sverchok.0.6.0.0 (2620430) | Blender.2.83.3 | bra | 2020.09.10 | 19:45
{
"export_version": "0.079",
"framed_nodes": {},
"groups": {},
"nodes": {
"A Number": {
"bl_idname": "SvNumberNode",
"height": 100.0,
"hide": false,
"label": "",
@zeffii
zeffii / rd4.py
Last active February 20, 2020 09:52
rd fix for all numpy
"""
in steps s d=1200 n=2
in seed s d=14 n=2
in framenum s d=0 n=2
out verts_out v
"""
def setup():
@dantheman213
dantheman213 / count_lines_of_code_git.sh
Created May 27, 2017 19:06
Count how many lines of code are in git repo
git ls-files | xargs wc -l
@earonesty
earonesty / qjson.h
Last active December 4, 2020 12:32
#ifndef INCLUDED_QJSON_H
#define INCLUDED_QJSON_H
#include <string>
#include <vector>
#include <map>
#include <stdexcept>
#include <memory>
#include <algorithm>
#include <istream>
@enjalot
enjalot / README.md
Last active November 27, 2023 00:28
Bookmarklet
@zeffii
zeffii / flunkbar
Last active August 29, 2015 14:19 — forked from anonymous/flunkbar
https://github.com/nortikin/sverchok
mkdir ~/BioBlender
git clone https://github.com/MonZop/BioBlender.git ~/BioBlender
ln -s ~/BioBlender ~/.config/blender/%BLENDER_VERSION_NUM%/scripts/addons/BioBlender
== or ==
# in a folder wich contains BioBlender.
git clone https://github.com/MonZop/BioBlender.git BioBlender
{'NurbsPath.055':
[[(0.12160392850637436, 0.05287003517150879, -0.03692507743835449, 1.0),
(0.20541998744010925, 0.13668608665466309, -0.03692507743835449, 1.0),
(0.06398054212331772, 0.10001659393310547, -0.03692507743835449, 1.0)]],
'NurbsPath.054':
[[(0.415458083152771, 0.9291355013847351, -0.03692507743835449, 1.0),
(0.6130191087722778, 0.9274251461029053, -0.03692507743835449, 1.0),
(0.5703786015510559, 0.5558017492294312, -0.03692507743835449, 1.0),
(0.7150659561157227, 0.47425976395606995, -0.03692507743835449, 1.0),
(0.5637456178665161, 0.4129241108894348, -0.03692507743835449, 1.0),
@zeffii
zeffii / stats2.py
Last active December 19, 2015 23:59 — forked from anonymous/stats2.py
reading stats from api.stackexchange uncompressing gzipped response
import time
import json
from urllib.request import urlopen
import gzip
# site stats collector possible add filter &filter=!*LIKa78145bHnc-F
url = "http://api.stackexchange.com/2.1/info?site=blender.stackexchange.com"
b_time = time.time()
@zeffii
zeffii / my_matrix.py
Last active December 19, 2015 15:39 — forked from anonymous/my_matrix.py
# my_matrix.py
class Matrix:
def __init__(self, T, N):
self.T = T # All fields (list)
self.N = N # (n*n)
self.as_2d_list = self.vec_to_mat()
def vec_to_mat(self):
rows, cols = self.N
@pcote
pcote / meta_troll.py
Created April 8, 2013 19:49
Playing around with custom class construction just to see how it works. Good dumb fun.
# meta_troll.py
# This is me messing around with Python type constructors just for fun.
# Try and see what happens if you uncomment the __metaclass__ line in Foo.
class TrollType(type):
def __new__(meta, classname, bases, clssDict):
class MyTroll(object):
def say_stuff(self):
print("you mad bro?")
return MyTroll