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 / datetime_DateTime.php
Created May 8, 2015 16:40
Carbon CMS DateTime classes snapshot at 2015-05-08 18:40:00
<?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.
@timvisee
timvisee / ReactionWheelController.py
Created September 3, 2015 16:52
A reaction wheel controller example by Tim Visee
# -*- coding: utf-8 -*-
"""
Reaction wheel controller, by Tim Visee.
@author: Tim Visee
"""
import serial
import time
@timvisee
timvisee / challenge.1.1.java
Created September 7, 2015 11:30
Challenge 1.1
package com.timvisee.hhs;
public class Main {
/**
* Main method called on start.
*
* @param args Startup arguments.
*/
public static void main(String[] args) {
@timvisee
timvisee / challenge1.2.java
Created September 7, 2015 11:32
Challenge 1.2
package com.timvisee.hhs;
public class Main {
/** Variable count. */
public static final int VAR_COUNT = 3;
/**
* Main method called on start.
*
@timvisee
timvisee / challenge1.3.java
Created September 7, 2015 11:35
Challenge 1.3
package com.timvisee.hhs;
public class Main {
/** The maximum value of the sum. */
public static final int MAX = 10;
/**
* Main method called on start.
*
@timvisee
timvisee / VPSscript-0.1.1.sh
Created September 10, 2015 20:00
VPSscript 0.1.1
#!/bin/bash
# VPS setup script by Tim Visee
APP_NAME="VPS-Builder";
APP_VERSION_NAME="0.1";
APP_VERSION_CODE=1;
LOG_PREFIX="[$APP_NAME] ";
LOG_PREFIX_ERROR="[ERROR] "
# Configuration
package com.timvisee.safecreeper.block.state;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import org.bukkit.Bukkit;
import org.bukkit.block.Block;
import org.bukkit.block.BlockState;
import org.bukkit.entity.LivingEntity;
import org.bukkit.inventory.ItemStack;
"C:\Program Files\Java\jdk1.8.0_20\bin\java" -Dmaven.multiModuleProjectDirectory=C:\Users\Tim\IdeaProjects\AuthMeReloaded "-Dmaven.home=C:\Program Files\Apache\Maven 3.3.3" "-Dclassworlds.conf=C:\Program Files\Apache\Maven 3.3.3\bin\m2.conf" -Didea.launcher.port=7534 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 15.0.1\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Apache\Maven 3.3.3\boot\plexus-classworlds-2.5.2.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 15.0.1\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher -Didea.version=15.0.1 clean install -B
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for fr.xephi:authme:jar:5.1-SNAPSHOT
[WARNING] 'dependencies.dependency.systemPath' for org.anjocaido:groupmanager:jar should not point at files within the project directory, ${basedir}/lib/EssentialsGroupManager-2.13.1.jar will be unresolvable by dependent
@timvisee
timvisee / NumberGuessTimer.ino
Last active December 9, 2015 22:13
Number Guess Timer example, Arduino code.Sample code for a HHS challenge.
/**
* Number Guess Timer example.
* Sample code for a HHS challenge.
*
* @author Tim Visée
* @website http://timvisee.com/
*/
#include <Arduino.h>
set(${CMAKE_PROJECT_NAME}_BOARD uno)
set(${CMAKE_PROJECT_NAME}_PORT COM5)