Skip to content

Instantly share code, notes, and snippets.

View agoose77's full-sized avatar
🏠
Working from home

Angus Hollands agoose77

🏠
Working from home
View GitHub Profile
def build_trig_pull(i, ex, args):
i.value = hive.attribute()
i.value_in = hive.pull_in(i.value)
i.value_out = hive.pull_out(i.value)
ex.value_in = hive.antenna(i.value_in)
ex.value_out = hive.output(i.value_out)
i.trig_pre = hive.triggerfunc()
i.do_trig_pre = hive.triggerable(i.trig_pre)
import hive
import dragonfly
def build_some_hive(i, ex, args):
i.total_score = hive.attribute()
i.pull_in_total_score = hive.pull_in(i.total_score)
i.pull_out_total_score = hive.pull_out(i.total_score)
i.divide_by_players = dragonfly.op.Op(mode="pull", operator="div")
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@agoose77
agoose77 / Question_2_fit.ipynb
Last active November 6, 2015 23:19
Question 2 Graph Fit
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@agoose77
agoose77 / Question_3.ipynb
Last active November 8, 2015 20:10
Question 3
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@agoose77
agoose77 / question_2_lin.ipynb
Created November 8, 2015 19:53
Question 2 line
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import hive
class HiveInstantiator_:
def __init__(self, hive_cls):
self._environment_cls = hive_cls
self._plugins = {}
self._sockets = {}
import hive
class EventBindClass:
def __init__(self):
pass
class EventCls:
import hive
from hive.classes import Method
from ..event import BindEvent
class BindCls:
def __init__(self):
pass
@agoose77
agoose77 / superformula.ipynb
Created January 12, 2016 11:24
Polar implementation of SuperFormula
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.