Skip to content

Instantly share code, notes, and snippets.

View enesacikoglu's full-sized avatar
👨‍💻
Love to contribute

Enes Açıkoğlu enesacikoglu

👨‍💻
Love to contribute
View GitHub Profile
@enesacikoglu
enesacikoglu / gist:3c1c22d28e3fca1d90b0def993d35790
Created April 24, 2020 12:01 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@Test
fun `🙈 it_should_get_campaign_stocks 🙈 `() {
//Arrange
val campaignId = 1L
val listOfStockDto = ListOfStockDto("1", StockChannel.FT)
val listOfStocks = Arrays.asList(listOfStockDto)
val body = CampaignStockListResponse(1L, DateUtil.now(), DateUtil.now(), listOfStocks)
val response = ResponseEntity.ok(body)
given<ResponseEntity<CampaignStockListResponse?>>(campaignApiClient.getStocks(campaignId)).willReturn(response)
@enesacikoglu
enesacikoglu / Dockerfile
Created May 30, 2019 11:23
Rabbitmq x-delayed-exchange enabled
FROM rabbitmq:3-management
WORKDIR /plugins
RUN apt-get -y update && apt-get install -y curl && apt-get install unzip
RUN curl -LO https://dl.bintray.com/rabbitmq/community-plugins/3.7.x/rabbitmq_delayed_message_exchange/rabbitmq_delayed_message_exchange-20171201-3.7.x.zip
RUN unzip rabbitmq_delayed_message_exchange-20171201-3.7.x.zip && rm -rf rabbitmq_delayed_message_exchange-20171201-3.7.x.zip
RUN rabbitmq-plugins enable rabbitmq_delayed_message_exchange
import java.io.IOException;
import java.util.Stack;
public class Solution {
// Complete the morganAndString function below.
static String morganAndString(String a, String b) {
StringBuilder builder = new StringBuilder();
Stack<String> stackA = new Stack();
Stack<String> stackB = new Stack();
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
name: dynamic-service
spec:
replicas: 3
template:
metadata:
labels:
app: dynamic-service
@enesacikoglu
enesacikoglu / SpringDataRestPageable.java
Created February 2, 2018 11:32
SpringDataRest Pageable Example
/**
Main start
*/
package com.cengenes;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RestController;