Skip to content

Instantly share code, notes, and snippets.

View chaliy's full-sized avatar

Mykhailo Chalyi (Mike Chaliy) chaliy

  • Ukraine, Lviv
  • 22:49 (UTC +03:00)
  • X @chaliy
View GitHub Profile
<Exec Command="
robocopy bin\ Package\bin\ ^
*.* ^
/S /PURGE /NS /NJH /NJS /NP /NDL ^
/XF *.vshost.exe,*.vshost.exe.*, *.svclog
robocopy wsp Package\wsp\ ^
Axiomatics.Acps.SharePoint.wsp *.ps1 ^
/S /PURGE /NS /NJH /NJS /NP /NDL
@chaliy
chaliy / Visual C++.sublime-build
Last active August 7, 2018 21:25
Visual C++ build system for Sublime Text
{
"cmd": ["cl", "${file}"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c, source.cpp, source.c++",
// By default cl is not in your PATH, so add it to your path
// or uncomment "path" and check that it has correct value
//"path": "path:/to/folder/where/cl.exe/located",
"shell": true, // Without this sublime has hard times to parse "&" in out command line
Основи роботи з Windows XP
Контрольні запитання
1. Яка різниця між Піктограмою та Ярликом?
2. Як відрізнити папку від файлу?
3. Що таке Робочий стіл?
4. Що таке Панель задач?
5. Що таке заголовок вікна у Windows?
6. Як відрізнити активне вікно від неактивного?
7. Як змінити розміри вікна?
@chaliy
chaliy / Sample.proj
Created August 6, 2012 09:08
Code task to ZIP something
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
ToolsVersion="4.0" DefaultTargets="Sample" >
<Import Project="Zip.targets" />
<Target Name="Sample" >
<Zip SourceFolder="C:\Users\Administrator.WIN-BOAS4C4GH8K\Projects\Temp" OutputFileName="package.zip" />
</Target>
</Project>
@chaliy
chaliy / gist:2964142
Created June 21, 2012 06:14 — forked from Restuta/gist:2963076
Reveiw #1
#How it works:
#switch to p4 branch
#get changes from p4
## gets changelist number workspace is synced to
## gets list of changelists that is present on server and don't at my workspace
#commit change-by-change to p4 branch on behalf of corresponding users
#switch back the to previous branch
Param(
[Switch]$Preview,
@chaliy
chaliy / profile.ps1
Created June 15, 2012 16:15
Posh-Hg and Posh-Git working together
Import-Module posh-hg
Import-Module posh-git
Enable-GitColors
Start-SshAgent -Quiet
function Prompt {
$Host.UI.RawUI.ForegroundColor = $GitPromptSettings.DefaultForegroundColor
// Resharper says for Add method:
// Impure method is called for readonly field of value type
return (DateTimeOffset.MinValue.Add(value) > someDateTimeOffset);
// Is this false positive?
@chaliy
chaliy / C#.sublime-build
Created March 18, 2012 21:17
Sublime Build to compile and run C# program
{
// This build system will build your cs file to exe file and will run it
"cmd": ["del ${file/\\.cs/\\.exe/} 2>NUL", "& csc /nologo /out:${file/\\.cs/\\.exe/} $file", "& ${file/\\.cs/\\.exe/}"],
"file_regex": "^(...*?)[(]([0-9]*),([0-9]*)[)]",
// By default csc is not in your PATH, so add it to your path
// or uncomment "path" and check that it has correct value
//"path": "C:/Windows/Microsoft.NET/Framework64/v4.0.30319/",
"shell": true, // Without this sublime has hard times to parse "&" in out command line
"selector": "source.cs"
}
@chaliy
chaliy / empty.java
Created March 10, 2012 23:38
Double Braces for GWT Tests
package client;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.RootPanel;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;