This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$SourceFolder = "E:\Sorce" | |
$outputDir = "e:\Photos-Grouped" | |
$files = Get-ChildItem -Path $SourceFolder -Recurse | Where-Object {$_.PSIsContainer -eq $false} | |
foreach ($file in get-ChildItem $files) { | |
$toDir = Join-Path $outputDir $file.lastwritetime.toString("yyyy\\yyyy-MM") | |
$toFile = Join-Path $toDir $file.name | |
if(!(Test-Path $toDir)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
// dotnet .\FileConsole.dll C:\Photos\Trip\2020-08-Europe Mdd | |
namespace FileConsole | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Company | |
{ | |
public string Name { get; set; } | |
public Company() | |
{ | |
Name = "The Name"; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Autofac; | |
using System; | |
namespace AutoFacHW | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var container = ContainerConfig.Configure(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function html_minifiy($str) | |
{ | |
$str = str_replace("\t", " ", $str); | |
$str = str_replace(" ", " ", $str); | |
$str = str_replace(" ", " ", $str); | |
$str = str_replace(" ", " ", $str); | |
$str = str_replace(" ", " ", $str); | |
$str = str_replace("> <", "><", $str); | |
$str = str_replace("\n", "", $str); | |
$str = str_replace(" }", "}", $str); |