Hello everybody,
today I want to write small trick of how to modify execution policy for current user. Here is command:
Set-ExecutionPolicy "Unrestricted" -Scope CurrentUser -Confirm:$false
Have a great day.
Hello everybody,
today I want to make short note about how to make pause untill user press a key in PowerShell execution.
Here it is:
Write-Host "Press any key to continue ..."
$x = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
Presented code will make a pause.
Hello everybody,
today I want to share few words about powershell usage.
So, recently I've got some tasks which is related to usage of powershell scripts in order to automate some execution.
One of discoveries in PowerShell for me was pipelining with usage of Where-Object. Consider followin...
Hello everybody,
today I want to share with the world code, which generates typescript from enum declaration. I suppose everything should be understandable from code itself:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;...
Hello everybody,
today I want to make compendium of CQRS for very simple case.
So, at one of the projects I seen following way of implementing code:
public class WriteModel
{
//common properties
public int SomeEntity {get;set; } // ID of some entity
}
public class ReadModel : Wri...
Hello everybody,
today I want to describe CRUD options in MongoDB version 2.
So, let's start with Reading.
In MongoDB reading can be considered as following options:
Finding all documnets
Filtering
Sorting
Definitions and builders.
Creating documents in MongoDB is simple. You can do it ju...
Hello everybody,
today I want to write few words about AngularJS and js integration.
Recently I had opportunity to cowork with one guy, which is great in knowing javascript, but absolutely hates to learn and apply AngularJS. So, I had task in front of me, to give him sone kind of JS object, which...
Hello everybody.
Today I want to share with you simple way to draw Mutual Style Fund box with help of javascript and svg in html5 with usage of module pattern of javascript.
Recently I had task to make at web site drawings with javascript. After some research I decided to use javascript and...
Hello everybody,
today I want to propose you interesting comparison of two design patterns in javascript. As you probably know, javascript doesn't have idea of public and private members. So in order to implement them some tricks are used. That is module and "revealing module".
Take a look...