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
    
  
  
    
  | sudo add-apt-repository ppa:openjdk-r/ppa | |
| sudo apt-get update | |
| sudo apt-get install openjdk-8-jdk | |
| sudo update-alternatives --config java | |
| sudo update-alternatives --config javac | 
  
    
      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
    
  
  
    
  | package com.docker.kubetest | |
| import org.springframework.beans.factory.annotation.Autowired | |
| import org.springframework.boot.ApplicationArguments | |
| import org.springframework.boot.ApplicationRunner | |
| import org.springframework.data.mongodb.core.mapping.Document | |
| import org.springframework.data.mongodb.repository.MongoRepository | |
| import org.springframework.stereotype.Component | |
| @Document | 
  
    
      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
    
  
  
    
  | implementation ('com.beust:klaxon:3.0.1') | |
| [{ | |
| "name" : "Vinoth", | |
| "age" : "25", | |
| "languages" : [ | |
| "Tamil", | |
| "English", | |
| "Spanish" | |
| ] | 
  
    
      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 org.springframework.hateoas.VndErrors | |
| import org.springframework.http.HttpStatus | |
| import org.springframework.http.HttpStatus.* | |
| import org.springframework.web.bind.annotation.ControllerAdvice | |
| import org.springframework.web.bind.annotation.RequestMapping | |
| import org.springframework.web.bind.annotation.ResponseBody | |
| import org.springframework.web.bind.annotation.ResponseStatus | |
| import java.util.* | 
  
    
      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
    
  
  
    
  | package com.docker.kubetest | |
| import org.aspectj.lang.JoinPoint | |
| import org.aspectj.lang.annotation.Aspect | |
| import org.aspectj.lang.annotation.Before | |
| import org.springframework.boot.autoconfigure.SpringBootApplication | |
| import org.springframework.boot.runApplication | |
| import org.springframework.stereotype.Component | |
| import org.springframework.web.bind.annotation.GetMapping | |
| import org.springframework.web.bind.annotation.RestController | 
  
    
      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
    
  
  
    
  | val person: Person? = getTheBestPersonInTheWorld() | |
| if (person != null) sendEmailTo(person.email) | |
| can be replaced by | |
| getTheBestPersonInTheWorld()?.let { sendEmailTo(it.email) } | |
| //Use Extension functions defined on null | |
  
    
      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
    
  
  
    
  | $ cat .vimrc | |
| filetype on | |
| filetype indent on | |
| filetype plugin on | |
| syntax enable | |
| set showmatch | |
| set smartcase | |
| set number | |
| set incsearch | |
| set hlsearch | 
  
    
      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
    
  
  
    
  | function mySetTimeOut(fn,delay){ | |
| fn(); | |
| } | |
| function myFunc(){ | |
| console.log('This is my function'); | |
| console.log(this); | |
| } | |
| var obj = { | 
  
    
      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
    
  
  
    
  | /*function bar() has a closure over the scope of foo() (and | |
| indeed, even over the rest of the scopes it has access to, such as the | |
| global scope in our case). Put slightly differently, it’s said that bar() | |
| closes over the scope of foo().*/ | |
| function foo() { | |
| var a = 2; | |
| function bar() { | |
| console.log( a ); // 2 | |
| } | 
  
    
      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
    
  
  
    
  | var foo = (function MyModule(){ | |
| var stmt = "Hello World"; | |
| var b = "another thing"; | |
| function saySomething(){ | |
| console.log(stmt); | |
| } |