npm install -g @nestjs/cli
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
# install nestJs cli | |
npm install -g @nestjs/cli | |
# create new project nestJs | |
nest new nestjs-tutorial | |
# change to directory | |
cd nestjs-tutorial | |
#run nestJs |
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
<?php | |
namespace App\Console; | |
use Illuminate\Console\Scheduling\Schedule; | |
use Illuminate\Foundation\Console\Kernel as ConsoleKernel; | |
class Kernel extends ConsoleKernel | |
{ | |
/** |
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
<?php | |
namespace App\Console\Commands; | |
use Illuminate\Console\Command; | |
class SendEmails extends Command | |
{ | |
/** | |
* The name and signature of the console command. |
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
A1 | A2 | A3 | A4 | A5 | A6 | A7 | A8 | A9 | Class | |
---|---|---|---|---|---|---|---|---|---|---|
85 | 0 | 88 | -4 | 6 | 1 | 3 | 83 | 80 | 1 | |
106 | 2 | 108 | 0 | 70 | 0 | 1 | 38 | 36 | 1 | |
79 | 5 | 83 | 0 | -46 | 0 | 4 | 130 | 126 | 1 | |
76 | 0 | 81 | -2 | -40 | 13 | 5 | 122 | 118 | 1 | |
104 | 7 | 105 | 7 | 70 | 0 | 1 | 35 | 34 | 1 | |
101 | -3 | 102 | -4 | 72 | 0 | 1 | 29 | 28 | 1 | |
81 | -2 | 84 | 0 | -18 | -30 | 4 | 103 | 98 | 1 | |
81 | 0 | 84 | 0 | -12 | 29 | 4 | 97 | 94 | 1 | |
79 | 0 | 83 | 0 | -40 | 3 | 4 | 125 | 120 | 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
from PIL import Image | |
import numpy as np | |
import tensorflow as tf | |
import matplotlib.pyplot as plt | |
import model | |
import os | |
classes = {'BlackPanther', 'DoctorStrange', 'IronMan', 'ScarletWitch', 'SpiderMan', 'Thor'} | |
train_dir = 'raw' | |
logs_train_dir = './train_logs' |
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
import os | |
import numpy as np | |
import tensorflow as tf | |
import input_data | |
import model | |
N_CLASSES = 6 | |
IMG_W = 64 | |
IMG_H = 64 | |
BATCH_SIZE = 10 |
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
import tensorflow as tf | |
def inference(images, batch_size, n_classes): | |
with tf.compat.v1.variable_scope('conv1') as scope: | |
weights = tf.Variable(tf.random.truncated_normal(shape=[3, 3, 3, 64], stddev=1.0, dtype=tf.float32), | |
name='weights', dtype=tf.float32) | |
biases = tf.Variable(tf.constant(value=0.1, dtype=tf.float32, shape=[64]), | |
name='biases', dtype=tf.float32) |
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
import os | |
from PIL import Image | |
raw_image = './raw' | |
prepro_image = './genarate' | |
classes = {'BlackPanther', 'DoctorStrange', 'IronMan', 'ScarletWitch', 'SpiderMan', 'Thor'} | |
def genarate_image(): | |
for index, name in enumerate(classes): | |
class_path = raw_image + "/" + name + "/" | |
path_image = prepro_image +"/" + name +"/" |
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
Ingredient | Calcium | Protein | Fiber | Cost | |
---|---|---|---|---|---|
Limestone | 0.38 | 0.0 | 0.0 | 10 | |
Corn | 0.001 | 0.09 | 0.02 | 30.5 | |
Soybean | 0.002 | 0.50 | 0.08 | 90.0 |
NewerOlder