Skip to content

Instantly share code, notes, and snippets.

@orblazer
orblazer / IO.ts
Created December 9, 2021 17:51
Programmig engine
import type Node from './Node'
// eslint-disable-next-line @typescript-eslint/no-empty-function
function noop() {}
export type ReceiveCallback = (payload: unknown | null) => void
export default class IO {
protected readonly node!: Node
protected readonly onReceive!: ReceiveCallback
protected to: IO | null = null
@orblazer
orblazer / poe_FlasksMacro.ahk
Last active April 9, 2020 12:39
PoE Flasks macro
;----------------------------------------------------------------------
; PoE Flasks macro for AutoHotKey
; Inspiration : https://github.com/JoelStanford/PoEAutoFlask/blob/master/PoEAutoFlask.ahk
;----------------------------------------------------------------------
#IfWinActive Path of Exile
#SingleInstance force
#NoEnv
#Warn
#Persistent
using UnityEngine;
using UnityEngine.Tilemaps;
using System.Collections;
using System.Collections.Generic;
public enum BlockMaterial { GRASS, SAND, WATER }
public class MapGenerator : MonoBehaviour
{
public Tilemap map;
@orblazer
orblazer / init.mcfunction
Last active April 13, 2018 13:12
Minecraft entity counts
# Init scoreboard
scoreboard objectives add EntityCount dummy
scoreboard players set Entities EntityCount 0
scoreboard players set Items EntityCount 0
# Filter entity
scoreboard players tag @e[type=!player] add noCountEntity
scoreboard players tag @e[type=item] add noCountEntity
# Summon exetor
@orblazer
orblazer / slider.css
Last active June 27, 2019 17:01
Slider (full) JS by Orblazer
.slider {
position: relative;
}
/**
* Slides
*/
.slider > .slides {
height: 620px;
margin: 0;
@orblazer
orblazer / ISendPro.php
Created February 2, 2017 11:37
API ISendPro
<?php
/**
* Send an SMS with ISend Pro
* User: Rodriguez Dorian
* Date: 25/01/2017
* Time: 15:06
*/
class ISendPro
{
private $apiKey, $transmitter;
@orblazer
orblazer / modal.css
Last active June 27, 2019 17:04
Modal JS by Orblazer
.modal-open {
overflow: hidden;
}
.modal {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;