This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime, timedelta | |
from enum import Enum | |
from queue import PriorityQueue | |
from time import mktime | |
from typing import Optional | |
import bge | |
from rx.core.typing import AbsoluteTime, RelativeTime, ScheduledAction, TState | |
from rx.disposable import Disposable | |
from rx.scheduler import ScheduledItem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/source/blender/blenkernel/intern/python_component.c b/source/blender/blenkernel/intern/python_component.c | |
index f288f091f8f..d66de7ae3ed 100644 | |
--- a/source/blender/blenkernel/intern/python_component.c | |
+++ b/source/blender/blenkernel/intern/python_component.c | |
@@ -43,6 +43,7 @@ | |
#ifdef WITH_PYTHON | |
# include "Python.h" | |
+# include "../../python/intern/bpy_rna.h" | |
# include "generic/bpy_internal_import.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Fixture: | |
value = rv.from_value(1) | |
doubled = rv.map(value)(ops.map(lambda v: v * 2)) | |
numbers = rv.combine(value, doubled)(lambda o: rx.combine_latest(*o)) | |
combined = rv.combine_latest(value, doubled)(ops.map(lambda v: f"value = {v[0]}, doubled = {v[1]}")) | |
zipped = rv.zip(value, doubled)(ops.map(lambda v: f"{v[0]} * 2 = {v[1]}")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using static System.Linq.Enumerable; | |
using System.Linq; | |
using AlleyCat.Common; | |
using AlleyCat.Event; | |
using Godot; | |
using Godot.Collections; | |
using JetBrains.Annotations; | |
using LanguageExt; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected virtual void OnAnimation(float delta) | |
{ | |
if (!Skeleton.FindClosestAncestor<INamed>().Exists(n => n.DisplayName == "Player")) | |
{ | |
LookAt(Skeleton.FindPlayer<IHumanoid>().Map(p => p.Vision.Viewpoint)); | |
} | |
EyeTrackingTarget.Iter(target => | |
{ | |
Range<float> AddRange(Range<float> range1, Range<float> range2) => |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var loader = ResourceUtils | |
.Load<PackedScene>("res://Data/Scenes/Character Creator.tscn") | |
.ToObservable(this.GetScheduler()); | |
var progress = loader.SelectMany(v => v.LeftAsEnumerable().ToObservable()); | |
var scene = loader.SelectMany(v => v.RightAsEnumerable().ToObservable()); | |
progress.Subscribe(e => GD.Print($"- Progress: {e.Done} of {e.Total}")); | |
scene.Subscribe(s => GD.Print($"- Finished loading: {s}")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Threading.Tasks; | |
using AlleyCat.Autowire; | |
using AlleyCat.Common; | |
using Godot; | |
namespace AlleyCat.IO | |
{ | |
[Singleton(typeof(IResourceMonitor))] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.greencatsoft.greenlight.grammar | |
import scala.language.implicitConversions | |
import com.greencatsoft.greenlight.{ TestRegistry, TestReporter } | |
import com.greencatsoft.greenlight.grammar.ModalVerb.{ Can, Must, Should } | |
import com.greencatsoft.greenlight.grammar.Specification.{ CaseDescription, WhatIsExpected } | |
import com.greencatsoft.greenlight.grammar.Statement.{ Assertation, CaseDefinition } | |
import com.greencatsoft.greenlight.grammar.Verb.FollowedByNegation | |
import com.greencatsoft.greenlight.matcher.Matcher |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package todomvc.example | |
import scala.scalajs.js | |
import scala.scalajs.js.Any.{ fromFunction1, fromString, jsArrayOps } | |
import scala.scalajs.js.annotation.JSExport | |
import org.scalajs.dom.{ Element, console } | |
import com.greencatsoft.angularjs.{ Attributes, Controller, ElementDirective, IsolatedScope, Requires, TemplatedDirective } | |
import com.greencatsoft.angularjs.core.Scope |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object CustomerDirective extends ElementDirective with TemplateUrlProvider with IsolatedScope { | |
override val name = "myCustomer" | |
override val templateUrl = "my-customer-iso.html" | |
bindings ++= Seq( | |
"customerInfo" := "info", | |
"title" :@ "", | |
"close" :& "onClose" |
NewerOlder