Skip to content

Instantly share code, notes, and snippets.

@nadavrot
nadavrot / Matrix.md
Last active July 16, 2024 10:05
Efficient matrix multiplication

High-Performance Matrix Multiplication

This is a short post that explains how to write a high-performance matrix multiplication program on modern processors. In this tutorial I will use a single core of the Skylake-client CPU with AVX2, but the principles in this post also apply to other processors with different instruction sets (such as AVX512).

Intro

Matrix multiplication is a mathematical operation that defines the product of

@majstudio
majstudio / Example.cs
Created January 26, 2018 04:50
Fancy Vector3 Range in Unity Inspector
using UnitEngine;
public class Example : MonoBehaviour
{
//As easy as this !
//You can adjust the slider limits in the inspector as well
public Vector3Range v3Range;
//...
@JakubNei
JakubNei / Prefix only issue.md
Last active December 11, 2017 20:23
Naming issue (Prefix only issue)

Prefix only issue

The general goal of your codebase should be to make it as easy to understand as possible.

Easy to understand results in:

  • less bugs due to insufficient knowledge (because over time you might forget some parts)
  • implicit understanding without the need for comments (less time spent reading comments)
  • no need for documentation or intruduction to the project, since it's faster to just look at the code
  • in case everyone dies, rookie can just come in and easily continue on

General way of working

Merge only working code.

If you are unsure, ask.

If you are stuck for over 1 hour, ask (anyone).

@dddnuts
dddnuts / Fastfile
Created June 4, 2016 10:39
Build ipa from Unity project with fastlane
fastlane_version "1.94.0"
default_platform :ios
platform :ios do
desc "Run Unity Editor tests"
lane :test_unit do
unity(
run_editor_tests: true
)