Skip to content

Instantly share code, notes, and snippets.

View alexpana's full-sized avatar

Alexandru Pană alexpana

  • Cluj-Napoca, RO
View GitHub Profile
@alexpana
alexpana / inspiration.md
Last active May 25, 2018 06:21
For the forgetful

PostRock

  • Alcest
  • Circadian Eyes
  • Explosions in the Sky
  • Eluvium
  • Tides from Nebula
  • Break my fucking sky
  • Her name is Calla
  • Nyctalgia
  • God is an Astronaut
using UnityEngine;
namespace Camera
{
public class OrbitCameraController : MonoBehaviour
{
private const float MIN_DISTANCE = 0.5f;
private const float MAX_DISTANCE = 50f;
import bpy
import os
from time import time
from bpy.props import BoolProperty, IntProperty, PointerProperty
bl_info = {
"name": "Image Auto Reload",
"description": "",
"author": "alexandru.pana@manabreakstudios.com",
"version": (0, 0, 1),
float FParticleRibbonEmitterInstance::Spawn(float DeltaTime)
{
bool bProcessSpawnRate = Spawn_Source(DeltaTime);
if (bProcessSpawnRate == false)
{
return SpawnFraction;
}
UParticleLODLevel* LODLevel = SpriteTemplate->LODLevels[0];
check(LODLevel);
@alexpana
alexpana / gist:e924e5e2b61fd28f0d24a1120d0a38ef
Created July 10, 2018 16:14
estimate read time of article in JS
WPM = 200; m = Array.from(document.getElementsByTagName("p")).reduce((acc, t) => acc + t.innerHTML, "").split(" ").length / WPM; h = Math.floor(m / 60); m = Math.floor(m % 60); msg = h > 0 ? h+"h "+m+"m" : m+"m";alert("Estimated read time: " + msg)
const std = @import("std");
// const input = @embedFile("18.test.input");
const Operator = enum {
l_paren,
r_paren,
add,
sub,
mul,