git checkout --orphan future-master
git add -A # Add all files and commit them
git commit
git branch -D master # Deletes the master branch
git branch -m master # Rename the current branch to master
git push -f origin master # Force push master branch to github
git gc --aggressive --prune=all # remove the old files
Known Issues: On High Sierra there are problems related to the screen brightness and sleep issues.
from maya import cmds, OpenMayaUI as omui | |
from Qt import QtWidgets, QtCore, QtCompat | |
def Dock(Widget, width=300, show=True): | |
"""Dock `Widget` into Maya | |
Arguments: | |
Widget (QWidget): Class | |
show (bool, optional): Whether to show the resulting dock once created |
An example of parallel evaluation in Maya 2018+
Scenes
Usage
Files prefixed scene*
generate nodes suitable for parallelism, profile*
contain ways to measure performance. Each snippet of code is meant to be copy/pasted into the Script Editor and run.
import SwiftUI | |
func bind<Value, Answer>(_ value: Value, to answer: (Value) -> Answer) -> Answer { answer(value) } | |
struct Example: View { | |
struct SomeGroup: Identifiable, RandomAccessCollection { | |
typealias Indices = CountableRange<Int> | |
public typealias Index = Int; | |
var id: Int |
WARNING: Article moved to separate repo to allow users contributions: https://github.com/raysan5/custom_game_engines
A couple of weeks ago I played (and finished) A Plague Tale, a game by Asobo Studio. I was really captivated by the game, not only by the beautiful graphics but also by the story and the locations in the game. I decided to investigate a bit about the game tech and I was surprised to see it was developed with a custom engine by a relatively small studio. I know there are some companies using custom engines but it's very difficult to find a detailed market study with that kind of information curated and updated. So this article.
Nowadays lots of companies choose engines like [Unreal](https:
Expand
This is a very basic guide, just to understand what's needed to set it up.
If you have any questions you can find me at https://nostr.com/8355095016fddbe31fcf1453b26f613553e9758cf2263e190eac8fd96a3d3de9
- a webserver with a domain under your control
- nostr account with private and public key setup on https://nostr.com, preferably set up with nos2x: https://github.com/fiatjaf/nos2x
Create a file that resolves to <domain>/.well-known/nostr.json, and fill it out like this (enter the name you want to use, and input your own public key, make sure its the HEX-key):
{
""" | |
caching test/demo | |
first: | |
pip install fastapi aiocache "uvicorn[standard]" | |
""" | |
import asyncio | |
import contextlib | |
import json | |
import logging |