- https://help.aliyun.com/document_detail/186740.html?spm=a2c4g.11186623.6.622.2c2e25a2R0vqL3#title-spq-vpa-m2u
- https://pai.dw.alibaba-inc.com/component/detail/357?projectId=21297&spm=a2c3x.12342929.0.0.64484a9bc8YdjJ
| package io.fabric8.testing; | |
| import io.fabric8.kubernetes.client.DefaultKubernetesClient; | |
| import io.fabric8.kubernetes.client.KubernetesClient; | |
| import io.fabric8.kubernetes.client.KubernetesClientException; | |
| import java.net.UnknownHostException; | |
| public class ConnectionTest { | |
| public static void main(String[] args) { |
If you haven’t worked with JavaScript in the last few years, these three points should give you enough knowledge to feel comfortable reading the React documentation:
let and const statements. For the purposes of the React documentation, you can consider them equivalent to var.class keyword to define JavaScript classes. There are two things worth remembering about them. Firstly, unlike with objects, you don't need to put commas between class method definitions. Secondly, unlike many other languages with classes, in JavaScript the value of this in a method [depends on how it is called](https://developer.mozilla.org/en-US/docs/Web/Jav##Update
Better version here: https://github.com/abalter/polyglottus/blob/master/simple_kernel.py
Just leaving this because it is linked to in a couple of SO posts
| /* | |
| JPA (Java Persistence API) | |
| Transaction Management with an Entity-Mananger: | |
| --- | |
| entityManager.getTransaction().begin(); | |
| entityManager.persist(<some-entity>); | |
| entityManager.getTransaction().commit(); | |
| entityManager.clear(); |
| import os | |
| import yaml | |
| import logging.config | |
| import logging | |
| import coloredlogs | |
| def setup_logging(default_path='logging.yaml', default_level=logging.INFO, env_key='LOG_CFG'): | |
| """ | |
| | **@author:** Prathyush SP | |
| | Logging Setup |
| import javax.crypto.Cipher; | |
| import java.nio.charset.StandardCharsets; | |
| import java.security.KeyPair; | |
| import java.security.KeyPairGenerator; | |
| import java.security.SecureRandom; | |
| import java.security.Signature; | |
| public class RsaExample { | |
| public static void main(String... argv) throws Exception { | |
| //First generate a public/private key pair |
| '''This script goes along the blog post | |
| "Building powerful image classification models using very little data" | |
| from blog.keras.io. | |
| It uses data that can be downloaded at: | |
| https://www.kaggle.com/c/dogs-vs-cats/data | |
| In our setup, we: | |
| - created a data/ folder | |
| - created train/ and validation/ subfolders inside data/ | |
| - created cats/ and dogs/ subfolders inside train/ and validation/ | |
| - put the cat pictures index 0-999 in data/train/cats |
http://guides.rubyonrails.org/migrations.html