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.
*/
@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
@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>
@Erackron
Erackron / dbhandler.php
Last active December 18, 2015 12:58
This is a simple MySQL database handler in PHP using PDO. The default database type used is MySQL, but this can be changed by making the following changes: 1: Update the default port number on line 28. 2: Update the DSN on line 30 to reflect the database system used. 3: Change the SQL query on line 44 to the equivalent of the SQL query to select…
<?php
/**
* @author Jorai Rijsdijk
* @desc A simple MySQL database handler in PHP using PDO.
* @version 1.3
* Note:
* The default database type used is MySQL, but this can be changed by making the following changes:
* 1: Update the default port number on line 28 (constructor).
* 2: Update the DSN on line 30 (new PDO object) to reflect the database system used.
* 3: Change the SQL query on line 44 (in the setDB function) to the equivalent of the SQL query to select a different database.
@timvisee
timvisee / firefox-youtube-fix.css
Created March 25, 2016 14:18
Fix YouTube's crappy crashing Firefox browsers
@-moz-document domain("youtube.com") {
#guide-channels{
display:none !important;
}
}
@bow-fujita
bow-fujita / jqm-glyphicons.css
Last active August 23, 2017 18:30
Apply Bootstrap's Glyphicons as .ui-icon-glyphicon-* in jQueryMobile
@font-face {
font-family: 'Glyphicons Halflings';
src: url('fonts/glyphicons-halflings-regular.eot');
src: url('fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('fonts/glyphicons-halflings-regular.woff') format('woff'), url('fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('fonts/glyphicons-halflings-regular.svg#glyphicons-halflingsregular') format('svg');
}
.ui-icon-glyphicon-asterisk:after,
.ui-nosvg .ui-icon-glyphicon-asterisk:after {
color:#fff;
font-size:14px;

Keybase proof

I hereby claim:

  • I am timvisee on github.
  • I am timvisee (https://keybase.io/timvisee) on keybase.
  • I have a public key whose fingerprint is 6762 5BAB 0A20 0421 96C2 386C FECE FDA6 CED0 5802

To claim this, I am signing this object:

#! /bin/sh
### BEGIN INIT INFO
# Provides: php-fastcgi
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop php-cgi in external FASTCGI mode
# Description: Start and stop php-cgi in external FASTCGI mode
### END INIT INFO
@datagrok
datagrok / ergodox.md
Last active January 14, 2019 07:45
Reflections on my ErgoDox keyboard