Do you promise not to do bad things?
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
| #addin "Cake.Powershell" | |
| var target = Argument("target", "Default"); | |
| ////////////////////////////////////////////////////////////////////// | |
| // SETUP | |
| ////////////////////////////////////////////////////////////////////// | |
| FilePath solution; | |
| FilePathCollection projects; |
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
| #addin "Cake.Powershell" | |
| var target = Argument("target", "Default"); | |
| ////////////////////////////////////////////////////////////////////// | |
| // SETUP | |
| ////////////////////////////////////////////////////////////////////// | |
| FilePath solution; | |
| FilePath nuspec; |
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
| package main | |
| import ( | |
| "fmt" | |
| "reflect" | |
| ) | |
| func main() { | |
| teststring := "ab世" | |
| runes := []rune(teststring) |
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
| function RunIt() { | |
| Write-Output "1" | |
| Write-Output "2" | |
| $var = 42 | |
| Write-Output "3" | |
| return $var | |
| } |
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
| package main | |
| // Square immediately returns the result | |
| func Square(number int) uint64 { | |
| return 1 << uint64(number-1) | |
| } | |
| // SquareVariable first puts it into a variable | |
| func SquareVariable(number int) uint64 { | |
| result := 1 << uint64(number-1) |
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
| $fakeObject | Add-Member -MemberType NoteProperty -Name SomeProperty -Value 1 | |
| $anotherFakeObject = New-Object -TypeName psobject | |
| $anotherFakeObject | Add-Member -MemberType NoteProperty -Name SomeProperty -Value 2 | |
| $numbers = @() | |
| $numbers += $fakeObject | |
| $numbers += $anotherFakeObject | |
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
| package main | |
| import ( | |
| "time" | |
| ) | |
| var shutdown chan bool | |
| func main() { | |
| shutdown = make(chan bool) |
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I have the right to submit it under the MIT license; or
(b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the MIT license; or
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
| resource "template_dir" "config" { | |
| source_dir = "${path.cwd}/input" | |
| destination_dir = "${path.cwd}/output" | |
| } | |
| data "null_data_source" "wait_for_config" { | |
| inputs = { | |
| destination_dir = "${template_dir.config.destination_dir}" | |
| } | |
| } |
OlderNewer