Skip to content

Instantly share code, notes, and snippets.

View JakubMifek's full-sized avatar
💭
I may be slow to respond.

Jakub Mifek JakubMifek

💭
I may be slow to respond.
View GitHub Profile
@JakubMifek
JakubMifek / darky.in
Created February 3, 2015 15:36
Náhodná data k dárkům
100000
42 18468 6335 26501 19170 15725 11479 29359 26963 24465 5706 28146 23282 16828 9962 492 2996 11943 4828 5437 32392 14605 3903 154 293 12383 17422 18717 19719 19896 5448 21727 14772 11539 1870 19913 25668 26300 17036 9895 28704 23812 31323 30334 17674 4665 15142 7712 28254 6869 25548 27645 32663 32758 20038 12860 8724 9742 27530 779 12317 3036 22191 1843 289 30107 9041 8943 19265 22649 27447 23806 15891 6730 24371 15351 15007 31102 24394 3549 19630 12624 24085 19955 18757 11841 4967 7377 13932 26309 16945 32440 24627 11324 5538 21539 16119 2083 22930 16542 4834 31116 4640 29659 22705 9931 13978 2307 31674 22387 5022 28746 26925 19073 6271 5830 26778 15574 5098 16513 23987 13291 9162 18637 22356 24768 23656 15575 4032 12053 27351 1151 16942 21725 13967 3431 31108 30192 18008 11338 15458 12288 27754 10384 14946 8910 32210 9759 24222 18589 6423 24947 27507 13031 16414 29169 901 32592 18763 1656 17411 6360 27625 20538 21549 6484 27596 4042 3603 24351 10292 30837 9375 11021 4597 24022 27349 23200 19669 24485
@JakubMifek
JakubMifek / Serialize.cs
Last active March 22, 2016 12:38
Version 1.0
using System;
using System.Text;
using System.Collections.Generic;
using System.IO;
namespace UnreflectedSerializer
{
public class RootDescriptor<T>
{
public string Name { get; set; }
using System;
using System.Text;
using System.Collections.Generic;
using System.IO;
namespace UnreflectedSerializer
{
public class RootDescriptor<T>
{
public string Name { get; set; }
using System;
using System.Text;
using System.Collections.Generic;
using System.IO;
namespace XMLSerializers
{
public class RootDescriptor<T>
{
public TypeInfo<T> info;
using System;
using System.Text;
using System.Collections.Generic;
using System.IO;
namespace XMLSerializers
{
public static class XMLDescriptor<T>
{
public static string Serialize(string name, T instance, int depth)
@JakubMifek
JakubMifek / Lloyd.pl
Last active April 10, 2017 08:03
Computes Puzzle 8 (Lloyd 8) - even for nonstandard inputs.
% Author: Jakub Mifek
% Date: 04/10/2017
% merge(?X,?Y,?H):- merges two lists together into one
% NOT USED
merge([],X,X).
merge(X,[],X).
merge([H|T],[H2|T2],[H,H2|Rest]):-
merge(T,T2,Rest).
#include <stdio.h>
int
main (int argc, char *argv[]) {
const int i = 2;
const int * const pi = &i;
int *xi;
xi = (int *)pi;
import Text.Read
import Control.Monad
import Control.Monad.State
import System.Random
----------------
-- Structures --
----------------
data Symbol = Circle | Cross deriving (Show, Read, Eq, Enum)
@JakubMifek
JakubMifek / N&N's
Last active October 25, 2017 16:05
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MyProject
{
class Program
package cz.sokoban4j.simulation.board.minimal;
import cz.sokoban4j.simulation.board.compact.BoardCompact;
import cz.sokoban4j.simulation.board.compact.CTile;
import cz.sokoban4j.simulation.board.compressed.StateCompressed;
import cz.sokoban4j.simulation.board.oop.Board;
/**
* Runtime-part of the Sokoban game state (excluding static board configuration, just positions).
* <p>