Skip to content

Instantly share code, notes, and snippets.

View ikkentim's full-sized avatar

Tim Potze ikkentim

View GitHub Profile
@ikkentim
ikkentim / primegenerator.cs
Last active August 29, 2015 14:05
A prime generator. I think it works all right
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
namespace Primer
{
class PrimeGenerator
{
private readonly BigInteger _checkStep = 5000;
@ikkentim
ikkentim / Postfix calculator.cs
Created September 11, 2014 12:20
Simple postfix calculator, including a infix to postfix converter.
using System;
using System.Collections.Generic;
using System.Linq;
namespace Calculator
{
class Program
{
static void Main(string[] args)
{
@ikkentim
ikkentim / ProgressBar.cs
Created November 15, 2014 14:16
ProgressBar class for SA-MP#
public class ProgressBar : Pool<ProgressBar>
{
private readonly PlayerTextDraw _back;
private readonly PlayerTextDraw _fill;
private readonly PlayerTextDraw _main;
private float _value;
private float _max;
public ProgressBar(Player player, float x, float y, float value, Color color = default(Color),
float width = 55.5f, float height = 3.2f,
@ikkentim
ikkentim / designer.html
Created November 18, 2014 14:32
designer
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../core-input/core-input.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
@ikkentim
ikkentim / brainfuck.cpp
Last active August 29, 2015 14:14
Basic brainfuck interpreter
#include <iostream>
#include <fstream>
using namespace std;
int main() {
ifstream codeFile ("main.bf");
codeFile.seekg(0,ifstream::end);
int size=codeFile.tellg();
@ikkentim
ikkentim / asciitable.bf
Last active August 29, 2015 14:14
brainfuck ASCII tabl
+ #0: Current char
[
.
> +++++ +++++ +++++ +++++ +++++ +++++ ++. (space)
> +++++ +++++ +++++ +++++ +++++ +++++ +++++ +++++ +++++ +++++ +++++ +++.[-] (:) and clear
<.[-] (space) and clear
<[->>+<<]>>[-<+<+>>]< Copy #0 to #1
>>++++++++++<<[->+>-[>+>>]>[+[-<+>]>+>>]<<<<<<]>>[-]>>>++++++++++<[->-[>+>>]>[+[-
@ikkentim
ikkentim / hfd.shfbproj
Created April 12, 2015 14:59
hfd.shfbproj - sampsharp sandcastle project
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<!-- The configuration and platform will be used to determine which assemblies to include from solution and
project documentation sources -->
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{583d34c5-10c3-4687-9612-96c673e19173}</ProjectGuid>
<SHFBSchemaVersion>1.9.9.0</SHFBSchemaVersion>
@ikkentim
ikkentim / FuzzyLogic.cs
Last active August 29, 2015 14:21
Fuzzy Logic
using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace FuzzyLogic
{
internal class Program
{
private static void Main(string[] args)
{
@ikkentim
ikkentim / Program.cs
Created September 17, 2015 22:56
List logitech devices connected, quick and dirty written
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace TestList
{
internal static class LgLcd
[15-11-26 22:09:54] Info: Compiling Building Mod by Kenney to bin/build-151126220954257.dll...
[15-11-26 22:09:54] Info: Compiling from `Custom Scenery.csproj`.
[15-11-26 22:09:54] Error: Directory '/Applications/Parkitect.app/Parkitect_Data\Managed' not found.
[15-11-26 22:11:48] Info: Compiling Building Mod by Kenney to bin/build-151126221148355.dll...
[15-11-26 22:11:48] Info: Compiling from `Custom Scenery.csproj`.
[15-11-26 22:11:48] Error: Failed to resolve referenced assembly 'Assembly-CSharp'
[15-11-26 22:15:08] Info: Compiling Building Mod by Kenney to bin/build-151126221508748.dll...
[15-11-26 22:15:08] Info: Compiling from `Custom Scenery.csproj`.
[15-11-26 22:15:14] Info: Resolved assembly reference `Assembly-CSharp` to `/Applications/Parkitect.app/Contents/Resources/Data/Managed/Assembly-CSharp.dll`
[15-11-26 22:15:14] Info: Resolved assembly reference `Microsoft.CSharp` to `Microsoft.CSharp.dll`