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 ora from "ora"; | |
import { Gradient } from "@gradientai/nodejs-sdk"; | |
const spinner = ora("").start(); | |
async function run() { | |
spinner.start("Creating a new Gradient client"); | |
const gradient = new Gradient({}); | |
spinner.stopAndPersist({ | |
text: "Gradient client created successfully", |
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 java.util.Random; | |
import java.util.*; | |
public class InputRandomGame { | |
public static void main(String[] args) { | |
intro(); | |
gameMechanic(); | |
ask(); | |
} | |
public static void ask() { |
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
Example project |
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
{ | |
"_comment": "Build with `packer build ubuntu.json`", | |
"builders": [ | |
{ | |
"boot_command": [ | |
"{{ user `boot_command_prefix` }}", | |
"/install/vmlinuz noapic ", | |
"initrd=/install/initrd.gz ", | |
"file=/floppy/{{ user `preseed` }} ", | |
"debian-installer={{ user `locale` }} auto locale={{ user `locale` }} kbd-chooser/method=us ", |
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
public class Monster { | |
private String id; | |
private String name; | |
public Monster(final String id, final String name) { | |
this.id = id; | |
this.name = name; | |
} |
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
runtime: python27 | |
api_version: 1 | |
threadsafe: true | |
handlers: | |
- url: /.* | |
script: main.app |
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
exports.hello = require('./hello'); |
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 com.google.inject.*; | |
import javax.inject.Inject; | |
import java.lang.annotation.Retention; | |
import static java.lang.annotation.RetentionPolicy.RUNTIME; | |
@ScopeAnnotation | |
@Retention(RUNTIME) | |
@interface NameScoped { |
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
source 'https://rubygems.org' | |
gem 'asciidoctor' | |
gem 'tilt' | |
gem 'haml' | |
gem 'rake' |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder