Skip to content

Instantly share code, notes, and snippets.

View lloc's full-sized avatar
🏠
Working from home

Dennis Ploetner lloc

🏠
Working from home
View GitHub Profile
@lloc
lloc / Tags.php
Last active January 2, 2018 23:35
Class of the changelog.php post
<?php
namespace lloc\changelog;
/**
* Class Tags
* @package lloc\changelog
*/
class Tags {
@lloc
lloc / ArrayOutput.php
Created January 2, 2018 23:25
Class of the changelog.php post
<?php
namespace lloc\changelog;
/**
* Class ArrayOutput
* @package lloc\changelog
*/
class ArrayOutput {
<?php
namespace lloc\tournament;
/**
* Class RoundRobin
*
* @package lloc\tournament
*/
class RoundRobin {
<?php
function getRoundRobinTable ($n) {
$result = array ();
if ($n % 2 == 0) {
for ($r = 0; $r < $n - 1; $r++) {
for ($i = 0; $i < $n / 2; $i++) {
$result[$r][] = array (
($i == 0 ? 0 : ($r + $i) % ($n - 1) + 1),
($n - 1 + $r - $i) % ($n - 1) + 1,
#!/usr/bin/env bash
cd /usr/lib/vice
mkdir temp
cd temp
wget http://www.zimmers.net/anonftp/pub/cbm/crossplatform/emulators/VICE/vice-2.4.tar.gz
tar vzxf vice-2.4.tar.gz
# Copy the C64-specific system ROMs
cd /usr/lib/vice/temp/vice-2.4/data/C64/
Write: / 'Merry Christmas'.
fn main() {
println!("Merry Christmas");
}
public class MerryChristmas {
public static void main(String[] args) {
System.out.println("Merry Christmas");
}
}
package main
import "fmt"
func main() {
fmt.Println("Merry Christmas")
}
#include <iostream>
using namespace std;
int main()
{
cout << "Merry Christmas";
return 0;
}