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 / 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.
########################################################################
# #
# .htaccess #
# Default .htaccess file for Carbon CMS. #
# @author Tim Visee #
# @website http://timvisee.com/ #
# @copyright Copyright © Tim Visee 2012-2013, All rights reserved. #
# #
########################################################################
<?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.