Skip to content

Instantly share code, notes, and snippets.

View terokorp's full-sized avatar

Tero Korpela terokorp

View GitHub Profile
@psd
psd / index.html
Created August 31, 2010 21:12
cards for a REST design exercise
<!doctype html>
<html>
<head>
<style>
body {
font-family: "Helvetica Neue", Arial;
padding: 10mm;
}
h2 {
clear: both;
@brandonheyer
brandonheyer / rgbToHSL.php
Last active June 12, 2021 06:49
PHP snippet to convert RGB to HSL and HSL to RGB.
<?
function rgbToHsl( $r, $g, $b ) {
$oldR = $r;
$oldG = $g;
$oldB = $b;
$r /= 255;
$g /= 255;
$b /= 255;
<!DOCTYPE html>
<html>
<head>
<title>Username to UUID</title>
<?php
function getUUID($users,$agent) {
$data = array();
foreach ($users as $key => $value) {
array_push($data, $value);
}
@MattRix
MattRix / PhysicsFollower.cs
Last active May 7, 2024 09:06
A thing you can use to make a rigidbody move towards a position reliably
using UnityEngine;
using System.Collections;
using System;
[RequireComponent (typeof(Rigidbody))]
public class PhysicsFollower : MonoBehaviour
{
public Transform target;
Rigidbody rb;
@terokorp
terokorp / docker-compose.yml
Created November 21, 2022 00:53
docker-compse.yml for minecraft
version: "3.3"
services:
mc:
image: itzg/minecraft-server
network_mode: bridge
ports:
- 25565:25565
environment:
EULA: "TRUE"