- Open Neotree: f t
- Open file at the cursor: l
- Open file in new vertical window: |
- Open file in new horizontal window -
- Create file: c
- Rename file: r
- Delete file: d
- Refresh: gr
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 java.util.stream.IntStream; | |
| public class FibonacciDP { | |
| public static void main(String[] args) { | |
| IntStream.rangeClosed(0, 30).forEach( | |
| v -> System.out.println(fibonacci(v))); | |
| } | |
| private static int fibonacci(int value) { |
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 dev.turkdogan.springboothelloworld | |
| import org.springframework.web.bind.annotation.RequestMapping | |
| import org.springframework.web.bind.annotation.RestController | |
| @RestController | |
| class HelloWorldController { | |
| @RequestMapping("/") | |
| fun home(): String { |
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
| #ifndef TT_MATRIX_H | |
| #define TT_MATRIX_H | |
| #include <valarray> | |
| #include <algorithm> | |
| #include <string> | |
| #include <assert.h> | |
| template <typename T> | |
| class TTMatrix |
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
| syntax enable | |
| if 0 | endif | |
| if &compatible | |
| set nocompatible " Be iMproved | |
| endif | |
| " Required: | |
| set runtimepath+=~/.vim/bundle/neobundle.vim/ |
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
| public static void RequestWeather() | |
| { | |
| const string url = "http://api.geonames.org/weatherJSON?north=44.1&south=-9.9&east=-22.4&west=55.2&username=demo"; | |
| HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); | |
| request.Method = "GET"; | |
| var webResponse = request.GetResponse(); | |
| var webStream = webResponse.GetResponseStream(); | |
| var responseReader = new StreamReader(webStream); | |
| var response = responseReader.ReadToEnd(); |
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 | |
| a = tf.constant(10) | |
| b = tf.constant(20) | |
| y = tf.mul(a, b) | |
| with tf.Session() as sess: | |
| print ("%d should equat to 200" % sess.run(y)) |