Generate the kubeconfig file for your cluster using the Kubeconfig File
button in the Cluster view of your cluster.
Save the generated file as $HOME/.kube/config
and run kubectl get nodes
to verify it works.
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
/* | |
* This is the Towers of Hanoi example from the prolog tutorial [1] | |
* converted into Scala, using implicits to unfold the algorithm at | |
* compile-time. | |
* | |
* [1] http://www.csupomona.edu/~jrfisher/www/prolog_tutorial/2_3.html | |
*/ | |
object TowersOfHanoi { | |
import scala.reflect.Manifest |
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
// ------------------------------------------------------------------ | |
// Friend collection, where _id is a user.Id and Friends is a list, of user.Id. | |
// Note: friending and unfriending is a two step operation in this scheme: | |
> db.friends.find() | |
{ "_id" : 1, "friends" : [ 2, 3, 4 ] } | |
{ "_id" : 2, "friends" : [ 1, 3, 5 ] } | |
{ "_id" : 3, "friends" : [ 1, 2, 4, 5 ] } | |
{ "_id" : 4, "friends" : [ 1, 3, 5 ] } | |
{ "_id" : 5, "friends" : [ 2, 3, 4 ] } |
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
package com.example.open.server.aop; | |
import java.lang.annotation.ElementType; | |
import java.lang.annotation.Retention; | |
import java.lang.annotation.RetentionPolicy; | |
import java.lang.annotation.Target; | |
/** | |
* 请在需要签名的接口上打上此注解 | |
* |