Skip to content

Instantly share code, notes, and snippets.

View timvisee's full-sized avatar
Consuming coffee

Tim Visée timvisee

Consuming coffee
View GitHub Profile
@timvisee
timvisee / gist:5372287
Created April 12, 2013 14:10
Weather and World -Control of Safe Creeper 1.4
WeatherControl:
Enabled: false
CustomWeatherTypes:
Enabled: false
Clear:
Allowed: true
Rain:
Allowed: true
ThunderStorm:
Allowed: true
@timvisee
timvisee / Head.php
Last active March 14, 2022 14:57
MCDragonRealms Minecraft player head avatar class.
<?php
/**
* MCDragonRealms Minecraft player head avatar class.
*
* This class is able to generate player avatars based on any Minecraft player skin.
*
* Use the `p` GET param when doing direct HTTP requests to this file to set the avatar type, size and username. (p=TYPE/SIZE/USERNAME)
*
* Current supported types are (as you can see at the bottom of the script):
@timvisee
timvisee / main.c
Last active August 29, 2015 14:07
HHS Sudoku Week 4
/**
* Sudoku Opdracht - Week 4.
* A practical computer science project.
*
* @author Tim Visee
* @version 2
* @website http://timvisee.com/
* @copyright Copyright (c) Tim Visee 2014. All rights reserved.
*/
/**
* Flight Times - A practical computer science project.
*
* @author Tim Visee
* @website http://timvisee.com/
* @copyright Copyright (c) Tim Visee 2014. All rights reserved.
*/
#include <stdio.h>
#include <stdlib.h>
@timvisee
timvisee / Minecraft Server Runner.bat
Last active August 29, 2015 14:13
Minecraft Server Runner
REM Set some constants
set appName=Minecraft Server Runner
set appVersionCode=2
set appVersion=0.1.1
REM Initialize
call:init
REM Build the window
call:buildWindow
#include "mastersettings.h"
#include <avr/io.h>
#include <util/delay.h>
#include "twiMaster.h"
#include "usart_fnct.h"
#include <stdbool.h>
#include <avr/interrupt.h>
#define BAUDRATE 9600
#define UBRRVAL ((F_CPU/(BAUDRATE*16UL))-1)
//
// CODE
//
use carbon\core\datetime\DateTime;
use carbon\core\datetime\DateTimeUtils;
use carbon\core\datetime\DateTimeZoneUtils;
$timezone = DateTimeZoneUtils::parse('Europe/London');
@timvisee
timvisee / DateInterval.php
Created May 2, 2015 17:19
Carbon CMS DateTime Classes
<?php
namespace carbon\core\datetime\interval;
use carbon\core\datetime\DateTime;
use DateInterval as PHPDateInterval;
use DomainException;
use Exception;
use InvalidArgumentException;
<?php
namespace carbon\core\datetime\interval;
use carbon\core\datetime\DateTime;
use DateInterval as PHPDateInterval;
use DomainException;
use Exception;
use InvalidArgumentException;
<?php
/**
* DateTime.php
*
* A class to representation date and time as an object.
* This class allows you to get the current date and time of the server, to format the date and time in many different
* ways using different timezones and also to travel through time.
* Note: Even though this class uses futuristic technology to make date and time calculations, it doesn't allow humans
* to travel through time.