Last Update: May 13, 2019
Offline Version
This file contains hidden or 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 MathematicalSystems, LazySets, Test | |
| # ======== | |
| # Setup | |
| # ======== | |
| n = 3; m = 2; l = 3 | |
| A = A1 = rand(n,n) | |
| b = b1 = rand(n) | |
| B = B1 = rand(n,m) |
This file contains hidden or 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
| # From: #7 http://www.stochasticlifestyle.com/7-julia-gotchas-handle/ | |
| Pkg.update() | |
| if is_windows() | |
| Pkg.add("WinRPM"); | |
| using WinRPM | |
| WinRPM.install("gcc", yes=true) | |
| WinRPM.install("winpthreads-devel", yes=true) | |
| end |
This file contains hidden or 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
| var client = new OctopusClient(new OctopusServerEndpoint(octoUrl, apiKey)); | |
| var repo = new OctopusRepository(client); | |
| var project = repo.Projects.FindByName("MyOriginalProject"); | |
| var newProject = new ProjectResource | |
| { | |
| Name = "MyClonedProject", | |
| Description = "Cloned copy", | |
| ProjectGroupId = project.ProjectGroupId, |
This file contains hidden or 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
| Add-Type -Path "C:\Tools\Newtonsoft.Json.dll" | |
| Add-Type -Path "C:\Tools\Octopus.Client.dll" #Make sure its version 2.6.x or higher. Otherwhise you'll get errors with the LifecycleId property | |
| Add-Type -Path "C:\Tools\Octopus.Platform.dll" | |
| $OctopusURI = "" #i.e "Http://Octopus.MyAwesomeCompany.com" | |
| $apikey = "" #i.e "API-7CH6XN0HHOU7DDEEUGKUFUR1K" | |
| $endpoint = new-object -TypeName Octopus.Client.OctopusClient(New-Object Octopus.Client.OctopusServerEndpoint($OctopusURI,$apikey)) | |
| $repository = new-object Octopus.Client.OctopusRepository $endpoint |
This file contains hidden or 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
| # Repeat an operation n times, e.g. | |
| # @dotimes 100 println("hi") | |
| macro dotimes(n, body) | |
| quote | |
| for i = 1:$(esc(n)) | |
| $(esc(body)) | |
| end | |
| end | |
| end |