Skip to content

Instantly share code, notes, and snippets.

View chaliy's full-sized avatar

Mykhailo Chalyi (Mike Chaliy) chaliy

  • Ukraine, Lviv
  • 08:53 (UTC +03:00)
  • X @chaliy
View GitHub Profile
@chaliy
chaliy / JavaC.sublime-build
Created February 3, 2014 18:13
Sublime text Java build file modification, allows to run just compiled class
{
"cmd": ["javac", "$file"],
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.java",
"shell": true,
"variants":
[
{
"name": "Run",
"cmd": ["javac", "${file}", "&", "java", "${file_base_name}"]
процедура MergeSort (мод a: t) це
процедура Merge(арг a: t; Size: нат; рез b: t) це
змін i, j, k, r1, r2: нат;
поч
k <- 1;
поки k<=n повт
{визначення границь підмасивів}
i <- k; r1 <- i+Size-1;
якщо r1>n то r1 <- n кр;
j <- r1+1; r2 <- j+Size-1;
# You should have pswatch installed (http://psget.net/directory/pswatch/)
# You need small modification to the FSharpKoans/PathToEnlightenment.fs to make sure that you will not need to press any key
# Comment out
# printf "Press any key to continue..."
# System.Console.ReadKey() |> ignore
# 1. Open separate powershell window
# 2. Make sure you are in FSharpKoans solution folder
# 3. Run watch_fsharpkoans.ps1
# 4. Make both your visual studio and powershell window visitble at the same time
# 5. Enjoy!
@chaliy
chaliy / instfdnp.bat
Created October 19, 2013 18:22
Install FDNPKG tool for FreeDOS.
cd c:\freedos
wget http://downloads.sourceforge.net/project/fdnpkg/fdnpkg/v0.97/fdnpkg.zip
unzip fdnpkg.zip
namespace Utils
{
using System.Collections.Generic;
using System.Threading.Tasks;
public static class TaskExtensions
{
public static Task<T[]> WhenAll<T>(this IEnumerable<Task<T>> tasks)
{
return Task.WhenAll(tasks);
@chaliy
chaliy / SetupDev.ps1
Last active December 19, 2015 04:48
cinst git
cinst gitextensions
cinst paint.net
cinst Inkscape
cinst skydrive
cinst sublimetext2
cinst VisualStudio2012Professional # requires modification to install web tools
cinst resharper
cinst winmerge
cinst 7zip

Google Reader replacements

Feedly

http://feedly.com/

  • Requires Google Chrome or Firefox on Desctop
  • Has iPad and Android apps, does not have WindowsRT app
  • Syncs read items with Google Reader
  • Guys does not like Windows

Some Chocolatey installs

Install F# Tools for Visual Studio Express 2012 for Web

NOTE that this install is good to have F# on your build server, it does not require Visual Studio.

cwebpi FSharpVWD11

Install Azure components with Chocolatey

Azure SDK 2.0

cwebpi VWDOrVs11AzurePack_2_0

Cross-platform Command Line Interface

cwebpi WindowsAzureXPlatCLI
@chaliy
chaliy / tpl_async_problem.fs
Created March 24, 2013 17:51
F# async does not support .NET TPL async
open System
open System.Net
let download(url : string) =
async {
let client = new WebClient()
let! html = client.DownloadStringTaskAsync(url)
return html
}