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.io.FileReader; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.net.URI; | |
import java.util.ArrayList; | |
import java.util.HashSet; | |
import java.util.List; | |
import java.util.Set; | |
import java.util.*; | |
import java.util.StringTokenizer; |
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.nio.ByteBuffer; | |
import org.apache.hadoop.conf.Configuration; | |
import org.apache.hadoop.fs.Path; | |
import org.apache.hadoop.io.IntWritable; | |
import org.apache.hadoop.io.IntWritable.Comparator; | |
import org.apache.hadoop.io.LongWritable; | |
import org.apache.hadoop.io.Text; | |
import org.apache.hadoop.io.WritableComparator; | |
import org.apache.hadoop.mapreduce.Job; |
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.Scanner; | |
import java.util.Random; | |
public class generate_card { | |
public static void main (String[] args) { | |
Scanner scan = new Scanner (System.in); | |
int num_decks = scan.nextInt(); | |
int num_perDecks = scan.nextInt(); | |
//String suits[] = {"H","D","C","S"}; | |
String suits[] = {"\u2661", "\u2662", "\u2663", "\u2660"}; |
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.io.FileReader; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.net.URI; | |
import java.util.ArrayList; | |
import java.util.HashSet; | |
import java.util.List; | |
import java.util.Set; | |
import java.util.*; | |
import java.util.StringTokenizer; |
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
# tensorflow 2 supported | |
# using MultiWorkerMirroredStrategy | |
# Need to install tf-nightly | |
# https://www.tensorflow.org/tutorials/distribute/multi_worker_with_keras | |
from __future__ import absolute_import, division, print_function, unicode_literals | |
import numpy as np | |
import tensorflow_datasets as tfds | |
import tensorflow as tf | |
tfds.disable_progress_bar() |
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
#include <bits/stdc++.h> | |
using namespace std; | |
#define rep(i, x, y) for (__typeof(x) i = x; i <= y; i++) | |
#define repi(i, x, y) for (__typeof(x) i = x; i >= y; i--) | |
#define trav(a, x) for(auto& a : x) | |
#define all(x) x.begin(), x.end() | |
#define sz(x) (int)(x).size() | |
#define fill(x, y) memset(x, y, sizeof(y)) |
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
apiVersion: "kubeflow.org/v1" | |
kind: "TFJob" | |
metadata: | |
name: "mnist" | |
namespace: submarine | |
spec: | |
cleanPodPolicy: None | |
initContainers: | |
- name: init-mydb | |
image: busybox:1.28 |
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
swagger: "2.0" | |
info: | |
description: "The Submarine REST API allows you to create, list, and get experiments. The API is hosted under the /v1/jobs route on the Submarine server. For example, to list experiments on a server hosted at http://localhost:8080, access http://localhost:8080/api/v1/jobs/status" | |
version: "1.0.0" | |
title: "Submarine Job API" | |
termsOfService: "http://swagger.io/terms/" | |
contact: | |
email: "[email protected]" | |
license: | |
name: "Apache 2.0" |
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
swagger: '2.0' | |
info: | |
description: 'The Submarine REST API allows you to create, list, and get experiments. The API is hosted under the /v1/jobs route on the Submarine server. For example, to list experiments on a server hosted at http://localhost:8080, access http://localhost:8080/v1/jobs/status' | |
version: 1.0.0 | |
title: '' | |
termsOfService: 'http://swagger.io/terms/' | |
contact: | |
email: [email protected] | |
license: | |
name: Apache 2.0 |
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
swagger: "2.0" | |
info: | |
description: "The Submarine REST API allows you to create, list, and get experiments. The API is hosted under the /v1/jobs route on the Submarine server. For example, to list experiments on a server hosted at http://localhost:8080, access http://localhost:8080/api/v1/jobs/" | |
version: "1.0.0" | |
title: "Submarine Experiment API" | |
termsOfService: "http://swagger.io/terms/" | |
contact: | |
email: "[email protected]" | |
license: | |
name: "Apache 2.0" |
OlderNewer