This repository has been archived by the owner on Feb 7, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e2258c7
commit 1574c21
Showing
27 changed files
with
602 additions
and
259 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
#!/usr/bin/env python3 | ||
""" | ||
{{ name }} Service | ||
{{ name }} Module | ||
""" | ||
import nstack | ||
|
||
class Service(nstack.BaseService): | ||
class Module(nstack.Module): | ||
def numChars(self, x): | ||
return len(x) | ||
|
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env Rscript | ||
# {{ name }} Service | ||
|
||
numChars <- function(s) { | ||
nchar(s) | ||
} | ||
# this would also work: | ||
# numChars <- nchar |
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,5 +1,5 @@ | ||
name: nstack-cli | ||
version: 0.0.9 | ||
version: 0.0.10.1 | ||
cabal-version: >=1.22 | ||
build-type: Simple | ||
license: BSD3 | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
module NStack.Prelude.Function where | ||
|
||
curry3 :: ((a, b, c) -> d) -> a -> b -> c -> d | ||
curry3 f a b c = f (a, b, c) | ||
|
||
curry4 :: ((a, b, c, d) -> e) -> a -> b -> c -> d -> e | ||
curry4 f a b c d = f (a, b, c, d) | ||
|
||
uncurry3 :: (a -> b -> c -> d) -> (a, b, c) -> d | ||
uncurry3 f (a, b, c) = f a b c | ||
|
||
uncurry4 :: (a -> b -> c -> d -> e) -> (a, b, c, d) -> e | ||
uncurry4 f (a, b, c, d) = f a b c d | ||
|
||
(.:) :: (c -> d) -> (a -> b -> c) -> a -> b -> d | ||
(.:) f g a b = f (g a b) | ||
|
||
infixr 8 .: | ||
|
||
(.:.) :: (d -> e) -> (a -> b -> c -> d) -> a -> b -> c -> e | ||
(.:.) f g a b c = f (g a b c) | ||
|
||
infixr 7 .:. | ||
|
Oops, something went wrong.