This repository has been archived by the owner on Oct 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Done SWI pack (SWI online packs just don't work).
- Loading branch information
1 parent
3b047cc
commit 9c32382
Showing
13 changed files
with
56 additions
and
82 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<# Nan.Windows.Scripts | ||
<# Nan.Windows.Scripts | ||
Windows PowerShell Scripts. | ||
Copyright 2016 Julio P. Di Egidio | ||
<mailto:[email protected]> | ||
|
@@ -17,28 +17,32 @@ | |
# Adapted from http://stackoverflow.com/a/27289116 | ||
# Requires PowerShell 4.0 and .NET 4.5 | ||
|
||
$encoderSource = @' | ||
$peTypeSource = @' | ||
using System.Text; | ||
public class PathEncoder : UTF8Encoding | ||
namespace Nan.Windows.Scripts | ||
{ | ||
public PathEncoder() {} | ||
public override byte[] GetBytes(string s) | ||
public class PathEncoder : UTF8Encoding | ||
{ | ||
s = s.Replace("\\", "/"); | ||
return base.GetBytes(s); | ||
} | ||
public PathEncoder() {} | ||
public override byte[] GetBytes(string s) | ||
{ | ||
s = s.Replace("\\", "/"); | ||
return base.GetBytes(s); | ||
} | ||
} | ||
} | ||
'@ | ||
|
||
Add-Type -AssemblyName 'System' | ||
Add-Type -AssemblyName 'System.IO.Compression' | ||
Add-Type -AssemblyName 'System.IO.Compression.FileSystem' | ||
Add-Type -TypeDefinition $encoderSource | ||
Add-Type -TypeDefinition $peTypeSource | ||
|
||
$clType = [System.IO.Compression.CompressionLevel] | ||
$zfType = [System.IO.Compression.ZipFile] | ||
$encType = [PathEncoder] | ||
$clType = [System.IO.Compression.CompressionLevel] | ||
$peType = [Nan.Windows.Scripts.PathEncoder] | ||
|
||
$encoder = New-Object $encType | ||
$compression = $clType::Optimal | ||
$cLev = $clType::Optimal | ||
$pEnc = New-Object $peType | ||
|
||
$zfType::CreateFromDirectory($Args[0], $Args[1], $compression, $false, $encoder) | ||
$zfType::CreateFromDirectory($Args[0], $Args[1], $cLev, $false, $pEnc) |
Binary file not shown.
Binary file not shown.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,11 +23,11 @@ | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
|
||
name(nan_numerics_prime). | ||
version('1.0'). % 1.0-beta | ||
version('1.2'). % 1.2-beta | ||
title('Nan.Numerics.Prime - A simple prime number library'). | ||
author('Julio P. Di Egidio', '[email protected]'). | ||
home('http://julio.diegidio.name/Projects/Nan.Numerics.Prime/'). | ||
download('https://julio.diegidio.name/Projects/Nan.Numerics.Prime/Prolog/nan_numerics_prime-*.zip'). | ||
download('http://julio.diegidio.name/Projects/Nan.Numerics.Prime/Prolog/nan_numerics_prime-*.zip'). | ||
provides(numerics). | ||
provides(prime). | ||
keywords([nan, numerics, prime]). | ||
|