Skip to content

Instantly share code, notes, and snippets.

View pshomov's full-sized avatar

Petar Shomov pshomov

View GitHub Profile

Keybase proof

I hereby claim:

  • I am pshomov on github.
  • I am pshomov (https://keybase.io/pshomov) on keybase.
  • I have a public key ASDzICgKnlLnp8K_3BFZLUowyleKqBLj_iH4yNeeTxdLNgo

To claim this, I am signing this object:

@pshomov
pshomov / harridarrri_game_of_life
Created June 24, 2013 10:24
Harri Darri Game of Life implementation
// HarrisGameOfLife.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <vector>
#include <iostream>
class HarWay
{
public:
@pshomov
pshomov / gist:3775524
Created September 24, 2012 11:26
Example of creating a fylgibréf
using System;
using System.Linq;
using NUnit.Framework;
using Test.Support;
using Test.Support.FlytjandiServices;
namespace fylgibref.AcceptanceTests.CreateFylgibref
{
[TestFixture]
public class CreatedFylgibrefMatchesSubmittedInfo : ConfiguredCreateFylgibrefTestBase
@pshomov
pshomov / gist:1046698
Created June 25, 2011 17:39
Riak experiment
using System;
using System.Collections.Generic;
using System.Data.RiakClient;
using System.Data.RiakClient.Models;
using System.Linq;
using System.Security.Cryptography;
using System.Web.Script.Serialization;
using Frog.Domain.RepositoryTracker;
using riak.net.ProtoModels;
@pshomov
pshomov / gitignore
Created December 26, 2010 00:50
this is my standard .gitignore file for .net repos
bin/
obj/
*.sln
_ReSharper*/
*.user
*.suo
using System;
using Prism.Mvvm;
using Xamarin.Forms;
using System.ComponentModel;
using System.Threading.Tasks;
namespace MVVMEasy.Pages
{
public class LoginPageViewModel_FodyPropertyChanged_And_MVVMCommand : INotifyPropertyChanged
{
using System;
using Xamarin.Forms;
using System.Linq.Expressions;
using System.ComponentModel;
using System.Reflection;
namespace MVVMEasy
{
class MVVMCommand : Command {
public MVVMCommand (Action<Object> action, Expression<Func<Object, bool>> propExpression)
using System;
using Prism.Mvvm;
using Xamarin.Forms;
using System.ComponentModel;
using System.Threading.Tasks;
namespace MVVMEasy.Pages
{
public class LoginPageViewModel_FodyPropertyChanged : INotifyPropertyChanged
{
using System;
using Prism.Mvvm;
using Xamarin.Forms;
using System.Threading.Tasks;
namespace MVVMEasy.Pages
{
public class LoginPageViewModel_Prism : BindableBase
{
private string _errorMessage;
@pshomov
pshomov / gist:f44a1c8c751f59da9314
Created January 8, 2015 09:24
docker-java-on-debian
RUN \
echo "===> add webupd8 repository..." && \
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list && \
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886 && \
apt-get update && \
\
\
echo "===> install Java" && \
echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \