Skip to content

Instantly share code, notes, and snippets.

View blazejhanzel's full-sized avatar

Błażej Hanzel blazejhanzel

View GitHub Profile
@blazejhanzel
blazejhanzel / LineCounter.cs
Last active February 12, 2024 19:03
Tool for displaying current number of lines in every script hold in "Assets/Scripts/" directory.
using System.Collections.Generic;
using System.IO;
using System.Linq;
using UnityEditor;
using UnityEngine;
/// <summary>
/// Tool for displaying current number of lines in every script hold in "Assets/Scripts/" directory.
/// </summary>
public class LineCounter : EditorWindow
@blazejhanzel
blazejhanzel / cores.sh
Created December 13, 2021 21:07
Simple bash program for disabling some cpu cores
#!/bin/bash
# USING
# chmod +x cores.sh
# ./cores.sh x
# where x is a number of cores you want to have active, all others will be disabled
# CONFIG
coresCount=16 # write your number of cores (threads)
@blazejhanzel
blazejhanzel / heroku_loader.html
Last active June 18, 2021 07:11
This loader could be uploaded to simple html hosting and will check if heroku free server is ready. If ready, it will move user to target url. Provides better feeling instead of waiting at browsers "pending" page.
<html>
<head>
<title>Loading page name - Loading...</title>
<style>
.lds-dual-ring {
display: inline-block;
width: 80px;
height: 80px;
}
.lds-dual-ring:after {