interface NumericTest {
boolean computeTest(int n);
}
// Yolo
public static void main(String args[]) {
NumericTest isEven = (n) -> (n % 2) == 0;
NumericTest isNegative = (n) -> (n < 0);
// Output: false
System.out.println(isEven.computeTest(5));
// Output: true
System.out.println(isNegative.computeTest(-5));
}
<template>hello</template>
cody@ubuntu:~
@Method()
isMobile(): Promise<boolean> {
return new Promise<boolean>((resolve) => {
resolve(DeckdeckgoUtils.isMobile());
});
}
interface NumericTest {
boolean computeTest(int n);
}
public static void main(String args[]) {
NumericTest isEven = (n) -> (n % 2) == 0;
NumericTest isNegative = (n) -> (n < 0);
// Output: false
System.out.println(isEven.computeTest(5));
// Output: true
System.out.println(isNegative.computeTest(-5));
}
npm init deckdeckgo
Cool, let's kick start a new DeckDeckGo presentation
? What's your project name (will be use to create a new folder)? (deckdeckgo)
? What's your presentation name (max. 45 characters, will be use for meta tags and manifest information)?
(DeckDeckGo)
? What's your presentation about (its description)? (Create a lightweight presentation using Web Components 🚀)
? What's your name (will be use for the author meta information)? (David)
? What method do you want to use to edit your presentation? (Use arrow keys)
❯ HTML
Markdown
interface NumericTest {
boolean computeTest(int n);
}
public static void main(String args[]) {
NumericTest isEven = (n) -> (n % 2) == 0;
NumericTest isNegative = (n) -> (n < 0);
// Output: false
System.out.println(isEven.computeTest(5));
// Output: true
System.out.println(isNegative.computeTest(-5));
}
# main.tf
resource "aws_lambda_function" "api" {
function_name = "deckdeckgo-handler-lambda"
filename =
data.external.build-function.result.path
runtime = ...
}
data "external" "build-function" {
program = [
"nix",
"eval",
"(import ./default.nix).function-handler-path",
"--json",
]
}
Main language:
'Hello World'
import React, { Component } from 'react'
interface FigureProps {
mean: number
}
Alias language:
The date and time now is: <#= DateTime.Now #>