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
// yes, it's that simple. | |
Deno.copy(Deno.stdin, Deno.stdout); |
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
$ cargo test --release > test-output.txt | |
Compiling libc v0.2.77 | |
Compiling proc-macro2 v1.0.21 | |
Compiling unicode-xid v0.2.1 | |
Compiling cfg-if v0.1.10 | |
Compiling syn v1.0.41 | |
Compiling autocfg v1.0.1 | |
Compiling memchr v2.3.3 | |
Compiling lazy_static v1.4.0 | |
Compiling log v0.4.11 |
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
import { assert } from "https://deno.land/[email protected]/testing/asserts.ts"; | |
import { pooledMap } from "https://deno.land/[email protected]/async/pool.ts"; | |
import { Database } from "../utils/database.ts"; | |
const db = new Database(Deno.env.get("MONGO_URI") ?? ""); | |
const GH_TOKEN = Deno.env.get("GH_TOKEN"); | |
assert(GH_TOKEN); | |
const all = await db._modules.find({}); |
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
import { assertEquals } from "https://deno.land/[email protected]/testing/asserts.ts"; | |
Deno.test("test", async () => { | |
assertEquals( | |
{ | |
foo: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of ERROR ERROR." | |
}, | |
{ | |
foo: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five |
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
import { assert } from "https://deno.land/[email protected]/testing/asserts.ts"; | |
import { | |
bench, | |
runBenchmarks, | |
} from "https://deno.land/[email protected]/testing/bench.ts"; | |
function isPalindromeSimple(s) { | |
return s === s.split("").reverse().join(""); | |
} |
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
package main | |
import ( | |
"fmt" | |
) | |
type Node struct { | |
Val interface{} | |
Next *Node | |
} |
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
$ TF_LOG=DEBUG terraform apply -parallelism=1 plan.tfplan | |
2020/12/24 14:33:52 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility. | |
Use TF_LOG=TRACE to see Terraform's internal logs. | |
---- | |
2020/12/24 14:33:52 [INFO] Terraform version: 0.14.3 | |
2020/12/24 14:33:52 [INFO] Go runtime version: go1.15.2 | |
2020/12/24 14:33:52 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply", "-parallelism=1", "plan.tfplan"} | |
2020/12/24 14:33:52 [DEBUG] Attempting to open CLI config file: /home/wperron/.terraformrc | |
2020/12/24 14:33:52 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2020/12/24 14:33:52 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins |
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
import { pooledMap } from "https://deno.land/[email protected]/async/pool.ts"; | |
async function collectAsyncIterable<T>( | |
iterator: AsyncIterable<T>, | |
): Promise<T[]> { | |
const collected = [] as T[]; | |
for await (const v of iterator) { | |
collected.push(v); | |
} | |
return collected; |
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
package main | |
import ( | |
"bufio" | |
"fmt" | |
"io" | |
"log" | |
"os/exec" | |
) |
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
import { greet } from "https://deno.wperron.io/[email protected]/mod.ts"; | |
console.log(greet("John Doe")); |
OlderNewer