Skip to content

Instantly share code, notes, and snippets.

View mika76's full-sized avatar
🤖
Coding...

Mladen Mihajlović mika76

🤖
Coding...
  • Serbia
  • 16:10 (UTC +02:00)
View GitHub Profile
@mika76
mika76 / TinyTween.cs
Created April 12, 2016 21:41
A single file tween library in C# with support built in for XNA and Unity data types. MIT License.
// TinyTween.cs
//
// Copyright (c) 2013 Nick Gravelyn
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software
// and associated documentation files (the "Software"), to deal in the Software without restriction,
// including without limitation the rights to use, copy, modify, merge, publish, distribute,
// sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
@mika76
mika76 / Spaceship.cs
Created April 15, 2016 18:31 — forked from MikeGringauz/Spaceship.cs
TinyTween engine adopted to Duality 2D game engine with sample Spaceship component demo.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using Duality;
using Duality.Components.Physics;
using Duality.Components.Renderers;
using Duality.Input;
using TinyTween;
@mika76
mika76 / RxTcpServer.cs
Created September 11, 2016 07:22 — forked from micahasmith/RxTcpServer.cs
rx c# tcp server
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets;
using System.Data;
using System.Net;
using System.Threading;
using System.Threading.Tasks;
using System.Reactive.Linq;
@mika76
mika76 / Program.cs
Created May 3, 2018 08:59 — forked from mattjohnsonpint/Program.cs
Airport Time Zones
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using GeoTimeZone; // Import from Nuget package "GeoTimeZone" (https://github.com/mj1856/GeoTimeZone)
using TimeZoneConverter; // Import from Nuget package "TimeZoneConverter" (https://github.com/mj1856/TimeZoneConverter)
namespace AirportTimeZones.DataBuilder
{
@mika76
mika76 / Vector2D.lua
Created May 3, 2018 18:49 — forked from brandontreb/Vector2D.lua
A simple Vector2D class used in Corona SDK games.
Vector2D = {}
function Vector2D:new(x, y)
local object = { x = x, y = y }
setmetatable(object, { __index = Vector2D })
return object
end
function Vector2D:copy()
return Vector2D:new(self.x, self.y)
@mika76
mika76 / debugconsole.lua
Last active May 9, 2018 11:05 — forked from HoraceBury/debugconsole.lua
Debug Print Console
-- debug console
local widget = require("widget")
local lib = {}
local originalPrintFunc = print
local debugPrintFunc = nil
local showingDebugConsole = false
@mika76
mika76 / colors.lua
Created May 14, 2018 06:21 — forked from Lerg/colors.lua
147 color names as a Lua table, RGB from 0 to 1.
return {
aliceblue = {0.94117647058824, 0.97254901960784, 1},
antiquewhite = {0.98039215686275, 0.92156862745098, 0.84313725490196},
aqua = {0, 1, 1},
aquamarine = {0.49803921568627, 1, 0.83137254901961},
azure = {0.94117647058824, 1, 1},
beige = {0.96078431372549, 0.96078431372549, 0.86274509803922},
bisque = {1, 0.89411764705882, 0.76862745098039},
black = {0, 0, 0},
blanchedalmond = {1, 0.92156862745098, 0.80392156862745},
@mika76
mika76 / Perspective
Created May 22, 2018 21:49
Perspective Virtual Camera System
Perspective Virtual Camera System
Licensed under the MIT license, which basically means you can do anything you want with it.
@mika76
mika76 / colormatrix.lua
Created May 27, 2018 11:45 — forked from anonymous/colormatrix.lua
Color Transition Matrix
--Created by Tanner Gower (triggdev)
local colormatrix = {}
local function getBackgroundColorMatrix(colors, pw, pt)
local matrix = {}
local t = 0
local d = 0
for i = 1, 3, 1 do
@mika76
mika76 / profile.ps1
Created October 8, 2018 18:24 — forked from AndyPook/profile.ps1
powershell script to import VisualStudio environment variables
# Set environment variables for Visual Studio Command Prompt
# Based on: http://stackoverflow.com/questions/2124753/how-i-can-use-powershell-with-the-visual-studio-2010-command-prompt
$version=14
pushd "c:\Program Files (x86)\Microsoft Visual Studio ${version}.0\Common7\Tools"
cmd /c "vsvars32.bat&set" |
foreach {
if ($_ -match "=") {
$v = $_.split("=")
set-item -force -path "ENV:\$($v[0])" -value "$($v[1])"
}